[PATCH c++ 07/12] Change return type of raw_bkpt_type_to_arm_hwbp_type
Simon Marchi
simon.marchi@ericsson.com
Tue Nov 3 14:27:00 GMT 2015
From: Simon Marchi <simon.marchi@polymtl.ca>
Fixes:
/home/simark/src/binutils-gdb/gdb/gdbserver/linux-arm-low.c: In function âint arm_linux_hw_point_initialize(raw_bkpt_type, CORE_ADDR, int, arm_linux_hw_breakpoint*)â:
/home/simark/src/binutils-gdb/gdb/gdbserver/linux-arm-low.c:459:55: error: invalid conversion from âintâ to âarm_hwbp_typeâ [-fpermissive]
hwbp_type = raw_bkpt_type_to_arm_hwbp_type (raw_type);
^
gdb/gdbserver/ChangeLog:
* linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
Change return type to arm_hwbp_type.
---
gdb/gdbserver/linux-arm-low.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/gdbserver/linux-arm-low.c b/gdb/gdbserver/linux-arm-low.c
index ae659dd..dda37cb 100644
--- a/gdb/gdbserver/linux-arm-low.c
+++ b/gdb/gdbserver/linux-arm-low.c
@@ -426,7 +426,7 @@ arm_linux_hw_breakpoint_equal (const struct arm_linux_hw_breakpoint *p1,
/* Convert a raw breakpoint type to an enum arm_hwbp_type. */
-static int
+static arm_hwbp_type
raw_bkpt_type_to_arm_hwbp_type (enum raw_bkpt_type raw_type)
{
switch (raw_type)
--
2.5.1
More information about the Gdb-patches
mailing list