aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2006-02-26 23:42:59 +0000
committerAlan Modra <amodra@gmail.com>2006-02-26 23:42:59 +0000
commit2c38724144cf2be0cc32d470305ded8f7d037c11 (patch)
tree7389be8d110c55f1270e50090f823f2726268cf4
parent5533c5e569961964c00ab23321dfa175222ef780 (diff)
downloadgdb-2c38724144cf2be0cc32d470305ded8f7d037c11.zip
gdb-2c38724144cf2be0cc32d470305ded8f7d037c11.tar.gz
gdb-2c38724144cf2be0cc32d470305ded8f7d037c11.tar.bz2
* ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
(ppc_linux_remove_watchpoint): Likewise, and args.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ppc-linux-nat.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 34b1c6c..4317201 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-27 Alan Modra <amodra@bigpond.net.au>
+
+ * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
+ (ppc_linux_remove_watchpoint): Likewise, and args.
+
2006-02-26 Mark Kettenis <kettenis@gnu.org>
* i386obsd-tdep.c (i386obsd_trapframe_sniffer): Also recognize
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index 915f7c6..d4f8c58 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -826,7 +826,7 @@ ppc_linux_region_ok_for_hw_watchpoint (CORE_ADDR addr, int len)
}
/* Set a watchpoint of type TYPE at address ADDR. */
-static long
+static int
ppc_linux_insert_watchpoint (CORE_ADDR addr, int len, int rw)
{
int tid;
@@ -857,8 +857,8 @@ ppc_linux_insert_watchpoint (CORE_ADDR addr, int len, int rw)
return ptrace (PTRACE_SET_DEBUGREG, tid, 0, dabr_value);
}
-static long
-ppc_linux_remove_watchpoint (CORE_ADDR addr, int len)
+static int
+ppc_linux_remove_watchpoint (CORE_ADDR addr, int len, int rw)
{
int tid;
ptid_t ptid = inferior_ptid;