* [PATCH] Fix regression on watchpoints for PPC
@ 2007-11-09 17:17 Luis Machado
0 siblings, 0 replies; only message in thread
From: Luis Machado @ 2007-11-09 17:17 UTC (permalink / raw)
To: gdb-patches
[-- Attachment #1: Type: text/plain, Size: 94 bytes --]
Hi,
Daniel approved this patch in a discussion we had, so i've checked it
in.
Regards,
Luis
[-- Attachment #2: fix_ppc_watchpoints.diff --]
[-- Type: text/x-patch, Size: 634 bytes --]
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-09 17:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-09 17:17 [PATCH] Fix regression on watchpoints for PPC Luis Machado
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox