From: Pedro Alves Date: Thu, 24 Jul 2008 15:28:42 +0000 (+0000) Subject: * remote.c (remote_threads_extra_info): Don't query the remote X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=60e569b986e92a2bb94d0c0d4980eefe4789cd56;p=binutils-gdb.git * remote.c (remote_threads_extra_info): Don't query the remote server about info on the internally added main thread. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 82dbd52360f..735d58c1ae8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-07-24 Pedro Alves + + * remote.c (remote_threads_extra_info): Don't query the remote + server about info on the internally added main thread. + 2008-07-24 Aleksandar Ristovski * nto-procfs.c (procfs_attach): Populate initial thread list. diff --git a/gdb/remote.c b/gdb/remote.c index 14e04da7ba9..2e626a9ddc5 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -2042,6 +2042,12 @@ remote_threads_extra_info (struct thread_info *tp) internal_error (__FILE__, __LINE__, _("remote_threads_extra_info")); + if (ptid_equal (tp->ptid, magic_null_ptid) + || (ptid_get_pid (tp->ptid) != 0 && ptid_get_tid (tp->ptid) == 0)) + /* This is the main thread which was added by GDB. The remote + server doesn't know about it. */ + return NULL; + if (use_threadextra_query) { xsnprintf (rs->buf, get_remote_packet_size (), "qThreadExtraInfo,%lx",