GP-1932 Decompiler support for address space attribute on pointers

This commit is contained in:
caheckman 2022-03-04 20:07:34 -05:00
parent 31b30adf2d
commit 7078885aea
12 changed files with 710 additions and 366 deletions

View file

@ -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());
}
}