GP-0: broken in 5120

This commit is contained in:
d-millar 2024-11-15 20:27:17 +00:00
parent c9a51029bb
commit eced291c6e

View File

@ -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