summaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2008-07-24 15:28:42 +0000
committerPedro Alves <pedro@codesourcery.com>2008-07-24 15:28:42 +0000
commita6561dc2ae61b75336c071456ad0b4407f937b1f (patch)
tree72d157fc6b8d8bfc4098e7b3a62403aea842fb01 /gdb/remote.c
parente7fff3f6c4b92eb302f515c83a40b1cfe260603c (diff)
downloadgdb-a6561dc2ae61b75336c071456ad0b4407f937b1f.tar.gz
* remote.c (remote_threads_extra_info): Don't query the remote
server about info on the internally added main thread.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c6
1 files changed, 6 insertions, 0 deletions
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",