This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Fix regression on watchpoints for PPC
- From: Luis Machado <luisgpm at linux dot vnet dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 09 Nov 2007 14:17:37 -0200
- Subject: [PATCH] Fix regression on watchpoints for PPC
- Reply-to: luisgpm at linux dot vnet dot ibm dot com
Hi,
Daniel approved this patch in a discussion we had, so i've checked it
in.
Regards,
Luis
2007-11-09 Luis Machado <luisgpm@br.ibm.com>
* 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;
}