From: Luis Machado Date: Fri, 9 Nov 2007 17:15:17 +0000 (+0000) Subject: * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1c86e440c3178f9b729a0e99c0d45e40c7b813e8;p=binutils-gdb.git * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move saved_dabr_value assignment to the correct position. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5a19031fcf7..17433cc33f6 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 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; }