mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-2037 RuleDoubleStore
This commit is contained in:
parent
cb4b309942
commit
4448f11cb4
15 changed files with 761 additions and 231 deletions
|
@ -41,6 +41,9 @@ struct VarnodeData {
|
|||
/// Get the location of the varnode as an address
|
||||
Address getAddr(void) const;
|
||||
|
||||
/// Treat \b this as a constant and recover encoded address space
|
||||
AddrSpace *getSpaceFromConst(void) const;
|
||||
|
||||
/// Recover this object from an XML tag
|
||||
void restoreXml(const Element *el,const AddrSpaceManager *manage);
|
||||
|
||||
|
@ -86,6 +89,11 @@ inline Address VarnodeData::getAddr(void) const {
|
|||
return Address(space,offset);
|
||||
}
|
||||
|
||||
/// \return the encoded AddrSpace
|
||||
inline AddrSpace *VarnodeData::getSpaceFromConst(void) const {
|
||||
return (AddrSpace *)(uintp)offset;
|
||||
}
|
||||
|
||||
/// \brief A low-level representation of a single pcode operation
|
||||
///
|
||||
/// This is just the minimum amount of data to represent a pcode operation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue