diff options
author | Pedro Alves <palves@redhat.com> | 2012-07-31 19:16:46 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-07-31 19:16:46 +0000 |
commit | 78a99e911936e6c86fe64f84ba16a6550410aeec (patch) | |
tree | c3ab0493a860fa586fdcbc870f9ff1faa505a136 /gdb/gdbserver/server.c | |
parent | 902e4335501e73ad45ad2ebc2510b1d41786873f (diff) | |
download | gdb-78a99e911936e6c86fe64f84ba16a6550410aeec.zip gdb-78a99e911936e6c86fe64f84ba16a6550410aeec.tar.gz gdb-78a99e911936e6c86fe64f84ba16a6550410aeec.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbserver/server.c')
-rw-r--r-- | gdb/gdbserver/server.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 4e15b3c..547552f 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -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; } |