diff options
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index acdeff2..a23afd4 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -2149,6 +2149,9 @@ mention (b) { int say_where = 0; + if (create_breakpoint_hook) + create_breakpoint_hook (b); + switch (b->type) { case bp_watchpoint: @@ -3181,6 +3184,9 @@ delete_breakpoint (bpt) register struct breakpoint *b; register bpstat bs; + if (delete_breakpoint_hook) + delete_breakpoint_hook (bpt); + if (bpt->inserted) remove_breakpoint (bpt); @@ -3539,6 +3545,9 @@ enable_breakpoint (bpt) int target_resources_ok, other_type_used; struct value *mark; + if (enable_breakpoint_hook) + enable_breakpoint_hook (bpt); + if (bpt->type == bp_hardware_breakpoint) { int i; @@ -3644,6 +3653,9 @@ disable_breakpoint (bpt) if (bpt->type == bp_watchpoint_scope) return; + if (disable_breakpoint_hook) + disable_breakpoint_hook (bpt); + bpt->enable = disabled; breakpoints_changed (); |