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 | 3d654fa72d3ab52e3ced87291e41f160544d68b7 (patch) | |
tree | a46a3e83616d6e509e4ebff3496343ebaa2fa473 /gdb/interps.h | |
parent | 19081eb5f18e9e9c6855935c1149afa9a5edfbe1 (diff) | |
download | gdb-3d654fa72d3ab52e3ced87291e41f160544d68b7.zip gdb-3d654fa72d3ab52e3ced87291e41f160544d68b7.tar.gz gdb-3d654fa72d3ab52e3ced87291e41f160544d68b7.tar.bz2 |
gdb: add interp::on_param_changed method
Same idea as previous patches, but for command_param_changed.
Change-Id: I7c2196343423360da05f016f8ffa871c064092bb
Diffstat (limited to 'gdb/interps.h')
-rw-r--r-- | gdb/interps.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/interps.h b/gdb/interps.h index 6fda2ba..948b6f5 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -175,6 +175,9 @@ public: /* Notify the interpreter that breakpoint B was modified. */ virtual void on_breakpoint_modified (breakpoint *b) {} + /* Notify the interpreter that parameter PARAM changed to VALUE. */ + virtual void on_param_changed (const char *param, const char *value) {} + private: /* The memory for this is static, it comes from literal strings (e.g. "cli"). */ const char *m_name; @@ -353,6 +356,9 @@ extern void interps_notify_breakpoint_deleted (breakpoint *b); /* Notify all interpreters that breakpoint B was modified. */ extern void interps_notify_breakpoint_modified (breakpoint *b); +/* Notify all interpreters that parameter PARAM changed to VALUE. */ +extern void interps_notify_param_changed (const char *param, const char *value); + /* well-known interpreters */ #define INTERP_CONSOLE "console" #define INTERP_MI2 "mi2" |