mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-24 13:21:22 +08:00
Merge remote-tracking branch 'origin/GP-0_dev747368_fix_archiveremappedheadlesstest' into Ghidra_10.3
This commit is contained in:
+7
-2
@@ -169,8 +169,13 @@ public class DefaultDataTypeArchiveService implements DataTypeArchiveService {
|
||||
protected DataTypeManagerInfo addDTM(DataTypeManagerInfo dtmInfo) throws DuplicateIdException {
|
||||
DataTypeManagerInfo existingDTM = openDTMs.get(dtmInfo.dtm.getUniversalID());
|
||||
if (existingDTM != null) {
|
||||
dtmInfo.dtm.close();
|
||||
throw new DuplicateIdException(dtmInfo.name(), existingDTM.name());
|
||||
if (existingDTM.isClosed()) {
|
||||
openDTMs.remove(dtmInfo.dtm.getUniversalID());
|
||||
}
|
||||
else {
|
||||
dtmInfo.dtm.close();
|
||||
throw new DuplicateIdException(dtmInfo.name(), existingDTM.name());
|
||||
}
|
||||
}
|
||||
openDTMs.put(dtmInfo.dtm.getUniversalID(), dtmInfo);
|
||||
afterAddDataTypeManager(dtmInfo);
|
||||
|
||||
Reference in New Issue
Block a user