From 5bc70c4081fccce18b068903d757bfd383ef01f5 Mon Sep 17 00:00:00 2001 From: d-millar <33498836+d-millar@users.noreply.github.com> Date: Wed, 22 May 2024 18:23:56 +0000 Subject: [PATCH] GP-0: fix for control-c at startup --- .../Debug/Debugger-agent-dbgeng/data/support/local-dbgeng.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Ghidra/Debug/Debugger-agent-dbgeng/data/support/local-dbgeng.py b/Ghidra/Debug/Debugger-agent-dbgeng/data/support/local-dbgeng.py index 2cf4492cba7..bf32012a3cd 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/data/support/local-dbgeng.py +++ b/Ghidra/Debug/Debugger-agent-dbgeng/data/support/local-dbgeng.py @@ -55,7 +55,10 @@ def main(): cmd.ghidra_trace_sync_enable() # TODO: HACK - dbg.wait() + try: + dbg.wait() + except KeyboardInterrupt as ki: + dbg.interrupt() cmd.repl()