From 063bfe2e12756ad30f4b4edb81974c0e4bd4299d Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sat, 3 May 2008 15:10:42 +0000 Subject: 2008-05-03 Pedro Alves * 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. --- gdb/linux-nat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/linux-nat.c') 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)); -- cgit v1.1