mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
TypePointerRel adjustments
This commit is contained in:
parent
6cc2eae322
commit
64534bc774
7 changed files with 98 additions and 12 deletions
|
@ -2923,7 +2923,7 @@ void IfcPointerSetting::execute(istream &s)
|
|||
Datatype *bt = dcp->conf->types->findByName(baseType);
|
||||
if (bt == (Datatype *)0 || bt->getMetatype() != TYPE_STRUCT)
|
||||
throw IfaceParseError("Base-type must be a structure");
|
||||
Datatype *ptrto = TypePointerRel::getPtrTo(bt, off, *dcp->conf->types);
|
||||
Datatype *ptrto = TypePointerRel::getPtrToFromParent(bt, off, *dcp->conf->types);
|
||||
AddrSpace *spc = dcp->conf->getDefaultDataSpace();
|
||||
dcp->conf->types->getTypePointerRel(spc->getAddrSize(), bt, ptrto, spc->getWordSize(), off,typeName);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue