summaryrefslogtreecommitdiffstats
path: root/debug/risc-v-gsp-rm-vm/greeneye/cli.py
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-02 11:44:31 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-02 11:44:31 -0400
commit1c99bfbeffff04529f6f669601fdf835a73778da (patch)
tree5867bab46e5848541df36c703f6fd8d6d0256e54 /debug/risc-v-gsp-rm-vm/greeneye/cli.py
parent2fd653044127a665e4677a2cdfb58120d7b3e16b (diff)
downloadopen-iov-1c99bfbeffff04529f6f669601fdf835a73778da.tar.gz
open-iov-1c99bfbeffff04529f6f669601fdf835a73778da.zip
rename (cosmetic): green-eye -> risc-v-gsp-rm-debugger in user-facing names, docs, CLI, launcher and CI workflow; internal greeneye package/module identifiers unchanged (includes in-flight greeneye module edits present in the tree)
Diffstat (limited to 'debug/risc-v-gsp-rm-vm/greeneye/cli.py')
-rw-r--r--debug/risc-v-gsp-rm-vm/greeneye/cli.py38
1 files changed, 19 insertions, 19 deletions
diff --git a/debug/risc-v-gsp-rm-vm/greeneye/cli.py b/debug/risc-v-gsp-rm-vm/greeneye/cli.py
index e7023ec..3f3c937 100644
--- a/debug/risc-v-gsp-rm-vm/greeneye/cli.py
+++ b/debug/risc-v-gsp-rm-vm/greeneye/cli.py
@@ -1,4 +1,4 @@
-"""green-eye command line interface.
+"""risc-v-gsp-rm-debugger command line interface.
Commands:
info environment/tooling check (incl. native simulator availability)
@@ -14,7 +14,7 @@ Commands:
ghidra serve a live session to GhidraScripts over the JSON-lines bridge
analyze render a recorded session to a symbol-annotated report
compare A/B two recorded sessions at the symbolic level
- symbols build/inspect a green-eye symbol database from Ghidra exports
+ symbols build/inspect a risc-v-gsp-rm-debugger symbol database from Ghidra exports
plugins list discoverable plugins
"""
from __future__ import annotations
@@ -108,7 +108,7 @@ def _start_session(
def _print_session_dir(session) -> None:
directory = getattr(session.recorder, "dir", None)
if directory:
- print(f"[green-eye] session: {directory}")
+ print(f"[risc-v-gsp-rm-debugger] session: {directory}")
def _add_backend_arg(parser) -> None:
@@ -176,7 +176,7 @@ def _trace_spec(args):
def cmd_info(args) -> int:
from .target import DEFAULT_QEMU
- print(f"green-eye {ge.__version__}")
+ print(f"risc-v-gsp-rm-debugger {ge.__version__}")
print(f"tool root: {TOOL_ROOT}")
qemu = os.environ.get("GREENEYE_QEMU", DEFAULT_QEMU)
import shutil
@@ -314,8 +314,8 @@ def cmd_run(args) -> int:
class GreenEyeRepl(cmd.Cmd):
- intro = "green-eye interactive instrumentation. Type 'help' for commands."
- prompt = "greeneye> "
+ intro = "risc-v-gsp-rm-debugger interactive instrumentation. Type 'help' for commands."
+ prompt = "risc-v-gsp-rm-debugger> "
def __init__(self, session, manager):
super().__init__()
@@ -519,15 +519,15 @@ def cmd_launch(args) -> int:
raise GreenEyeError(f"kernel not found: {kernel}")
session = ge.launch(kernel=str(kernel), record=args.record, name="launch", keep_alive=True)
port = session.target.port
- print(f"[green-eye] target running: {kernel}")
- print(f"[green-eye] gdbstub: 127.0.0.1:{port}")
- print(f"[green-eye] attach: ./greeneye.sh attach --port {port} --kernel {kernel}")
- print("[green-eye] Ctrl-C stops waiting; QEMU keeps running for attach.")
+ print(f"[risc-v-gsp-rm-debugger] target running: {kernel}")
+ print(f"[risc-v-gsp-rm-debugger] gdbstub: 127.0.0.1:{port}")
+ print(f"[risc-v-gsp-rm-debugger] attach: ./risc-v-gsp-rm-debugger.sh attach --port {port} --kernel {kernel}")
+ print("[risc-v-gsp-rm-debugger] Ctrl-C stops waiting; QEMU keeps running for attach.")
try:
while True:
time.sleep(1)
except KeyboardInterrupt:
- print("[green-eye] detached (QEMU still running)")
+ print("[risc-v-gsp-rm-debugger] detached (QEMU still running)")
return 0
@@ -678,10 +678,10 @@ def cmd_ghidra(args) -> int:
)
bridge = GhidraBridge(session, port=args.bridge_port)
port = bridge.start()
- print(f"[green-eye] ghidra bridge on 127.0.0.1:{port}")
- print(f"[green-eye] session: {getattr(session.recorder, 'dir', None)}")
- print("[green-eye] in Ghidra: analyzeHeadless ... -postScript GreenEyeControl.java " + str(port))
- print("[green-eye] Ctrl-C to stop the bridge")
+ print(f"[risc-v-gsp-rm-debugger] ghidra bridge on 127.0.0.1:{port}")
+ print(f"[risc-v-gsp-rm-debugger] session: {getattr(session.recorder, 'dir', None)}")
+ print("[risc-v-gsp-rm-debugger] in Ghidra: analyzeHeadless ... -postScript GreenEyeControl.java " + str(port))
+ print("[risc-v-gsp-rm-debugger] Ctrl-C to stop the bridge")
try:
bridge.serve_forever()
except KeyboardInterrupt:
@@ -754,8 +754,8 @@ def cmd_plugins(args) -> int:
def build_parser() -> argparse.ArgumentParser:
- parser = argparse.ArgumentParser(prog="greeneye", description=__doc__.splitlines()[0])
- parser.add_argument("--version", action="version", version=f"green-eye {ge.__version__}")
+ parser = argparse.ArgumentParser(prog="risc-v-gsp-rm-debugger", description=__doc__.splitlines()[0])
+ parser.add_argument("--version", action="version", version=f"risc-v-gsp-rm-debugger {ge.__version__}")
sub = parser.add_subparsers(dest="command", required=True)
sub.add_parser("info", help="environment/tooling check").set_defaults(fn=cmd_info)
@@ -798,7 +798,7 @@ def build_parser() -> argparse.ArgumentParser:
probe.add_argument("--no-relocate", action="store_true")
probe.add_argument("--instructions", type=int, default=0)
probe.add_argument("--duration", type=float, default=1.0)
- probe.add_argument("--symbols", help="green-eye symbol DB JSON to annotate the stop")
+ probe.add_argument("--symbols", help="risc-v-gsp-rm-debugger symbol DB JSON to annotate the stop")
probe.add_argument("--record", nargs="?", const=True, default=None)
probe.set_defaults(fn=cmd_probe)
@@ -881,7 +881,7 @@ def main(argv: list[str] | None = None) -> int:
try:
return args.fn(args)
except GreenEyeError as exc:
- print(f"green-eye error: {exc}", file=sys.stderr)
+ print(f"risc-v-gsp-rm-debugger error: {exc}", file=sys.stderr)
return 2
except KeyboardInterrupt:
print("interrupted", file=sys.stderr)