diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2015-11-03 13:33:14 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-11-03 13:33:14 -0500 |
commit | eb3e3c67e5f922e8f2c665e1687a71f08dbe37a8 (patch) | |
tree | 12067efd99535075961405c5862237076883742d /gdb | |
parent | f844cf0ec3887110375e9c1d4c48a68cb6a8b141 (diff) | |
download | gdb-eb3e3c67e5f922e8f2c665e1687a71f08dbe37a8.zip gdb-eb3e3c67e5f922e8f2c665e1687a71f08dbe37a8.tar.gz gdb-eb3e3c67e5f922e8f2c665e1687a71f08dbe37a8.tar.bz2 |
linux-mips-low.c: Fix type of mips_add_watchpoint parameter
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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/linux-mips-low.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 8fe643c..2ebf27f 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,5 +1,10 @@ 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): Change return type to arm_hwbp_type. diff --git a/gdb/gdbserver/linux-mips-low.c b/gdb/gdbserver/linux-mips-low.c index 86f7962..2cfa7c2 100644 --- a/gdb/gdbserver/linux-mips-low.c +++ b/gdb/gdbserver/linux-mips-low.c @@ -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; |