* remote.c (remote_get_threadlist): If we got empty
authorVladimir Prus <vladimir@codesourcery.com>
Wed, 20 Oct 2010 09:10:48 +0000 (09:10 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Wed, 20 Oct 2010 09:10:48 +0000 (09:10 +0000)
response, bail out immediately, and don't emit any
warnings.

gdb/ChangeLog
gdb/remote.c

index 5242f61..02e42da 100644 (file)
@@ -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
index 13a9635..68e5678 100644 (file)
@@ -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,