From 5dc94d825f5b0bd2cbbb352cd75853f86d3c9c36 Mon Sep 17 00:00:00 2001 From: d-millar <33498836+d-millar@users.noreply.github.com> Date: Mon, 24 Nov 2025 13:52:18 -0500 Subject: [PATCH] GP-6148: post review --- .../src/main/py/src/ghidraxdbg/hooks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Ghidra/Debug/Debugger-agent-x64dbg/src/main/py/src/ghidraxdbg/hooks.py b/Ghidra/Debug/Debugger-agent-x64dbg/src/main/py/src/ghidraxdbg/hooks.py index de9c015045..c8c53fd279 100644 --- a/Ghidra/Debug/Debugger-agent-x64dbg/src/main/py/src/ghidraxdbg/hooks.py +++ b/Ghidra/Debug/Debugger-agent-x64dbg/src/main/py/src/ghidraxdbg/hooks.py @@ -105,14 +105,14 @@ class ProcessState: except Exception: pass - def record_exited(self, description: Optional[str] = None, + def record_exited(self, exit_code: Optional[str] = None, time: Optional[Schedule] = None) -> None: trace = commands.STATE.require_trace() - if description is not None: - trace.snapshot(f"Exited {description}", time=time) + if exit_code is not None: + trace.snapshot(f"Exited {exit_code}", time=time) ipath = commands.PROCESS_PATTERN.format(procnum=util.last_process) procobj = trace.proxy_object_path(ipath) - procobj.set_value('Exit Code', description) + procobj.set_value('Exit Code', exit_code) procobj.set_value('State', 'TERMINATED')