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
commit19081eb5f18e9e9c6855935c1149afa9a5edfbe1 (patch)
tree0c6c2e3fb38d4acbe50dd9ba6d984ae1c5b855a7 /gdb/interps.h
parente4239559f48767a4fe6778017908a96649330be5 (diff)
downloadgdb-19081eb5f18e9e9c6855935c1149afa9a5edfbe1.zip
gdb-19081eb5f18e9e9c6855935c1149afa9a5edfbe1.tar.gz
gdb-19081eb5f18e9e9c6855935c1149afa9a5edfbe1.tar.bz2
gdb: add interp::on_breakpoint_modified method
Same idea as previous patches, but for breakpoint_modified. Change-Id: I4f0a9edea912de431e32451d74224b2022a7c328
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 0e17b14..6fda2ba 100644
--- a/gdb/interps.h
+++ b/gdb/interps.h
@@ -172,6 +172,9 @@ public:
/* Notify the interpreter that breakpoint B was deleted. */
virtual void on_breakpoint_deleted (breakpoint *b) {}
+ /* Notify the interpreter that breakpoint B was modified. */
+ virtual void on_breakpoint_modified (breakpoint *b) {}
+
private:
/* The memory for this is static, it comes from literal strings (e.g. "cli"). */
const char *m_name;
@@ -347,6 +350,9 @@ extern void interps_notify_breakpoint_created (breakpoint *b);
/* Notify all interpreters that breakpoint B was deleted. */
extern void interps_notify_breakpoint_deleted (breakpoint *b);
+/* Notify all interpreters that breakpoint B was modified. */
+extern void interps_notify_breakpoint_modified (breakpoint *b);
+
/* well-known interpreters */
#define INTERP_CONSOLE "console"
#define INTERP_MI2 "mi2"