aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc-linux-nat.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2011-12-21 15:27:29 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2011-12-21 15:27:29 +0000
commitf16c4e8bddf8d339e0cfacca6348c45d20e94c43 (patch)
tree2ed8be7b993b583793e585b7805b082cabfd5a0d /gdb/ppc-linux-nat.c
parent4ac39b9724731b84d25b5ae8b30506679e9adea1 (diff)
downloadgdb-f16c4e8bddf8d339e0cfacca6348c45d20e94c43.zip
gdb-f16c4e8bddf8d339e0cfacca6348c45d20e94c43.tar.gz
gdb-f16c4e8bddf8d339e0cfacca6348c45d20e94c43.tar.bz2
* ppc-linux-nat.c (create_watchpoint_request): Only use ranged
watchpoints when supported.
Diffstat (limited to 'gdb/ppc-linux-nat.c')
-rw-r--r--gdb/ppc-linux-nat.c3
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;