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 | |
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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/ppc-linux-nat.c | 6 |
2 files changed, 8 insertions, 3 deletions
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 <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 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; |