From 0bfad2458d6227cccfea664495c7d27056e63cd4 Mon Sep 17 00:00:00 2001 From: d-millar <33498836+d-millar@users.noreply.github.com> Date: Fri, 7 Jun 2024 21:33:02 +0000 Subject: [PATCH] GP-4674+8: fix for state --- .../Debug/Debugger-agent-dbgeng/data/support/local-dbgeng.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 6d95b403c1..c20c802679 100644 --- a/Ghidra/Debug/Debugger-agent-dbgeng/data/support/local-dbgeng.py +++ b/Ghidra/Debug/Debugger-agent-dbgeng/data/support/local-dbgeng.py @@ -39,7 +39,8 @@ else: def main(): # Delay these imports until sys.path is patched from ghidradbg import commands as cmd - from ghidradbg.hooks import on_stop + from pybag.dbgeng import core as DbgEng + from ghidradbg.hooks import on_state_changed from ghidradbg.util import dbg # So that the user can re-enter by typing repl() @@ -62,7 +63,7 @@ def main(): cmd.ghidra_trace_start(os.getenv('OPT_TARGET_IMG')) cmd.ghidra_trace_sync_enable() - on_stop() + on_state_changed(DbgEng.DEBUG_CES_EXECUTION_STATUS, DbgEng.DEBUG_STATUS_BREAK) cmd.repl()