From: Vladimir Prus Date: Wed, 20 Oct 2010 09:10:48 +0000 (+0000) Subject: * remote.c (remote_get_threadlist): If we got empty X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=21bce12043a6f6185a8931137d0969c0d0e8b83a;p=deliverable%2Fbinutils-gdb.git * remote.c (remote_get_threadlist): If we got empty response, bail out immediately, and don't emit any warnings. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5242f6140c..02e42dad44 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2010-10-20 Vladimir Prus + + * remote.c (remote_get_threadlist): If we got empty + response, bail out immediately, and don't emit any + warnings. + 2010-10-19 Ulrich Weigand * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding diff --git a/gdb/remote.c b/gdb/remote.c index 13a96352c4..68e5678bf7 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,