mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
Merge remote-tracking branch 'origin/GP-6474_d-millar_attach--SQUASHED'
This commit is contained in:
@@ -449,13 +449,20 @@ def target(process: Process, spec: str) -> None:
|
|||||||
exec_convert_errors(f'target select {spec}')
|
exec_convert_errors(f'target select {spec}')
|
||||||
|
|
||||||
|
|
||||||
@REGISTRY.method(action='attach', display="Attach by Attachable")
|
@REGISTRY.method(action='attach', display="Attach")
|
||||||
def attach_obj(process: Process, target: Attachable) -> None:
|
def attach(target: Attachable) -> None:
|
||||||
"""Attach the process to the given target."""
|
"""Attach to the given target."""
|
||||||
pid = find_availpid_by_obj(target)
|
pid = find_availpid_by_obj(target)
|
||||||
exec_convert_errors(f'process attach -p {pid}')
|
exec_convert_errors(f'process attach -p {pid}')
|
||||||
|
|
||||||
|
|
||||||
|
@REGISTRY.method(action='attach', display="Attach")
|
||||||
|
def attach_obj(process: Process) -> None:
|
||||||
|
"""Attach the process to the given target."""
|
||||||
|
pid = find_availpid_by_obj(process)
|
||||||
|
exec_convert_errors(f'process attach -p {pid}')
|
||||||
|
|
||||||
|
|
||||||
@REGISTRY.method(action='attach', display="Attach by PID")
|
@REGISTRY.method(action='attach', display="Attach by PID")
|
||||||
def attach_pid(process: Process, pid: int) -> None:
|
def attach_pid(process: Process, pid: int) -> None:
|
||||||
"""Attach the process to the given target."""
|
"""Attach the process to the given target."""
|
||||||
|
|||||||
Reference in New Issue
Block a user