Change return type of raw_bkpt_type_to_arm_hwbp_type
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 3 Nov 2015 18:33:13 +0000 (13:33 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 3 Nov 2015 18:33:13 +0000 (13:33 -0500)
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/ChangeLog
gdb/gdbserver/linux-arm-low.c

index 2906cc05411e806987446a79a0e5c235d2c61766..8fe643c2838e135e53349f798058092be908d128 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
+
+               * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
+               Change return type to arm_hwbp_type.
+
 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
 
        * linux-aarch32-low.c (arm_fill_gregset): Add cast.
index ae659dd83442761ab05fdb2af5b2c65a9efc8b6a..dda37cb36a2702a8f3e62e041d1c46e2a3eab454 100644 (file)
@@ -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)