linux-mips-low.c: Fix type of mips_add_watchpoint parameter
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 3 Nov 2015 18:33:14 +0000 (13:33 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Tue, 3 Nov 2015 18:33:14 +0000 (13:33 -0500)
Fixes

/home/simark/src/binutils-gdb/gdb/gdbserver/linux-mips-low.c: In function ‘void mips_add_watchpoint(arch_process_info*, CORE_ADDR, int, int)’:
/home/simark/src/binutils-gdb/gdb/gdbserver/linux-mips-low.c:368:19: error: invalid conversion from ‘int’ to ‘target_hw_bp_type’ [-fpermissive]
   new_watch->type = watch_type;
                   ^

gdb/gdbserver/ChangeLog:

* linux-mips-low.c (mips_linux_new_thread): Change type of
watch_type to enum target_hw_bp_type.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-mips-low.c

index 8fe643c2838e135e53349f798058092be908d128..2ebf27f72667e4ec60671eaa4b3e84b0cb3831aa 100644 (file)
@@ -1,3 +1,8 @@
+2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * linux-mips-low.c (mips_linux_new_thread): Change type of
+       watch_type to enum target_hw_bp_type.
+
 2015-11-03  Simon Marchi  <simon.marchi@polymtl.ca>
 
                * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
index 86f7962597ea329970aecb9f383b8458bf7ee3dd..2cfa7c295aaad765d3345abf88d51b44641c88c4 100644 (file)
@@ -356,8 +356,8 @@ mips_linux_new_thread (struct lwp_info *lwp)
 /* Create a new mips_watchpoint and add it to the list.  */
 
 static void
-mips_add_watchpoint (struct arch_process_info *private, CORE_ADDR addr,
-                    int len, int watch_type)
+mips_add_watchpoint (struct arch_process_info *private, CORE_ADDR addr, int len,
+                    enum target_hw_bp_type watch_type)
 {
   struct mips_watchpoint *new_watch;
   struct mips_watchpoint **pw;