]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
(linux_nat_mourn_inferior): Destroy thread.
authorNick Roberts <nickrob@snap.net.nz>
Sat, 2 Sep 2006 09:43:17 +0000 (09:43 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sat, 2 Sep 2006 09:43:17 +0000 (09:43 +0000)
Clear any pending events

gdb/linux-nat.c

index b37f20389c9a9b0141794dac0d3f05f3a34d57f3..6925bfee5f6e67185c92b2fdd945c00ce368352b 100644 (file)
@@ -2381,6 +2381,9 @@ linux_nat_mourn_inferior (void)
 {
   trap_ptid = null_ptid;
 
+  if (target_can_async_p ())
+    gdb_inferior_destroy (gdb_status);
+
   /* Destroy LWP info; it's no longer valid.  */
   init_lwp_list ();
 
@@ -2396,6 +2399,8 @@ linux_nat_mourn_inferior (void)
        there are other viable forks to debug.  Delete the exiting
        one and context-switch to the first available.  */
     linux_fork_mourn_inferior ();
+
+  if (target_can_async_p ()) gdb_clear_pending_events ();
 }
 
 static LONGEST