From: Yao Qi Date: Tue, 15 Sep 2015 16:29:22 +0000 (+0100) Subject: Fix typo X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7c5d0fad2e732bdea75f585b67fc1a0cc4d3107f;p=binutils-gdb.git Fix typo gdb/gdbserver: 2015-09-15 Yao Qi * server.c (handle_query): Check string comparison using "else if" instead of "if". --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index fac52efe9aa..89ec1f85c58 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2015-09-15 Yao Qi + + * server.c (handle_query): Check string comparison using + "else if" instead of "if". + 2015-09-15 Yao Qi * server.c (vCont_supported): New global variable. diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 3b9ec9813db..827316f3741 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -2117,7 +2117,7 @@ handle_query (char *own_buf, int packet_len, int *new_packet_len_p) if (target_supports_vfork_events ()) report_vfork_events = 1; } - if (strcmp (p, "exec-events+") == 0) + else if (strcmp (p, "exec-events+") == 0) { /* GDB supports and wants exec events if possible. */ if (target_supports_exec_events ())