This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix m32r_remove_watchpoint parameter type
- From: Simon Marchi <simark at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 31 Jul 2015 18:08:55 -0000
- Subject: [binutils-gdb] Fix m32r_remove_watchpoint parameter type
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b1c59ddc809bc4ad2c082b5cae02a18c68746257
commit b1c59ddc809bc4ad2c082b5cae02a18c68746257
Author: Simon Marchi <simon.marchi@ericsson.com>
Date: Fri Jul 31 14:08:14 2015 -0400
Fix m32r_remove_watchpoint parameter type
This change should have been in the previous patch (Mostly trivial enum
fixes).
gdb/ChangeLog:
* remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
instead of integer.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/remote-m32r-sdi.c | 5 ++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a407456..66ef8a1 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
+ * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
+ instead of integer.
+
+2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
+
* aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
type or value instead of integer.
(aarch64_linux_insert_watchpoint): Likewise.
diff --git a/gdb/remote-m32r-sdi.c b/gdb/remote-m32r-sdi.c
index 9c63fd5..2597f6d 100644
--- a/gdb/remote-m32r-sdi.c
+++ b/gdb/remote-m32r-sdi.c
@@ -1461,9 +1461,8 @@ m32r_insert_watchpoint (struct target_ops *self,
}
static int
-m32r_remove_watchpoint (struct target_ops *self,
- CORE_ADDR addr, int len, int type,
- struct expression *cond)
+m32r_remove_watchpoint (struct target_ops *self, CORE_ADDR addr, int len,
+ enum target_hw_bp_type type, struct expression *cond)
{
int i;