aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/thread.c4
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))
{