From: Pedro Alves Date: Wed, 8 Oct 2008 15:00:29 +0000 (+0000) Subject: * remote.c (remote_get_thread_info): If the remote doesn't support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3084dd775a9a118f43f3143ae4bfa71d27e41887;p=binutils-gdb.git * remote.c (remote_get_thread_info): If the remote doesn't support the query, bail out. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9d14ac67504..e5cac415ce5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-10-08 Pedro Alves + + * remote.c (remote_get_thread_info): If the remote doesn't support + the query, bail out. + 2008-10-08 Jan Kratochvil Convert static_kind into loc_kind enum. diff --git a/gdb/remote.c b/gdb/remote.c index d7dc46ba762..36dd981b3df 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;