aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2010-10-20 09:10:48 +0000
committerVladimir Prus <vladimir@codesourcery.com>2010-10-20 09:10:48 +0000
commit21bce12043a6f6185a8931137d0969c0d0e8b83a (patch)
tree86fe2c7c1f782e21e13722b89d134c1600d6c060 /gdb/remote.c
parenta8f3b77c35ab8492893c6a908be22992e56554bf (diff)
downloadgdb-21bce12043a6f6185a8931137d0969c0d0e8b83a.zip
gdb-21bce12043a6f6185a8931137d0969c0d0e8b83a.tar.gz
gdb-21bce12043a6f6185a8931137d0969c0d0e8b83a.tar.bz2
* remote.c (remote_get_threadlist): If we got empty
response, bail out immediately, and don't emit any warnings.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 13a9635..68e5678 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -2353,7 +2353,7 @@ remote_get_threadlist (int startflag, threadref *nextthread, int result_limit,
getpkt (&rs->buf, &rs->buf_size, 0);
if (*rs->buf == '\0')
- *result_count = 0;
+ return 0;
else
*result_count =
parse_threadlist_response (rs->buf + 2, result_limit, &echo_nextthread,