mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-21 19:42:14 +00:00
GP-4522: mods to docs
GP-4522: better tag GP-4522: moving by-avail to availables
This commit is contained in:
parent
6389d9630c
commit
a9d7962da9
@ -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}')
|
||||
|
||||
|
@ -457,7 +457,7 @@ the system’s copy of GDB. Probably, you can just click
|
||||
<li>In the <strong>Model</strong> window (to the left), expand the
|
||||
<em>Available</em> node.</li>
|
||||
<li>In the filter box, type <code>termmines</code>.</li>
|
||||
<li>Note the PID, e.g. 1234, then in the <strong>Terminal</strong> type,
|
||||
<li>Right click on the node and select <strong>Attach</strong>, or, if you prefer, note the PID, e.g. 1234, then in the <strong>Terminal</strong> type,
|
||||
e.g., <code>attach 1234</code>.</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user