diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7b989d877e..be32f3ef1b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2015-02-09 Sergio Durigan Junior + + PR remote/17946 + * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison + of pointer against char. + 2015-02-09 Mark Wielaard * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'. diff --git a/gdb/remote.c b/gdb/remote.c index 3980aadd92..dbfc10b309 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -5682,7 +5682,7 @@ Packet: '%s'\n"), { p++; - if (p == '\0') + if (*p == '\0') ; else if (strncmp (p, "process:", sizeof ("process:") - 1) == 0)