forked from Imagelibrary/binutils-gdb
* remote.c (remote_get_thread_info): If the remote doesn't support
the query, bail out.
This commit is contained in:
@@ -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>
|
2008-10-08 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
Convert static_kind into loc_kind enum.
|
Convert static_kind into loc_kind enum.
|
||||||
|
|||||||
@@ -1831,6 +1831,10 @@ remote_get_threadinfo (threadref *threadid, int fieldset, /* TAG mask */
|
|||||||
pack_threadinfo_request (rs->buf, fieldset, threadid);
|
pack_threadinfo_request (rs->buf, fieldset, threadid);
|
||||||
putpkt (rs->buf);
|
putpkt (rs->buf);
|
||||||
getpkt (&rs->buf, &rs->buf_size, 0);
|
getpkt (&rs->buf, &rs->buf_size, 0);
|
||||||
|
|
||||||
|
if (rs->buf[0] == '\0')
|
||||||
|
return 0;
|
||||||
|
|
||||||
result = remote_unpack_thread_info_response (rs->buf + 2,
|
result = remote_unpack_thread_info_response (rs->buf + 2,
|
||||||
threadid, info);
|
threadid, info);
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user