From: Alan Modra Date: Sun, 26 Feb 2006 23:42:59 +0000 (+0000) Subject: * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c38724144cf2be0cc32d470305ded8f7d037c11;p=binutils-gdb.git * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type. (ppc_linux_remove_watchpoint): Likewise, and args. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 34b1c6cf046..43172011681 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 915f7c6a1a6..d4f8c585e5f 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;