mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-31 15:56:23 +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 {
|
protected DataTypeManagerInfo addDTM(DataTypeManagerInfo dtmInfo) throws DuplicateIdException {
|
||||||
DataTypeManagerInfo existingDTM = openDTMs.get(dtmInfo.dtm.getUniversalID());
|
DataTypeManagerInfo existingDTM = openDTMs.get(dtmInfo.dtm.getUniversalID());
|
||||||
if (existingDTM != null) {
|
if (existingDTM != null) {
|
||||||
dtmInfo.dtm.close();
|
if (existingDTM.isClosed()) {
|
||||||
throw new DuplicateIdException(dtmInfo.name(), existingDTM.name());
|
openDTMs.remove(dtmInfo.dtm.getUniversalID());
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
dtmInfo.dtm.close();
|
||||||
|
throw new DuplicateIdException(dtmInfo.name(), existingDTM.name());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
openDTMs.put(dtmInfo.dtm.getUniversalID(), dtmInfo);
|
openDTMs.put(dtmInfo.dtm.getUniversalID(), dtmInfo);
|
||||||
afterAddDataTypeManager(dtmInfo);
|
afterAddDataTypeManager(dtmInfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user