aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/ppc-linux-nat.c3
2 files changed, 7 insertions, 1 deletions
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 <schwab@linux-m68k.org>
+
+ * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
+ watchpoints when supported.
+
2011-12-21 Jan Kratochvil <jan.kratochvil@redhat.com>
* 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;