gdb: add interp::on_tsv_deleted method

Same idea as previous patches, but for tsv_deleted.

Change-Id: I71b0502b493da7b6e293bee02aeca98de83d4b75
This commit is contained in:
Simon Marchi
2023-04-21 09:45:30 -04:00
parent bf506f275a
commit f0dffaff4f
7 changed files with 29 additions and 29 deletions

View File

@@ -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"