mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 04:05:39 +00:00
Merge remote-tracking branch 'origin/GP-4140_ExtractPrimitivesClassCast' into Ghidra_11.0
This commit is contained in:
commit
8bfa9818ef
@ -579,6 +579,8 @@ uint4 MultiSlotAssign::assignAddress(Datatype *dt,const PrototypePieces &proto,i
|
||||
return fail;
|
||||
int4 grp = stackEntry->getGroup();
|
||||
Address addr = stackEntry->getAddrBySlot(tmpStatus[grp],sizeLeft,1); // Consume all the space we need
|
||||
if (addr.isInvalid())
|
||||
return fail;
|
||||
pieces.push_back(VarnodeData());
|
||||
pieces.back().space = addr.getSpace();
|
||||
pieces.back().offset = addr.getOffset();
|
||||
|
@ -82,6 +82,9 @@ public interface DatatypeFilter {
|
||||
*/
|
||||
public static boolean extractPrimitives(DataType dt, int max, DataType filler,
|
||||
ArrayList<DataType> res) {
|
||||
if (dt instanceof TypeDef) {
|
||||
dt = ((TypeDef) dt).getBaseDataType();
|
||||
}
|
||||
int metaType = PcodeDataTypeManager.getMetatype(dt);
|
||||
switch (metaType) {
|
||||
case PcodeDataTypeManager.TYPE_UNKNOWN:
|
||||
|
Loading…
Reference in New Issue
Block a user