diff options
author | Alan Modra <amodra@bigpond.net.au> | 2006-02-26 23:42:59 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2006-02-26 23:42:59 +0000 |
commit | 660bdb40f5f0e627cf35328f954494d1cd270012 (patch) | |
tree | 99f4013f802008d52800d59d9bc007473f0fe44e /gdb/ppc-linux-nat.c | |
parent | 34f7911bc09233af1c5f96f5d12a7f6a31bee015 (diff) | |
download | gdb-660bdb40f5f0e627cf35328f954494d1cd270012.tar.gz |
* ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
(ppc_linux_remove_watchpoint): Likewise, and args.
Diffstat (limited to 'gdb/ppc-linux-nat.c')
-rw-r--r-- | gdb/ppc-linux-nat.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |