aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-05-03 15:10:42 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-05-03 15:10:42 +0000
commit063bfe2e12756ad30f4b4edb81974c0e4bd4299d (patch)
tree16adac2c33c56cb2c3fdd33e2c2e26851d195348 /gdb/linux-nat.c
parent9cbdce76abdea25d9447f42b498c2ecdf5bc9a34 (diff)
downloadgdb-063bfe2e12756ad30f4b4edb81974c0e4bd4299d.zip
gdb-063bfe2e12756ad30f4b4edb81974c0e4bd4299d.tar.gz
gdb-063bfe2e12756ad30f4b4edb81974c0e4bd4299d.tar.bz2
2008-05-03 Pedro Alves <pedro@codesourcery.com>
* thread.c (delete_thread): Call observer_notify_thread_exit. * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as thread_exit observer. (mi_thread_exit): New.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 246712c..4b6c614 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -1022,7 +1022,9 @@ prune_lwps (void)
static void
exit_lwp (struct lwp_info *lp)
{
- if (in_thread_list (lp->ptid))
+ struct thread_info *th = find_thread_pid (lp->ptid);
+
+ if (th)
{
if (print_thread_events)
printf_unfiltered (_("[%s exited]\n"), target_pid_to_str (lp->ptid));