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 | 44fbffc69d68e35f0e0bdbe8f6f186dc79924d11 (patch) | |
tree | 71121fe533060c428bb1f2c521f5dfd00380f50f /gdb/interps.h | |
parent | 2646bfa763e890c41474206344e3b02e1648c765 (diff) | |
download | gdb-44fbffc69d68e35f0e0bdbe8f6f186dc79924d11.zip gdb-44fbffc69d68e35f0e0bdbe8f6f186dc79924d11.tar.gz gdb-44fbffc69d68e35f0e0bdbe8f6f186dc79924d11.tar.bz2 |
gdb: add interp::on_record_changed method
Same idea as previous patches, but for record_changed
Change-Id: I5eeeacd703af8401c315060514c94e8e6439cc40
Diffstat (limited to 'gdb/interps.h')
-rw-r--r-- | gdb/interps.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gdb/interps.h b/gdb/interps.h index ad351bb..be3d6d9 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -134,6 +134,11 @@ public: /* Notify the interpreter that inferior INF was removed. */ virtual void on_inferior_removed (inferior *inf) {} + /* Notify the interpreter that the status of process record for INF + changed. */ + virtual void on_record_changed (inferior *inf, int started, + const char *method, const char *format) {} + private: /* The memory for this is static, it comes from literal strings (e.g. "cli"). */ const char *m_name; @@ -263,6 +268,19 @@ extern void interps_notify_inferior_disappeared (inferior *inf); /* Notify all interpreters that inferior INF was removed. */ extern void interps_notify_inferior_removed (inferior *inf); +/* Notify all interpreters that the status of process record for INF changed. + + The process record is started if STARTED is true, and the process record is + stopped if STARTED is false. + + When STARTED is true, METHOD indicates the short name of the method used for + recording. If the method supports multiple formats, FORMAT indicates which + one is being used, otherwise it is nullptr. When STARTED is false, they are + both nullptr. */ +extern void interps_notify_record_changed (inferior *inf, int started, + const char *method, + const char *format); + /* well-known interpreters */ #define INTERP_CONSOLE "console" #define INTERP_MI2 "mi2" |