Fix typo
authorYao Qi <yao.qi@linaro.org>
Tue, 15 Sep 2015 16:29:22 +0000 (17:29 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 15 Sep 2015 16:29:22 +0000 (17:29 +0100)
gdb/gdbserver:

2015-09-15  Yao Qi  <yao.qi@linaro.org>

* server.c (handle_query): Check string comparison using
"else if" instead of "if".

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

index fac52efe9aa062cb19d1d25ddab298772c56a77c..89ec1f85c58a3baee04566b0bd52be31078dfd2c 100644 (file)
@@ -1,3 +1,8 @@
+2015-09-15  Yao Qi  <yao.qi@linaro.org>
+
+       * server.c (handle_query): Check string comparison using
+       "else if" instead of "if".
+
 2015-09-15  Yao Qi  <yao.qi@linaro.org>
 
        * server.c (vCont_supported): New global variable.
index 3b9ec9813dbe92c96e330ab6f41a3250e0a418dd..827316f3741117ad9ece35df3d63635f5344339c 100644 (file)
@@ -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 ())