Ghidra is a software reverse engineering (SRE) framework
GP-0 minor javadoc update and minor fix to GP-3013
ghidra143bbc10ad91f
diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/ProgramContentHandler.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/ProgramContentHandler.javaindex 480638c1ec..e36878a762 100644--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/ProgramContentHandler.java+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/ProgramContentHandler.java@@ -96,7 +96,7 @@ public class ProgramContentHandler extends DBWithUserDataContentHandler<ProgramDif (msg == null) {msg = t.toString();}- throw new IOException("Open failed: " + msg);+ throw new IOException("Open failed: " + msg, t);}finally {if (!success) {diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/reloc/RelocationManager.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/reloc/RelocationManager.javaindex 95f8535ffa..dad8abd667 100644--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/reloc/RelocationManager.java+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/reloc/RelocationManager.java@@ -85,7 +85,8 @@ public class RelocationManager implements RelocationTable, ManagerDB {public void programReady(int openMode, int currentRevision, TaskMonitor monitor)throws IOException, CancelledException {- if (currentRevision < ProgramDB.RELOCATION_STATUS_ADDED_VERSION) {+ if (openMode == DBConstants.UPGRADE &&+ currentRevision < ProgramDB.RELOCATION_STATUS_ADDED_VERSION) {RelocationDBAdapter.preV6DataMigrationUpgrade(adapter, program, monitor);}}diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/reloc/Relocation.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/reloc/Relocation.javaindex 0892459f1e..76099b9475 100644--- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/reloc/Relocation.java+++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/reloc/Relocation.java@@ -175,9 +175,10 @@ public class Relocation {}/**- * Returns the original instruction bytes affected by relocation.+ * Returns the original instruction bytes affected by applied relocation.*- * @return original instruction bytes affected by relocation+ * @return original instruction bytes affected by relocation if it was successfully applied+ * (i.e., {@link Status#APPLIED}, {@link Status#APPLIED_OTHER}), otherwise null may be returned.*/public byte[] getBytes() {return bytes;