diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2006-09-02 09:43:17 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2006-09-02 09:43:17 +0000 |
commit | afb6fae17ba227ea9b9e7810686a3b889a587471 (patch) | |
tree | c437e093133b8b57207784d7f2e560c55a07439a | |
parent | 8e361c09400d170794b33d14bf551c6ff2b61d28 (diff) | |
download | gdb-afb6fae17ba227ea9b9e7810686a3b889a587471.tar.gz |
(linux_nat_mourn_inferior): Destroy thread.
Clear any pending events
-rw-r--r-- | gdb/linux-nat.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index b37f20389c9..6925bfee5f6 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -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 |