aboutsummaryrefslogtreecommitdiff
path: root/gdb/interps.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-04-21 09:45:30 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-05-30 15:07:26 -0400
commite4239559f48767a4fe6778017908a96649330be5 (patch)
treef7293614369438d361205e6155169cefe6661bd3 /gdb/interps.h
parente7692320db944fd157978d9be9f18a86abb997b4 (diff)
downloadgdb-e4239559f48767a4fe6778017908a96649330be5.zip
gdb-e4239559f48767a4fe6778017908a96649330be5.tar.gz
gdb-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/interps.h')
-rw-r--r--gdb/interps.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/interps.h b/gdb/interps.h
index b1e2903..0e17b14 100644
--- a/gdb/interps.h
+++ b/gdb/interps.h
@@ -169,6 +169,9 @@ public:
/* Notify the interpreter that breakpoint B was created. */
virtual void on_breakpoint_created (breakpoint *b) {}
+ /* Notify the interpreter that breakpoint B was deleted. */
+ virtual void on_breakpoint_deleted (breakpoint *b) {}
+
private:
/* The memory for this is static, it comes from literal strings (e.g. "cli"). */
const char *m_name;
@@ -341,6 +344,9 @@ extern void interps_notify_tsv_modified (const trace_state_variable *tsv);
/* Notify all interpreters that breakpoint B was created. */
extern void interps_notify_breakpoint_created (breakpoint *b);
+/* Notify all interpreters that breakpoint B was deleted. */
+extern void interps_notify_breakpoint_deleted (breakpoint *b);
+
/* well-known interpreters */
#define INTERP_CONSOLE "console"
#define INTERP_MI2 "mi2"