From 1c86e440c3178f9b729a0e99c0d45e40c7b813e8 Mon Sep 17 00:00:00 2001 From: Luis Machado Date: Fri, 9 Nov 2007 17:15:17 +0000 Subject: [PATCH] * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move saved_dabr_value assignment to the correct position. --- gdb/ChangeLog | 5 +++++ gdb/ppc-linux-nat.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5a19031..17433cc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-11-09 Luis Machado + + * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move + saved_dabr_value assignment to the correct position. + 2007-11-09 Markus Deuling * arch-utils.c (generic_convert_register_p): Add gdbarch as parameter. diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index 1e43640..7735fc0 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; } -- 2.7.4