diff options
-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, |