2000-07-21 Michael Snyder <msnyder@cleaver.cygnus.com>
* thread.c (thread_apply_all_command): Update thread list first.
This commit is contained in:
parent
e702a51c72
commit
e9d196c53f
@ -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.
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user