mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-1518 Decompiler support for unions
This commit is contained in:
parent
53e2c4dc4f
commit
3fdbbbb231
65 changed files with 5119 additions and 1068 deletions
|
@ -1266,7 +1266,7 @@ void IfcRename::execute(istream &s)
|
|||
else
|
||||
throw IfaceExecutionError("More than one symbol named: "+oldname);
|
||||
|
||||
if (sym->getCategory() == 0)
|
||||
if (sym->getCategory() == Symbol::function_parameter)
|
||||
dcp->fd->getFuncProto().setInputLock(true);
|
||||
sym->getScope()->renameSymbol(sym,newname);
|
||||
sym->getScope()->setAttribute(sym,Varnode::namelock|Varnode::typelock);
|
||||
|
@ -1330,7 +1330,7 @@ void IfcRetype::execute(istream &s)
|
|||
else
|
||||
sym = symList[0];
|
||||
|
||||
if (sym->getCategory()==0)
|
||||
if (sym->getCategory()==Symbol::function_parameter)
|
||||
dcp->fd->getFuncProto().setInputLock(true);
|
||||
sym->getScope()->retypeSymbol(sym,ct);
|
||||
sym->getScope()->setAttribute(sym,Varnode::typelock);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue