* remote.c (remote_notice_new_inferior): Use ptid_is_pid. Check
authorPedro Alves <palves@redhat.com>
Tue, 31 Mar 2009 15:23:57 +0000 (15:23 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 31 Mar 2009 15:23:57 +0000 (15:23 +0000)
commitbad34192e56554fda247b1d0c72cfb18bc7f83bf
tree3c2b2028af0f036a6eb8b122435dd206baa0cac3
parente35251173842f4f5f2b4ef0337a16b14793f48e2
* remote.c (remote_notice_new_inferior): Use ptid_is_pid.  Check
if the thread's ptid without a thread id field is in the list
before calling thread_change_ptid.
(extended_remote_attach_1): In non-stop mode, do not rely on
querying the current thread, instead, query the thread list, and
select the first thread of the process.
* gdbthread.h (first_thread_of_process): Declare.
* thread.c (first_thread_of_process): Define.
gdb/ChangeLog
gdb/gdbthread.h
gdb/remote.c
gdb/thread.c