mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-25 05:32:14 +00:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
commit
dae07c1900
@ -3083,7 +3083,7 @@ Datatype *TypeFactory::findAdd(Datatype &ct)
|
||||
|
||||
if (ct.name.size()!=0) { // If there is a name
|
||||
if (ct.id == 0) // There must be an id
|
||||
throw LowlevelError("Datatype must have a valid id");
|
||||
throw LowlevelError("Datatype must have a valid id: "+ct.name);
|
||||
res = findByIdLocal(ct.name,ct.id); // Lookup type by it
|
||||
if (res != (Datatype *)0) { // If a type has this name
|
||||
if (0!=res->compareDependency( ct )) // Check if it is the same type
|
||||
|
@ -1215,7 +1215,7 @@ public class PcodeDataTypeManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Encode the coretypes to the stream
|
||||
* Encode the core data-types to the stream
|
||||
* @param encoder is the stream encoder
|
||||
* @throws IOException for errors in the underlying stream
|
||||
*/
|
||||
@ -1233,8 +1233,7 @@ public class PcodeDataTypeManager {
|
||||
if (typeMap.isUtf) {
|
||||
encoder.writeBool(ATTRIB_UTF, true);
|
||||
}
|
||||
// Encode special id ( <0 for builtins )
|
||||
encoder.writeSignedInteger(ATTRIB_ID, typeMap.id);
|
||||
encoder.writeUnsignedInteger(ATTRIB_ID, typeMap.id);
|
||||
encoder.closeElement(ELEM_TYPE);
|
||||
}
|
||||
encoder.closeElement(ELEM_CORETYPES);
|
||||
|
Loading…
Reference in New Issue
Block a user