aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2015-09-15 17:29:22 +0100
committerYao Qi <yao.qi@linaro.org>2015-09-15 17:29:22 +0100
commit7c5d0fad2e732bdea75f585b67fc1a0cc4d3107f (patch)
tree2155beba2a04bac67340e1898e3000aeb3d04fb6
parentd15dcecdee0f07b0b088dd3a8ebb50826c5b7bc5 (diff)
downloadfsf-binutils-gdb-7c5d0fad2e732bdea75f585b67fc1a0cc4d3107f.zip
fsf-binutils-gdb-7c5d0fad2e732bdea75f585b67fc1a0cc4d3107f.tar.gz
fsf-binutils-gdb-7c5d0fad2e732bdea75f585b67fc1a0cc4d3107f.tar.bz2
Fix typo
gdb/gdbserver: 2015-09-15 Yao Qi <yao.qi@linaro.org> * server.c (handle_query): Check string comparison using "else if" instead of "if".
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/server.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index fac52ef..89ec1f8 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
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.
(handle_query): Set vCont_supported to 1 if "vContSupported+"
matches. Append ";vContSupported+" to own_buf.
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 3b9ec98..827316f 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 ())