This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Only use ranged watchpoints when supported
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: gdb-patches at sourceware dot org
- Cc: Ulrich Weigand <uweigand at de dot ibm dot com>, Thiago Jung Bauermann <bauerman at br dot ibm dot com>, Sergio Durigan Junior <sergiodj at linux dot vnet dot ibm dot com>
- Date: Sun, 18 Dec 2011 02:14:33 +0100
- Subject: Only use ranged watchpoints when supported
This fixes all watchpoint regressions.
Andreas.
2011-12-18 Andreas Schwab <schwab@linux-m68k.org>
* ppc-linux-nat.c (create_watchpoint_request): Only use ranged
watchpoints when supported.
---
gdb/ppc-linux-nat.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c
index dc7f152..cc29ad8 100644
--- a/gdb/ppc-linux-nat.c
+++ b/gdb/ppc-linux-nat.c
@@ -2010,7 +2010,8 @@ create_watchpoint_request (struct ppc_hw_breakpoint *p, CORE_ADDR addr,
int len, int rw, struct expression *cond,
int insert)
{
- if (len == 1)
+ if (len == 1
+ || !(booke_debug_info.features & PPC_DEBUG_FEATURE_DATA_BP_RANGE))
{
int use_condition;
CORE_ADDR data_value;
--
1.7.8
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."