(ppc_linux_remove_watchpoint): Likewise, and args.
+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
}
/* 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;
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;