This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH c++ 09/12] linux-mips-low.c: Fix type of mips_add_watchpoint parameter
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Simon Marchi <simon dot marchi at polymtl dot ca>
- Date: Tue, 3 Nov 2015 09:26:41 -0500
- Subject: [PATCH c++ 09/12] linux-mips-low.c: Fix type of mips_add_watchpoint parameter
- Authentication-results: sourceware.org; auth=none
- References: <1446560804-18858-1-git-send-email-simon dot marchi at ericsson dot com>
From: Simon Marchi <simon.marchi@polymtl.ca>
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/linux-mips-low.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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;
--
2.5.1