This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
ppc-linux-nat.c compile fix
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: gdb-patches at sourceware dot org
- Date: Mon, 27 Feb 2006 10:12:30 +1030
- Subject: ppc-linux-nat.c compile fix
Applying as obvious.
* ppc-linux-nat.c (ppc_linux_insert_watchpoint): Correct return type.
(ppc_linux_remove_watchpoint): Likewise, and args.
Index: ppc-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/ppc-linux-nat.c,v
retrieving revision 1.58
diff -u -p -r1.58 ppc-linux-nat.c
--- ppc-linux-nat.c 8 Feb 2006 07:00:06 -0000 1.58
+++ ppc-linux-nat.c 26 Feb 2006 23:41:35 -0000
@@ -826,7 +826,7 @@ ppc_linux_region_ok_for_hw_watchpoint (C
}
/* 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 a
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;
--
Alan Modra
IBM OzLabs - Linux Technology Centre