This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix typo
- From: Yao Qi <qiyao at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 15 Sep 2015 16:30:06 -0000
- Subject: [binutils-gdb] Fix typo
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7c5d0fad2e732bdea75f585b67fc1a0cc4d3107f
commit 7c5d0fad2e732bdea75f585b67fc1a0cc4d3107f
Author: Yao Qi <yao.qi@linaro.org>
Date: Tue Sep 15 17:29:22 2015 +0100
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".
Diff:
---
gdb/gdbserver/ChangeLog | 5 +++++
gdb/gdbserver/server.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
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 ())