mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-5184_PtrsubUndoFix
This commit is contained in:
parent
420dd7ce0c
commit
21a6a276b2
10 changed files with 66 additions and 47 deletions
|
@ -451,6 +451,18 @@ void Varnode::setSymbolReference(SymbolEntry *entry,int4 off)
|
|||
}
|
||||
}
|
||||
|
||||
/// \param ct is the Datatype to change to
|
||||
/// \return \b true if the Datatype changed
|
||||
bool Varnode::updateType(Datatype *ct)
|
||||
|
||||
{
|
||||
if (type == ct || isTypeLock()) return false;
|
||||
type = ct;
|
||||
if (high != (HighVariable *)0)
|
||||
high->typeDirty();
|
||||
return true;
|
||||
}
|
||||
|
||||
/// Change the Datatype and lock state associated with this Varnode if various conditions are met
|
||||
/// - Don't change a previously locked Datatype (unless \b override flag is \b true)
|
||||
/// - Don't consider an \b undefined type to be locked
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue