Merge remote-tracking branch 'origin/caheckman_GT-2704' into Ghidra_9.0.2

This commit is contained in:
ghidravore 2019-04-02 18:35:30 -04:00
commit e23cc6b72b

View File

@ -261,10 +261,7 @@ public class PcodeDataTypeManager {
if (type instanceof Array) {
return buildType(type, size);
}
if (type instanceof FunctionDefinition) {
return buildType(type, size);
}
if (type.getLength() <= 0) {
if (!(type instanceof FunctionDefinition) && type.getLength() <= 0) {
return buildType(type, size);
}
StringBuilder resBuf = new StringBuilder();
@ -541,7 +538,7 @@ public class PcodeDataTypeManager {
}
resBuf.append("<type");
if ((type instanceof Pointer) || (type instanceof Array) ||
(type instanceof FunctionDefinition) || (type.getLength() <= 0)) {
(!(type instanceof FunctionDefinition) && type.getLength() <= 0)) {
SpecXmlUtils.encodeStringAttribute(resBuf, "name", "");
}
else {