From eced291c6e2e53479a7b62af5fed10040c47f6ea Mon Sep 17 00:00:00 2001 From: d-millar <33498836+d-millar@users.noreply.github.com> Date: Fri, 15 Nov 2024 20:27:17 +0000 Subject: [PATCH] GP-0: broken in 5120 --- .../Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/hooks.py b/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/hooks.py index 7469e5f1b6..9910c3e5ca 100644 --- a/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/hooks.py +++ b/Ghidra/Debug/Debugger-agent-gdb/src/main/py/src/ghidragdb/hooks.py @@ -281,7 +281,7 @@ def on_register_changed(event): @log_errors def on_cont(event): - if event.inferior_thread is None: + if gdb.selected_thread() is None: # thread-based state computed in record_continued will # fail in some versions of gdb because the current_thread is None # and gdb fails to test for None before switching