diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2010-10-20 09:10:48 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2010-10-20 09:10:48 +0000 |
commit | 21bce12043a6f6185a8931137d0969c0d0e8b83a (patch) | |
tree | 86fe2c7c1f782e21e13722b89d134c1600d6c060 /gdb | |
parent | a8f3b77c35ab8492893c6a908be22992e56554bf (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/remote.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5242f61..02e42da 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-10-20 Vladimir Prus <vladimir@codesourcery.com> + + * remote.c (remote_get_threadlist): If we got empty + response, bail out immediately, and don't emit any + warnings. + 2010-10-19 Ulrich Weigand <uweigand@de.ibm.com> * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding 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, |