diff options
author | Michael Snyder <msnyder@vmware.com> | 2000-07-22 00:15:30 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2000-07-22 00:15:30 +0000 |
commit | e9d196c53fe0ea5fd893e6312847cc9ce1e32d28 (patch) | |
tree | a09e0ed27f2ffed5dc86cd79a96035901c91d9e2 /gdb | |
parent | e702a51c72b3763aa0df9eaa18ca867b5325037b (diff) | |
download | gdb-e9d196c53fe0ea5fd893e6312847cc9ce1e32d28.zip gdb-e9d196c53fe0ea5fd893e6312847cc9ce1e32d28.tar.gz 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')
-rw-r--r-- | gdb/ChangeLog | 2 | ||||
-rw-r--r-- | gdb/thread.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3350cfb..635a334 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -4,6 +4,8 @@ 2000-07-21 Michael Snyder <msnyder@cleaver.cygnus.com> + * thread.c (thread_apply_all_command): Update thread list first. + * printcmd.c (printf_command): Guard against 0-length string. * config/i386/tm-i386.h: treat PC and FP as unsigned. (SAVED_PC_AFTER_CALL): Use read_memory_unsigned_integer. (FRAME_SAVED_PC): Ditto. 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)) { |