diff options
author | Pedro Alves <palves@redhat.com> | 2009-03-25 21:53:11 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2009-03-25 21:53:11 +0000 |
commit | a07daef34e77308381c29146b83f8926520755e0 (patch) | |
tree | 8fb676dda3a39560c161a66eea96f0b12c8fea6d /gdb/thread.c | |
parent | d729566a19c83c452f3a962182d1c6d349562159 (diff) | |
download | binutils-a07daef34e77308381c29146b83f8926520755e0.zip binutils-a07daef34e77308381c29146b83f8926520755e0.tar.gz binutils-a07daef34e77308381c29146b83f8926520755e0.tar.bz2 |
gdb/
* infrun.c (infrun_thread_thread_exit): New.
(_initialize_infrun): Attach it to the thread_exit observer.
* thread.c (delete_thread_1): Always call the observer, passing it
the silent flag.
* mi/mi-interp.c (mi_thread_exit): Add "silent" parameter. If
SILENT, return immediately.
gdb/doc/
* observer.texi (thread_exit): Add "silent" parameter.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index fc3df61..eaef50e 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -247,8 +247,7 @@ delete_thread_1 (ptid_t ptid, int silent) { if (tp->state_ != THREAD_EXITED) { - if (!silent) - observer_notify_thread_exit (tp); + observer_notify_thread_exit (tp, silent); /* Tag it as exited. */ tp->state_ = THREAD_EXITED; @@ -267,8 +266,8 @@ delete_thread_1 (ptid_t ptid, int silent) thread_list = tp->next; /* Notify thread exit, but only if we haven't already. */ - if (!silent && tp->state_ != THREAD_EXITED) - observer_notify_thread_exit (tp); + if (tp->state_ != THREAD_EXITED) + observer_notify_thread_exit (tp, silent); free_thread (tp); } |