]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* ppc-linux-nat.c (create_watchpoint_request): Only use ranged
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 22 Dec 2011 11:34:33 +0000 (11:34 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Thu, 22 Dec 2011 11:34:33 +0000 (11:34 +0000)
watchpoints when supported.

gdb/ChangeLog
gdb/ppc-linux-nat.c

index ed766c71671bf9a8f5b9bb38639ea44780e92893..7fe23fef12a38ec62f42a9ee87cd8f54bbab03e3 100644 (file)
@@ -1,5 +1,8 @@
 2011-12-22  Andreas Schwab  <schwab@linux-m68k.org>
 
+       * ppc-linux-nat.c (create_watchpoint_request): Only use ranged
+       watchpoints when supported.
+
        * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
        obstack_empty_p.
 
index 94cfbf8782e5f2404ac27100de580709be9f1aed..9425518a522ac355d068f41dab87021a7f99e990 100644 (file)
@@ -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;