aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/mem-break.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 1592a11..4156790 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
2016-07-21 Yao Qi <yao.qi@linaro.org>
+ * mem-break.c (find_gdb_breakpoint): Cast bp to
+ 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
+
+2016-07-21 Yao Qi <yao.qi@linaro.org>
+
* server.c (handle_v_requests): Support s and S actions
if target_supports_software_single_step return true.
diff --git a/gdb/gdbserver/mem-break.c b/gdb/gdbserver/mem-break.c
index 65ca3f9..7cd037f 100644
--- a/gdb/gdbserver/mem-break.c
+++ b/gdb/gdbserver/mem-break.c
@@ -996,7 +996,7 @@ find_gdb_breakpoint (char z_type, CORE_ADDR addr, int kind)
for (bp = proc->breakpoints; bp != NULL; bp = bp->next)
if (bp->type == type && bp->raw->pc == addr
&& (kind == -1 || bp->raw->kind == kind))
- return (gdb_breakpoint *) bp;
+ return (struct gdb_breakpoint *) bp;
return NULL;
}