diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-04-21 09:45:30 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-05-30 15:07:26 -0400 |
commit | e4239559f48767a4fe6778017908a96649330be5 (patch) | |
tree | f7293614369438d361205e6155169cefe6661bd3 /gdb/breakpoint.c | |
parent | e7692320db944fd157978d9be9f18a86abb997b4 (diff) | |
download | binutils-e4239559f48767a4fe6778017908a96649330be5.zip binutils-e4239559f48767a4fe6778017908a96649330be5.tar.gz binutils-e4239559f48767a4fe6778017908a96649330be5.tar.bz2 |
gdb: add interp::on_breakpoint_deleted method
Same idea as previous patches, but for breakpoint_deleted.
Change-Id: I59c231ce963491bb1eee1432ee1090138f09e19c
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 847347f..76847f3 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -12316,6 +12316,15 @@ strace_marker_p (struct breakpoint *b) return b->type == bp_static_marker_tracepoint; } +/* Notify interpreters and observers that breakpoint B was deleted. */ + +static void +notify_breakpoint_deleted (breakpoint *b) +{ + interps_notify_breakpoint_deleted (b); + gdb::observers::breakpoint_deleted.notify (b); +} + /* Delete a breakpoint and clean up all traces of it in the data structures. */ @@ -12371,7 +12380,7 @@ delete_breakpoint (struct breakpoint *bpt) a problem in that process, we'll be asked to delete the half-created watchpoint. In that case, don't announce the deletion. */ if (bpt->number) - gdb::observers::breakpoint_deleted.notify (bpt); + notify_breakpoint_deleted (bpt); breakpoint_chain.erase (breakpoint_chain.iterator_to (*bpt)); |