2012-07-31 Pedro Alves <palves@redhat.com>
authorPedro Alves <palves@redhat.com>
Tue, 31 Jul 2012 19:16:46 +0000 (19:16 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 31 Jul 2012 19:16:46 +0000 (19:16 +0000)
* server.c (process_point_options): Only skip tokens if we find
one that is unrecognized.  Don't treat 'X' specially while
skipping unrecognized tokens.

gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c

index 08a8d3adaa632077970d70bcd7fea59e5978fed8..4e40aa92821e3cdcd4201ab1b8905c1e5afc1dbf 100644 (file)
@@ -1,3 +1,9 @@
+2012-07-31  Pedro Alves  <palves@redhat.com>
+
+       * server.c (process_point_options): Only skip tokens if we find
+       one that is unrecognized.  Don't treat 'X' specially while
+       skipping unrecognized tokens.
+
 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
 
        * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
index 4e15b3c9fa977dd6551ce85a6b8418a7801c9d68..547552f94dc98cd8ad7d8062b22501263bb04588 100644 (file)
@@ -2938,14 +2938,12 @@ process_point_options (CORE_ADDR point_addr, char **packet)
        }
       else
        {
-         /* Unrecognized token, just skip it.  */
          fprintf (stderr, "Unknown token %c, ignoring.\n",
                   *dataptr);
+         /* Skip tokens until we find one that we recognize.  */
+         while (*dataptr && *dataptr != ';')
+           dataptr++;
        }
-
-      /* Skip tokens until we find one that we recognize.  */
-      while (*dataptr && *dataptr != 'X' && *dataptr != ';')
-       dataptr++;
     }
   *packet = dataptr;
 }