2007-11-09 Luis Machado * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Move saved_dabr_value assignment to the correct position. Index: gdb/ppc-linux-nat.c =================================================================== --- gdb.orig/ppc-linux-nat.c 2007-11-09 08:36:34.000000000 -0800 +++ gdb/ppc-linux-nat.c 2007-11-09 08:45:43.000000000 -0800 @@ -831,10 +831,12 @@ 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; }