Ghidra is a software reverse engineering (SRE) framework
GP-2712 silence prototype errors prior to language upgrade
ghidra1b33cd2b4d897
diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/PrototypeManager.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/PrototypeManager.javaindex d8bd082c89..fc29b71469 100644--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/PrototypeManager.java+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/code/PrototypeManager.java@@ -307,6 +307,9 @@ class PrototypeManager {private void populatePrototypes() {try {+ // Prior to language upgrade force use of invalid prototypes+ boolean forceInvalidPrototypes = program.isLanguageUpgradePending();+RecordIterator iter = protoAdapter.getRecords();while (iter.hasNext()) {DBRecord record = iter.next();@@ -314,7 +317,9 @@ class PrototypeManager {int protoID = (int) record.getKey();if (protoArray.get(protoID) == null) {- InstructionPrototype proto = createPrototype(protoID, record);+ InstructionPrototype proto =+ forceInvalidPrototypes ? new InvalidPrototype(language)+ : createPrototype(protoID, record);protoArray.put(protoID, proto);protoHt.put(proto, protoID);}