Ghidra is a software reverse engineering (SRE) framework
GP-6474: post-review GP-6474: attach GP-6474: attach
d-millar004b57d4a34a
diff --git a/Ghidra/Debug/Debugger-agent-lldb/src/main/py/src/ghidralldb/methods.py b/Ghidra/Debug/Debugger-agent-lldb/src/main/py/src/ghidralldb/methods.pyindex 7cfd0a9d7e..9906151bce 100644--- a/Ghidra/Debug/Debugger-agent-lldb/src/main/py/src/ghidralldb/methods.py+++ b/Ghidra/Debug/Debugger-agent-lldb/src/main/py/src/ghidralldb/methods.py@@ -449,13 +449,20 @@ def target(process: Process, spec: str) -> None:exec_convert_errors(f'target select {spec}')[email protected](action='attach', display="Attach by Attachable")-def attach_obj(process: Process, target: Attachable) -> None:- """Attach the process to the given target."""[email protected](action='attach', display="Attach")+def attach(target: Attachable) -> None:+ """Attach to the given target."""pid = find_availpid_by_obj(target)exec_convert_errors(f'process attach -p {pid}')[email protected](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")def attach_pid(process: Process, pid: int) -> None:"""Attach the process to the given target."""