From 0c48b917e079f5615539b424d6763954257711cc Mon Sep 17 00:00:00 2001 From: Luis Machado Date: Fri, 9 Nov 2007 17:15:17 +0000 Subject: * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move saved_dabr_value assignment to the correct position. --- gdb/ppc-linux-nat.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/ppc-linux-nat.c') diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index 1e43640b516..7735fc0d00d 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -831,10 +831,12 @@ ppc_linux_insert_watchpoint (CORE_ADDR addr, int len, int rw) break; } + saved_dabr_value = dabr_value; + ALL_LWPS (lp, ptid) if (ptrace (PTRACE_SET_DEBUGREG, TIDGET (ptid), 0, saved_dabr_value) < 0) return -1; - saved_dabr_value = dabr_value; + return 0; } -- cgit v1.2.1