2000-07-21 Michael Snyder <msnyder@cleaver.cygnus.com>

* thread.c (thread_apply_all_command): Update thread list first.
This commit is contained in:
Michael Snyder 2000-07-22 00:15:30 +00:00
parent e702a51c72
commit e9d196c53f
2 changed files with 6 additions and 0 deletions

View 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.

View 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))
{