]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/python/py-inferior.c
gdb/Python: Added ThreadExitedEvent
[thirdparty/binutils-gdb.git] / gdb / python / py-inferior.c
index 8c4871dfa8901372dfd80e02b2627aee00cb4cca..af8bd8855a30f1943f91284f6140178ddb712ee6 100644 (file)
@@ -371,6 +371,9 @@ delete_thread_object (struct thread_info *tp, int ignore)
   if (inf_obj == NULL)
     return;
 
+  if (emit_thread_exit_event (tp) < 0)
+    gdbpy_print_stack ();
+
   auto it = inf_obj->threads->find (tp);
   if (it != inf_obj->threads->end ())
     {