Fix gdbserver crash exposed by gdb.threads/process-dies-while-handling-bp.exp
[deliverable/binutils-gdb.git] / gdb / gdbserver / inferiors.c
index d7ad347eeed4e457c13e952ebbcf3e18086d5e17..3659df14394c4ff175dc5c05f0ee522f1398e016 100644 (file)
@@ -165,6 +165,7 @@ remove_thread (struct thread_info *thread)
   if (thread->btrace != NULL)
     target_disable_btrace (thread->btrace);
 
+  discard_queued_stop_replies (ptid_of (thread));
   remove_inferior (&all_threads, (struct inferior_list_entry *) thread);
   free_one_thread (&thread->entry);
 }
This page took 0.024807 seconds and 4 git commands to generate.