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 | e7692320db944fd157978d9be9f18a86abb997b4 (patch) | |
tree | de4e345dd0090de729d027cfeebd1e22c2147a76 /gdb/breakpoint.c | |
parent | c27ec5c09f3b94704688845e78861977d9bd4d71 (diff) | |
download | fsf-binutils-gdb-e7692320db944fd157978d9be9f18a86abb997b4.zip fsf-binutils-gdb-e7692320db944fd157978d9be9f18a86abb997b4.tar.gz fsf-binutils-gdb-e7692320db944fd157978d9be9f18a86abb997b4.tar.bz2 |
gdb: add interp::on_breakpoint_created method
Same idea as previous patches, but for breakpoint_created.
Change-Id: I614113c924edc243590018b8fb3bf69cb62215ef
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index a94277f..847347f 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -7979,6 +7979,15 @@ catchpoint::catchpoint (struct gdbarch *gdbarch, bool temp, pspace = current_program_space; } +/* Notify interpreters and observers that breakpoint B was created. */ + +static void +notify_breakpoint_created (breakpoint *b) +{ + interps_notify_breakpoint_created (b); + gdb::observers::breakpoint_created.notify (b); +} + breakpoint * install_breakpoint (int internal, std::unique_ptr<breakpoint> &&arg, int update_gll) { @@ -7988,7 +7997,8 @@ install_breakpoint (int internal, std::unique_ptr<breakpoint> &&arg, int update_ set_tracepoint_count (breakpoint_count); if (!internal) mention (b); - gdb::observers::breakpoint_created.notify (b); + + notify_breakpoint_created (b); if (update_gll) update_global_location_list (UGLL_MAY_INSERT); |