diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-05-01 14:27:39 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-05-01 14:27:39 +0000 |
commit | cfc0146143bf79d840bbd26b3e94d8e4660dde6d (patch) | |
tree | 159d1c632644f389f654bd40dab6958d61c5c49e /gdb/thread.c | |
parent | 889677147d31c890be714c422f081e9f39b603e9 (diff) | |
download | ppe42-binutils-cfc0146143bf79d840bbd26b3e94d8e4660dde6d.tar.gz ppe42-binutils-cfc0146143bf79d840bbd26b3e94d8e4660dde6d.zip |
* thread.c (add_thread): Move observer call to ...
(add_thread_silent): ... here.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 5 |
1 files changed, 3 insertions, 2 deletions
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; } |