From f16c4e8bddf8d339e0cfacca6348c45d20e94c43 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 21 Dec 2011 15:27:29 +0000 Subject: [PATCH] * ppc-linux-nat.c (create_watchpoint_request): Only use ranged watchpoints when supported. --- gdb/ChangeLog | 5 +++++ gdb/ppc-linux-nat.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3145bf9..78bc56c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-12-21 Andreas Schwab + + * ppc-linux-nat.c (create_watchpoint_request): Only use ranged + watchpoints when supported. + 2011-12-21 Jan Kratochvil * symfile.c (objfilep): New typedef and new DEF_VEC_P. 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; -- 2.7.4