diff options
Diffstat (limited to 'debug/risc-v-gsp-rm-vm/ghidra/GreenEyeControl.java')
| -rw-r--r-- | debug/risc-v-gsp-rm-vm/ghidra/GreenEyeControl.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/debug/risc-v-gsp-rm-vm/ghidra/GreenEyeControl.java b/debug/risc-v-gsp-rm-vm/ghidra/GreenEyeControl.java index abeee82..b0a6628 100644 --- a/debug/risc-v-gsp-rm-vm/ghidra/GreenEyeControl.java +++ b/debug/risc-v-gsp-rm-vm/ghidra/GreenEyeControl.java @@ -1,7 +1,7 @@ -// GreenEyeControl - drive a live green-eye session from Ghidra. +// GreenEyeControl - drive a live risc-v-gsp-rm-debugger session from Ghidra. // -// The script connects to the green-eye JSON-lines bridge (start it with -// `./greeneye.sh ghidra [--kernel <elf>]`), and exposes the operations a +// The script connects to the risc-v-gsp-rm-debugger JSON-lines bridge (start it with +// `./risc-v-gsp-rm-debugger.sh ghidra [--kernel <elf>]`), and exposes the operations a // reverse engineer needs while reading the decompiler: // // ping() - check the bridge @@ -59,14 +59,14 @@ public class GreenEyeControl extends GhidraScript { int port = Integer.parseInt(args[0]); try { connect(port); - println("green-eye: " + info()); + println("risc-v-gsp-rm-debugger: " + info()); String target = args.length > 1 ? args[1] : null; if (target == null && currentAddress != null) { target = "0x" + Long.toHexString(currentAddress.getOffset()); } if (target != null) { - println("green-eye run_until " + target + " -> " + runUntil(target)); - println("green-eye hits: " + listHits()); + println("risc-v-gsp-rm-debugger run_until " + target + " -> " + runUntil(target)); + println("risc-v-gsp-rm-debugger hits: " + listHits()); } } finally { disconnect(); @@ -95,11 +95,11 @@ public class GreenEyeControl extends GhidraScript { writer.println(request); String response = reader.readLine(); if (response == null) { - throw new Exception("green-eye bridge closed the connection"); + throw new Exception("risc-v-gsp-rm-debugger bridge closed the connection"); } Matcher ok = OK.matcher(response); if (ok.find() && "false".equals(ok.group(1))) { - throw new Exception("green-eye error: " + response); + throw new Exception("risc-v-gsp-rm-debugger error: " + response); } return response; } |
