mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-06 07:28:44 +08:00
Fix inferior_thread attribute in new_thread event
Commit 72ee03ff58 fixed a use-after-move bug in add_thread_object, but it changed the inferior_thread attribute to contain the inferior instead of the actual thread. This now uses the thread_obj in its new location instead. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=28429
This commit is contained in:
@ -333,7 +333,8 @@ add_thread_object (struct thread_info *tp)
|
||||
return;
|
||||
|
||||
gdbpy_ref<> event = create_thread_event_object (&new_thread_event_object_type,
|
||||
(PyObject *) inf_obj);
|
||||
(PyObject *)
|
||||
entry->thread_obj.get ());
|
||||
if (event == NULL
|
||||
|| evpy_emit_event (event.get (), gdb_py_events.new_thread) < 0)
|
||||
gdbpy_print_stack ();
|
||||
|
Reference in New Issue
Block a user