From a9d7962da95f4965ec15f29c0bddc51800c3c6c4 Mon Sep 17 00:00:00 2001 From: d-millar <33498836+d-millar@users.noreply.github.com> Date: Mon, 22 Apr 2024 16:52:26 -0400 Subject: [PATCH] GP-4522: mods to docs GP-4522: better tag GP-4522: moving by-avail to availables --- .../Debugger-agent-gdb/src/main/py/src/ghidragdb/methods.py | 6 +++--- GhidraDocs/GhidraClass/Debugger/A1-GettingStarted.html | 2 +- GhidraDocs/GhidraClass/Debugger/A1-GettingStarted.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/methods.py b/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/methods.py index 83e86d0178..128c77b7c0 100644 --- a/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/methods.py +++ b/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/methods.py @@ -425,10 +425,10 @@ def connect(inferior: sch.Schema('Inferior'), spec: str): gdb.execute(f'target {spec}') -@REGISTRY.method(action='attach', display='Attach by Available') -def attach_obj(inferior: sch.Schema('Inferior'), target: sch.Schema('Attachable')): +@REGISTRY.method(action='attach', display='Attach') +def attach_obj(target: sch.Schema('Attachable')): """Attach the inferior to the given target.""" - switch_inferior(find_inf_by_obj(inferior)) + #switch_inferior(find_inf_by_obj(inferior)) pid = find_availpid_by_obj(target) gdb.execute(f'attach {pid}') diff --git a/GhidraDocs/GhidraClass/Debugger/A1-GettingStarted.html b/GhidraDocs/GhidraClass/Debugger/A1-GettingStarted.html index 77af0e12a4..b0b3da0890 100644 --- a/GhidraDocs/GhidraClass/Debugger/A1-GettingStarted.html +++ b/GhidraDocs/GhidraClass/Debugger/A1-GettingStarted.html @@ -457,7 +457,7 @@ the system’s copy of GDB. Probably, you can just click
  • In the Model window (to the left), expand the Available node.
  • In the filter box, type termmines.
  • -
  • Note the PID, e.g. 1234, then in the Terminal type, +
  • Right click on the node and select Attach, or, if you prefer, note the PID, e.g. 1234, then in the Terminal type, e.g., attach 1234.
  • diff --git a/GhidraDocs/GhidraClass/Debugger/A1-GettingStarted.md b/GhidraDocs/GhidraClass/Debugger/A1-GettingStarted.md index 6085fd1d9c..7616c92af6 100644 --- a/GhidraDocs/GhidraClass/Debugger/A1-GettingStarted.md +++ b/GhidraDocs/GhidraClass/Debugger/A1-GettingStarted.md @@ -221,7 +221,7 @@ Note this technique is only possible because the target waits for input. Probably, you can just click **Launch**. 1. In the **Model** window (to the left), expand the *Available* node. 1. In the filter box, type `termmines`. -1. Note the PID, e.g. 1234, then in the **Terminal** type, e.g., `attach 1234`. +1. Right click on the node and select **Attach**, or, if you prefer, note the PID, e.g. 1234, then in the **Terminal** type, e.g., `attach 1234`. ## Exercise: Attach