aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2000-07-22 00:15:30 +0000
committerMichael Snyder <msnyder@vmware.com>2000-07-22 00:15:30 +0000
commite9d196c53fe0ea5fd893e6312847cc9ce1e32d28 (patch)
treea09e0ed27f2ffed5dc86cd79a96035901c91d9e2 /gdb/thread.c
parente702a51c72b3763aa0df9eaa18ca867b5325037b (diff)
downloadfsf-binutils-gdb-e9d196c53fe0ea5fd893e6312847cc9ce1e32d28.zip
fsf-binutils-gdb-e9d196c53fe0ea5fd893e6312847cc9ce1e32d28.tar.gz
fsf-binutils-gdb-e9d196c53fe0ea5fd893e6312847cc9ce1e32d28.tar.bz2
2000-07-21 Michael Snyder <msnyder@cleaver.cygnus.com>
* thread.c (thread_apply_all_command): Update thread list first.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index 00c6467..a08ff17 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -567,6 +567,10 @@ thread_apply_all_command (cmd, from_tty)
old_chain = make_cleanup_restore_current_thread (inferior_pid);
+ /* It is safe to update the thread list now, before
+ traversing it for "thread apply all". MVS */
+ target_find_new_threads ();
+
for (tp = thread_list; tp; tp = tp->next)
if (thread_alive (tp))
{