diff options
author | Pedro Alves <palves@redhat.com> | 2008-10-08 15:00:29 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2008-10-08 15:00:29 +0000 |
commit | 3084dd775a9a118f43f3143ae4bfa71d27e41887 (patch) | |
tree | c3bd13e3b4b28db712d58d73ffdda40343848e49 /gdb | |
parent | d6a843b5945deb4cb2df9b07c4f9b19e6fba01de (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/remote.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9d14ac6..e5cac41 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-10-08 Pedro Alves <pedro@codesourcery.com> + + * remote.c (remote_get_thread_info): If the remote doesn't support + the query, bail out. + 2008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com> Convert static_kind into loc_kind enum. 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; |