2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
authorPhil Muldoon <pmuldoon@redhat.com>
Wed, 6 Aug 2008 10:12:34 +0000 (10:12 +0000)
committerPhil Muldoon <pmuldoon@redhat.com>
Wed, 6 Aug 2008 10:12:34 +0000 (10:12 +0000)
* breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
(insert_breakpoint_locations): Likewise.

gdb/ChangeLog
gdb/breakpoint.c

index 6da4d0b5904064cfb9ab96591512aecadfdc4775..a6babecc35c6c48e6fc47df182c23dee3d651d66 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-06  Phil Muldoon  <pmuldoon@redhat.com>
+
+       * breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled.
+       (insert_breakpoint_locations): Likewise.
+
 2008-08-05  Phil Muldoon  <pmuldoon@redhat.com>
 
        * breakpoint.c (create_longjmp_breakpoint): Remove unused struct
index 05fe72629754acd22a25de81630d7bb09cd5b0c2..2a10d619c9e1da9f6a8b37f6f58cfaf5deb5facd 100644 (file)
@@ -1320,7 +1320,7 @@ insert_breakpoint_locations (void)
       if (!is_hardware_watchpoint (bpt))
        continue;
 
-      if (bpt->enable_state != bp_enabled)
+      if (!breakpoint_enabled (bpt))
        continue;
 
       if (bpt->disposition == disp_del_at_next_stop)
@@ -4765,7 +4765,7 @@ hw_breakpoint_used_count (void)
 
   ALL_BREAKPOINTS (b)
   {
-    if (b->type == bp_hardware_breakpoint && b->enable_state == bp_enabled)
+    if (b->type == bp_hardware_breakpoint && breakpoint_enabled (b))
       i++;
   }