Merge remote-tracking branch 'origin/GP-1006_LockEquates' into Ghidra_10.0

This commit is contained in:
ghidra1 2021-06-03 11:16:24 -04:00
commit 47e1809c08

View File

@ -1969,6 +1969,12 @@ void ScopeInternal::clearUnlocked(void)
if (sym->isSizeTypeLocked())
resetSizeLockType(sym);
}
else if (sym->getCategory() == 1) {
// Note we treat EquateSymbols as locked for purposes of this method
// as a typelock (which traditionally prevents a symbol from being cleared)
// does not make sense for an equate
continue;
}
else
removeSymbol(sym);
}