* remote.c (record_curthread): Must not modify inferior_pid when
authorMichael Snyder <msnyder@vmware.com>
Wed, 6 Jan 1999 03:08:10 +0000 (03:08 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 6 Jan 1999 03:08:10 +0000 (03:08 +0000)
commitb53a15146cd81163524f09557f199514a987b766
treebe9b6f31c6225a1ac9b265b082dcbf58bcaef1dd
parent1f205f9d6e2d0492e4c76885dd54cb5bdff1f4a3
* remote.c (record_curthread): Must not modify inferior_pid when
called from wait_for_inferior.  Instead, if a new thread-id is
detected, call add_thread.  (MAGIC_NULL_PID): new macro, use
instead of the magic number "42000".  (remote_find_new_threads):
if inferior_pid is unknown, get and use the current thread id.
(remote_start_remote): on connecting, attempt to get the current
thread id for inferior_pid.  (remote_resume): If pid == -1,
then resume any-thread (not the current thread specifically).
* thread.c (info_threads_command): don't initialize current_pid
until after call to FIND_NEW_THREADS (which may change inferior_pid).
gdb/ChangeLog
gdb/remote.c
gdb/thread.c