2000-07-21 Michael Snyder <msnyder@cleaver.cygnus.com>
authorMichael Snyder <msnyder@vmware.com>
Sat, 22 Jul 2000 00:15:30 +0000 (00:15 +0000)
committerMichael Snyder <msnyder@vmware.com>
Sat, 22 Jul 2000 00:15:30 +0000 (00:15 +0000)
        * thread.c (thread_apply_all_command): Update thread list first.

gdb/ChangeLog
gdb/thread.c

index 3350cfb8f14e6f9e2e1f48b99e02e170ba6fd967..635a334fa242386cdf1347a2e9c6affe53d79cb8 100644 (file)
@@ -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.
index 00c6467f254b54958560155bd9b2360cb5fabafb..a08ff175b5ba34e88e0b7fa1618867c36dbb819a 100644 (file)
@@ -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))
       {