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 | f0dffaff4ffc53838bfcc622e65523d144fca37e (patch) | |
tree | e03a2dcf1e31dc9cf7dadfe9d51c3fe24cf55d7d /gdb/interps.h | |
parent | bf506f275a7fff7f4bf10bc5b31f38d9c44a48e9 (diff) | |
download | gdb-f0dffaff4ffc53838bfcc622e65523d144fca37e.zip gdb-f0dffaff4ffc53838bfcc622e65523d144fca37e.tar.gz gdb-f0dffaff4ffc53838bfcc622e65523d144fca37e.tar.bz2 |
gdb: add interp::on_tsv_deleted method
Same idea as previous patches, but for tsv_deleted.
Change-Id: I71b0502b493da7b6e293bee02aeca98de83d4b75
Diffstat (limited to 'gdb/interps.h')
-rw-r--r-- | gdb/interps.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/interps.h b/gdb/interps.h index de1af07..7e76137 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -160,6 +160,9 @@ public: /* Notify the interpreter that trace state variable TSV was created. */ virtual void on_tsv_created (const trace_state_variable *tsv) {} + /* Notify the interpreter that trace state variable TSV was deleted. */ + virtual void on_tsv_deleted (const trace_state_variable *tsv) {} + private: /* The memory for this is static, it comes from literal strings (e.g. "cli"). */ const char *m_name; @@ -321,6 +324,11 @@ extern void interps_notify_traceframe_changed (int tfnum, int tpnum); /* Notify all interpreters that trace state variable TSV was created. */ extern void interps_notify_tsv_created (const trace_state_variable *tsv); +/* Notify all interpreters that trace state variable TSV was deleted. + + If TSV is nullptr, it means that all trace state variables were deleted. */ +extern void interps_notify_tsv_deleted (const trace_state_variable *tsv); + /* well-known interpreters */ #define INTERP_CONSOLE "console" #define INTERP_MI2 "mi2" |