aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-10-08 15:00:29 +0000
committerPedro Alves <palves@redhat.com>2008-10-08 15:00:29 +0000
commit3084dd775a9a118f43f3143ae4bfa71d27e41887 (patch)
treec3bd13e3b4b28db712d58d73ffdda40343848e49 /gdb/remote.c
parentd6a843b5945deb4cb2df9b07c4f9b19e6fba01de (diff)
downloadgdb-3084dd775a9a118f43f3143ae4bfa71d27e41887.zip
gdb-3084dd775a9a118f43f3143ae4bfa71d27e41887.tar.gz
gdb-3084dd775a9a118f43f3143ae4bfa71d27e41887.tar.bz2
* remote.c (remote_get_thread_info): If the remote doesn't support
the query, bail out.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index d7dc46b..36dd981 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -1831,6 +1831,10 @@ remote_get_threadinfo (threadref *threadid, int fieldset, /* TAG mask */
pack_threadinfo_request (rs->buf, fieldset, threadid);
putpkt (rs->buf);
getpkt (&rs->buf, &rs->buf_size, 0);
+
+ if (rs->buf[0] == '\0')
+ return 0;
+
result = remote_unpack_thread_info_response (rs->buf + 2,
threadid, info);
return result;