From: Simon Marchi Date: Tue, 3 Nov 2015 18:33:13 +0000 (-0500) Subject: Change return type of raw_bkpt_type_to_arm_hwbp_type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=171de4b8fb2bfe1be8a2f7f479047e51da05883e;p=binutils-gdb.git Change return type of raw_bkpt_type_to_arm_hwbp_type 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. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 2906cc05411..8fe643c2838 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2015-11-03 Simon Marchi + + * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): + Change return type to arm_hwbp_type. + 2015-11-03 Simon Marchi * linux-aarch32-low.c (arm_fill_gregset): Add cast. diff --git a/gdb/gdbserver/linux-arm-low.c b/gdb/gdbserver/linux-arm-low.c index ae659dd8344..dda37cb36a2 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)