* 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 5242f6140ce45829fa0145c80a63130969e0b018..02e42dad44894b20ba0889c6a929dc032564b59d 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 13a96352c4b110ac8eb1708d6d90719fb35feff9..68e5678bf79a9724097a5433151bc49669897b97 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,
This page took 0.042483 seconds and 4 git commands to generate.