From cfc0146143bf79d840bbd26b3e94d8e4660dde6d Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Thu, 1 May 2008 14:27:39 +0000 Subject: [PATCH] * thread.c (add_thread): Move observer call to ... (add_thread_silent): ... here. --- gdb/ChangeLog | 5 +++++ gdb/thread.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4161cadc02..9d1d6bdfdd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-05-01 Vladimir Prus + + * thread.c (add_thread): Move observer call to ... + (add_thread_silent): ... here. + 2008-04-30 Ulrich Weigand * rs6000-tdep.c: Update for unwinder changes. diff --git a/gdb/thread.c b/gdb/thread.c index e9d6609fa7..c04c989e82 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -126,6 +126,9 @@ add_thread_silent (ptid_t ptid) tp->num = ++highest_thread_num; tp->next = thread_list; thread_list = tp; + + observer_notify_new_thread (tp); + return tp; } @@ -138,8 +141,6 @@ add_thread_with_info (ptid_t ptid, struct private_thread_info *private) if (print_thread_events) printf_unfiltered (_("[New %s]\n"), target_pid_to_str (ptid)); - - observer_notify_new_thread (result); return result; }