diff options
author | Michael Snyder <msnyder@specifix.com> | 2000-07-22 00:15:30 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2000-07-22 00:15:30 +0000 |
commit | 0d29b606a504070a48e6c10daa5f2ac65578e254 (patch) | |
tree | 6de36543347c8de6c76aca67fbe217e802d55416 /gdb/thread.c | |
parent | 4657d0fbd479eb31714f2421120b31f607128c3c (diff) | |
download | gdb-0d29b606a504070a48e6c10daa5f2ac65578e254.tar.gz |
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.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index 00c6467f254..a08ff175b5b 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)) { |