* ppc-linux-nat.c (create_watchpoint_request): Only use ranged
authorAndreas Schwab <schwab@linux-m68k.org>
Wed, 21 Dec 2011 15:27:29 +0000 (15:27 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Wed, 21 Dec 2011 15:27:29 +0000 (15:27 +0000)
watchpoints when supported.

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

index 3145bf98ed3f01c02dc264705096aa0f5e05dee7..78bc56cfd447ae403c019820f9043053628067bd 100644 (file)
@@ -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.
index dc7f15254f203aa367ab6c346a057826f82d3d61..cc29ad870d0df580a9ee0e801f1a5aa779a7725d 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;
This page took 0.029951 seconds and 4 git commands to generate.