projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6a843b
)
* remote.c (remote_get_thread_info): If the remote doesn't support
author
Pedro Alves
<palves@redhat.com>
Wed, 8 Oct 2008 15:00:29 +0000
(15:00 +0000)
committer
Pedro Alves
<palves@redhat.com>
Wed, 8 Oct 2008 15:00:29 +0000
(15:00 +0000)
the query, bail out.
gdb/ChangeLog
patch
|
blob
|
history
gdb/remote.c
patch
|
blob
|
history
diff --git
a/gdb/ChangeLog
b/gdb/ChangeLog
index 9d14ac67504b45ad4e7730af17ab2f2322bfcd24..e5cac415ce5b8640b43166c5cb8032de03c005df 100644
(file)
--- 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 d7dc46ba7622809b27244cb860c1fc5903a52005..36dd981b3df96f66433747639aa0c5d2b0333640 100644
(file)
--- 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;