BitFields - do not pass bitfield components to decompiler (not yet

supported)
This commit is contained in:
ghidra1 2019-05-14 15:04:20 -04:00
parent 1fcad78bc4
commit 1946e8971d

View file

@ -390,6 +390,10 @@ public class PcodeDataTypeManager {
resBuf.append(">\n");
DataTypeComponent[] comps = ((Structure) type).getDefinedComponents();
for (DataTypeComponent comp : comps) {
if (comp.isBitFieldComponent()) {
// TODO: bitfields are not yet supported by decompiler
continue;
}
resBuf.append("<field");
String field_name = comp.getFieldName();
if (field_name == null) {
@ -402,6 +406,7 @@ public class PcodeDataTypeManager {
resBuf.append(buildTypeRef(fieldtype, comp.getLength()));
resBuf.append("</field>\n");
}
// TODO: trailing flexible array component not yet supported
}
else if (type instanceof Enum) {
Enum enumDt = (Enum) type;