aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Muldoon <pmuldoon@redhat.com>2008-08-06 10:12:34 +0000
committerPhil Muldoon <pmuldoon@redhat.com>2008-08-06 10:12:34 +0000
commitd6b74ac48c648f093b737242b6f689b4beb63fcc (patch)
tree7a4feb308c0b0df87b1da9572a0428476d39f256
parente7d92e2ec6e1a0bc2390403bdb098583c6484e6f (diff)
downloadgdb-d6b74ac48c648f093b737242b6f689b4beb63fcc.zip
gdb-d6b74ac48c648f093b737242b6f689b4beb63fcc.tar.gz
gdb-d6b74ac48c648f093b737242b6f689b4beb63fcc.tar.bz2
2008-08-06 Phil Muldoon <pmuldoon@redhat.com>
* breakpoint.c (hw_breakpoint_used_count): Use breakpoint_enabled. (insert_breakpoint_locations): Likewise.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/breakpoint.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6da4d0b..a6babec 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 05fe726..2a10d61 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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++;
}