Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-1965 reverted deleted data type check for resolve. Coping with this situation is an unresolved known issue.

ghidra1c90a3ecef3d1
diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorNotifiedTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorNotifiedTest.java
index 8c107832a6..2dcc62683f 100644
--- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorNotifiedTest.java
+++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/compositeeditor/StructureEditorNotifiedTest.java
@@ -106,11 +106,10 @@ public class StructureEditorNotifiedTest extends AbstractStructureEditorTest {
assertEquals("complexStructure *", dataType10.getDisplayName());
assertEquals(4, dataType10.getLength());
- runSwing(() -> {
- programDTM.remove(complexStructure, TaskMonitor.DUMMY);
- programDTM.getCategory(pgmRootCat.getCategoryPath())
+ programDTM.remove(complexStructure, TaskMonitor.DUMMY);
+ programDTM.getCategory(pgmRootCat.getCategoryPath())
.removeCategory("Temp", TaskMonitor.DUMMY);
- });
+
waitForSwing();
// complexStructure* gets removed and becomes 4 undefined bytes in this editor.
diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/DataTypeManagerDB.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/DataTypeManagerDB.java
index d45937c323..9ef0243cd2 100644
--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/DataTypeManagerDB.java
+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/data/DataTypeManagerDB.java
@@ -1011,10 +1011,6 @@ abstract public class DataTypeManagerDB implements DataTypeManager {
return dataType;
}
- if (dataType.isDeleted()) {
- throw new IllegalArgumentException("can't resolve deleted datatype");
- }
-
if (dataType instanceof BitFieldDataType) {
return resolveBitFieldDataType((BitFieldDataType) dataType, handler);
}