* ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
authorEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Wed, 30 May 2012 13:37:17 +0000 (13:37 +0000)
committerEdjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
Wed, 30 May 2012 13:37:17 +0000 (13:37 +0000)
accounting of hw watchpoints on ppc.

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

index c2f01b9462e00950c98203736d0766e1bd6ef552..14b0b7aa8753a2861d4550e34d7668e417ff88c1 100644 (file)
@@ -1,3 +1,8 @@
+2012-05-30  Edjunior Machado  <emachado@linux.vnet.ibm.com>
+
+       * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
+       accounting of hw watchpoints on ppc.
+
 2012-05-30  Thiago Jung Bauermann  <thiago.bauermann@linaro.org>
 
        * source.c (openp): Expand tilde in path entries.
index 9bd11fd8bbbe2ce3c4323b014280ca0c060bb78d..b9e0c855963db5aa432b2d8732430092801298f8 100644 (file)
@@ -1461,7 +1461,7 @@ ppc_linux_can_use_hw_breakpoint (int type, int cnt, int ot)
   if (type == bp_hardware_watchpoint || type == bp_read_watchpoint
       || type == bp_access_watchpoint || type == bp_watchpoint)
     {
-      if (cnt > total_hw_wp)
+      if (cnt + ot > total_hw_wp)
        return -1;
     }
   else if (type == bp_hardware_breakpoint)
This page took 0.028423 seconds and 4 git commands to generate.