mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-0 Corrected test failure fallout from GP-4682 datatype resolution
change related to temporary source archive
This commit is contained in:
parent
b86ad84c04
commit
3b6d5e43ce
6 changed files with 44 additions and 28 deletions
|
@ -1243,15 +1243,15 @@ abstract public class DataTypeManagerDB implements DataTypeManager {
|
|||
sourceArchive.getArchiveType() == ArchiveType.BUILT_IN) {
|
||||
resolvedDataType = resolveBuiltIn(dataType);
|
||||
}
|
||||
else if (sourceArchive == null || dataType.getUniversalID() == null ||
|
||||
sourceArchive.getArchiveType() == ArchiveType.TEMPORARY) {
|
||||
else if (sourceArchive == null || dataType.getUniversalID() == null) {
|
||||
// if the dataType has no source or it has no ID (datatypes with no ID are
|
||||
// always local i.e. pointers)
|
||||
resolvedDataType = resolveDataTypeNoSource(dataType);
|
||||
}
|
||||
else if (!sourceArchive.getSourceArchiveID().equals(getUniversalID()) &&
|
||||
sourceArchive.getArchiveType() == ArchiveType.PROGRAM) {
|
||||
// dataTypes from a different program don't carry over their identity.
|
||||
(sourceArchive.getArchiveType() == ArchiveType.PROGRAM ||
|
||||
sourceArchive.getArchiveType() == ArchiveType.TEMPORARY)) {
|
||||
// dataTypes from a program or temporary archive don't carry over their identity
|
||||
resolvedDataType = resolveDataTypeNoSource(dataType);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue