aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-06-27 11:54:21 +0000
committerPedro Alves <palves@redhat.com>2008-06-27 11:54:21 +0000
commitc0a2216eb39d8d955232d71ded9fa3e132078f07 (patch)
tree4a8bd293c88b11bbb114564c47c01e3fa3b5d970 /gdb/infrun.c
parent87b0e16e7b9756ea871631cd48ae1eb9040a6381 (diff)
downloadgdb-c0a2216eb39d8d955232d71ded9fa3e132078f07.zip
gdb-c0a2216eb39d8d955232d71ded9fa3e132078f07.tar.gz
gdb-c0a2216eb39d8d955232d71ded9fa3e132078f07.tar.bz2
* 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).
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 8aa8039..73b92be 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1281,7 +1281,6 @@ proceed (CORE_ADDR addr, enum target_signal siggnal, int step)
void
start_remote (int from_tty)
{
- init_thread_list ();
init_wait_for_inferior ();
stop_soon = STOP_QUIETLY_REMOTE;
stepping_over_breakpoint = 0;