diff options
author | Pedro Alves <palves@redhat.com> | 2008-07-24 15:28:42 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-07-24 15:28:42 +0000 |
commit | 60e569b986e92a2bb94d0c0d4980eefe4789cd56 (patch) | |
tree | 742056ee331c00a10b3cbdd768070e30f392513f /gdb/remote.c | |
parent | b7d9aef1b30fc103b96491eb781e34cb840e895f (diff) | |
download | gdb-60e569b986e92a2bb94d0c0d4980eefe4789cd56.zip gdb-60e569b986e92a2bb94d0c0d4980eefe4789cd56.tar.gz gdb-60e569b986e92a2bb94d0c0d4980eefe4789cd56.tar.bz2 |
* 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.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 14e04da..2e626a9 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", |