GP-7091: Fix sleigh.xml and pcoderef.xml

GP-7091: Fix B4-Modeling.md
GP-7091: Fix B3-Scripting.md
This commit is contained in:
Dan
2026-07-27 19:27:10 +00:00
parent ad8f879a86
commit 67a974b70c
9 changed files with 50 additions and 74 deletions

View File

@@ -91,24 +91,17 @@ public class ZeroTimerScript extends GhidraScript implements FlatDebuggerAPI {
TraceExecutionState execState = getExecutionState(trace);
switch (execState) {
case STOPPED:
resume();
break;
case TERMINATED:
case INACTIVE:
throw new AssertionError("Target terminated");
case ALIVE:
println(
"I don't know whether or not the target is running. Please make it RUNNING.");
break;
case RUNNING:
case STOPPED -> resume();
case TERMINATED, INACTIVE -> throw new AssertionError("Target terminated");
case ALIVE -> println(
"I don't know whether or not the target is running. Please make it RUNNING.");
case RUNNING -> {
/**
* Probably timed out waiting for break. That's fine. Give the player time to
* win.
*/
break;
default:
throw new AssertionError("Unrecognized state: " + execState);
}
default -> throw new AssertionError("Unrecognized state: " + execState);
}
try {
monitor.setMessage("Waiting for player to win");