mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-2437: Change DBAddressFieldCodec to use FixedField10
This commit is contained in:
parent
b289708a00
commit
c0c25e3805
114 changed files with 2354 additions and 652 deletions
|
@ -295,7 +295,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
* object.
|
||||
*/
|
||||
try (UndoableTransaction tid =
|
||||
UndoableTransaction.start(trace, "Populate First Snapshot", true)) {
|
||||
UndoableTransaction.start(trace, "Populate First Snapshot")) {
|
||||
/**
|
||||
* While not strictly required, each tick should be explicitly added to the database and
|
||||
* given a description. Some things may mis-behave if there does not exist at least one
|
||||
|
@ -439,7 +439,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
/**
|
||||
* Just hand emulate the stepping
|
||||
*/
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap = trace.getTimeManager().createSnapshot("Stepped: PUSH RBP").getKey();
|
||||
|
||||
stack1offset -= 8;
|
||||
|
@ -466,7 +466,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
/**
|
||||
* More hand emulation
|
||||
*/
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap = trace.getTimeManager().createSnapshot("Stepped: MOV RBP,RSP").getKey();
|
||||
|
||||
putRIP(snap, regs1, mainInstructions.get(++pc1));
|
||||
|
@ -482,7 +482,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
* While this is a complicated call, there is nothing new to demonstrate in its
|
||||
* implementation. As an exercise, see if you can follow what is happening within.
|
||||
*/
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap = trace.getTimeManager()
|
||||
.createSnapshot("Stepped Thread 1: CALL clone -> Thread 2")
|
||||
.getKey();
|
||||
|
@ -520,7 +520,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
/**
|
||||
* Hand emulate thread1 a few steps
|
||||
*/
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 1: RET from clone").getKey();
|
||||
|
||||
|
@ -535,7 +535,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
/**
|
||||
* ...
|
||||
*/
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 1: TEST EAX,EAX").getKey();
|
||||
|
||||
|
@ -545,7 +545,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
placeRegUnits(snap, thread1);
|
||||
}
|
||||
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 1: JNZ child").getKey();
|
||||
|
||||
|
@ -557,7 +557,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
/**
|
||||
* Switch to thread2
|
||||
*/
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 2: RET from clone").getKey();
|
||||
|
||||
|
@ -569,7 +569,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
placeRegUnits(snap, thread2);
|
||||
}
|
||||
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 2: TEST EAX,EAX").getKey();
|
||||
|
||||
|
@ -579,7 +579,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
placeRegUnits(snap, thread2);
|
||||
}
|
||||
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 2: JNZ child").getKey();
|
||||
|
||||
|
@ -591,7 +591,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
/**
|
||||
* Switch to thread1
|
||||
*/
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 1: SUB RSP,0x10").getKey();
|
||||
|
||||
|
@ -603,7 +603,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
placeRegUnits(snap, thread1);
|
||||
}
|
||||
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 1: MOV...(1)").getKey();
|
||||
|
||||
|
@ -614,7 +614,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
placeRegUnits(snap, thread1);
|
||||
}
|
||||
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 1: MOV...(2)").getKey();
|
||||
|
||||
|
@ -625,7 +625,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
placeRegUnits(snap, thread1);
|
||||
}
|
||||
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 1: MOV...(3)").getKey();
|
||||
|
||||
|
@ -636,7 +636,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
placeRegUnits(snap, thread1);
|
||||
}
|
||||
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 1: MOV...(4)").getKey();
|
||||
|
||||
|
@ -650,7 +650,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
/**
|
||||
* Switch to thread2
|
||||
*/
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 2: SUB RSP,0x10").getKey();
|
||||
|
||||
|
@ -662,7 +662,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
placeRegUnits(snap, thread2);
|
||||
}
|
||||
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 2: MOV...(1)").getKey();
|
||||
|
||||
|
@ -673,7 +673,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
placeRegUnits(snap, thread2);
|
||||
}
|
||||
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 2: MOV...(2)").getKey();
|
||||
|
||||
|
@ -684,7 +684,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
placeRegUnits(snap, thread2);
|
||||
}
|
||||
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 2: MOV...(3)").getKey();
|
||||
|
||||
|
@ -698,7 +698,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
/**
|
||||
* Let thread2 exit first
|
||||
*/
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 2: CALL exit").getKey();
|
||||
|
||||
|
@ -708,7 +708,7 @@ public class PopulateDemoTrace extends GhidraScript {
|
|||
/**
|
||||
* Terminate
|
||||
*/
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step", true)) {
|
||||
try (UndoableTransaction tid = UndoableTransaction.start(trace, "Step")) {
|
||||
long snap =
|
||||
trace.getTimeManager().createSnapshot("Stepped Thread 1: CALL exit").getKey();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue