From 2c38724144cf2be0cc32d470305ded8f7d037c11 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 26 Feb 2006 23:42:59 +0000 Subject: [PATCH] * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type. (ppc_linux_remove_watchpoint): Likewise, and args. --- gdb/ChangeLog | 5 +++++ gdb/ppc-linux-nat.c | 6 +++--- 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 + + * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type. + (ppc_linux_remove_watchpoint): Likewise, and args. + 2006-02-26 Mark Kettenis * 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; -- 2.7.4