OSDN Git Service

* infrun.c (start_remote): Don't clear thread list here.
authorPedro Alves <pedro@codesourcery.com>
Fri, 27 Jun 2008 11:54:21 +0000 (11:54 +0000)
committerPedro Alves <pedro@codesourcery.com>
Fri, 27 Jun 2008 11:54:21 +0000 (11:54 +0000)
commit83ce56d745d0ca10a95086a36f744ef5267cc4ff
tree27c83b0c72527ed32d66d116e3362f4e0b5e02d6
parent8639a1c504930362c65ddb686aca5ffb345bd6ec
* infrun.c (start_remote): Don't clear thread list here.
* monitor.c (monitor_open): Include "gdbthread.h".  Clear thread
list here.
* remote.c (record_currthread): Upgrade the main thread and its
entry in the thread list if this is the first time we hear about
threads.
(remote_thread_alive): Consider magic_null_ptid or a ptid without
a tid member always alive.
(remote_find_new_threads): Don't update the main thread here.
(remote_start_remote): Clear thread list here.  Always add the
main thread.
(extended_remote_attach_1): Add the main thread here.
(extended_remote_mourn_1): Re-add the main thread here.
(extended_remote_create_inferior_1): Add a main thread.

* Makefile.in (monitor.o): Depend on $(gdbthread_h).
gdb/ChangeLog
gdb/Makefile.in
gdb/infrun.c
gdb/monitor.c
gdb/remote.c