mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-4140 Strip TypeDefs when extracting primitives
This commit is contained in:
parent
4c3d7ca925
commit
ff2526479e
2 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue