mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-0 minor javadoc update and minor fix to GP-3013
This commit is contained in:
parent
3c1457c3c1
commit
43bbc10ad9
3 changed files with 6 additions and 4 deletions
|
@ -96,7 +96,7 @@ public class ProgramContentHandler extends DBWithUserDataContentHandler<ProgramD
|
|||
if (msg == null) {
|
||||
msg = t.toString();
|
||||
}
|
||||
throw new IOException("Open failed: " + msg);
|
||||
throw new IOException("Open failed: " + msg, t);
|
||||
}
|
||||
finally {
|
||||
if (!success) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue