mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-1932 Decompiler support for address space attribute on pointers
This commit is contained in:
parent
31b30adf2d
commit
7078885aea
12 changed files with 710 additions and 366 deletions
|
@ -831,9 +831,9 @@ void Architecture::parseGlobal(const Element *el)
|
|||
// We need to duplicate the range being marked as global into the overlay space(s)
|
||||
int4 num = numSpaces();
|
||||
for(int4 i=0;i<num;++i) {
|
||||
OverlaySpace *ospc = (OverlaySpace *)getSpace(i);
|
||||
AddrSpace *ospc = getSpace(i);
|
||||
if (ospc == (AddrSpace *)0 || !ospc->isOverlay()) continue;
|
||||
if (ospc->getBaseSpace() != range.getSpace()) continue;
|
||||
if (ospc->getContain() != range.getSpace()) continue;
|
||||
symboltab->addRange(scope,ospc,range.getFirst(),range.getLast());
|
||||
}
|
||||
}
|
||||
|
@ -852,7 +852,7 @@ void Architecture::addOtherSpace(void)
|
|||
for(int4 i=0;i<num;++i){
|
||||
AddrSpace *ospc = getSpace(i);
|
||||
if (!ospc->isOverlay()) continue;
|
||||
if (((OverlaySpace *)ospc)->getBaseSpace() != otherSpace) continue;
|
||||
if (ospc->getContain() != otherSpace) continue;
|
||||
symboltab->addRange(scope,ospc,0,otherSpace->getHighest());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue