mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
gdb: add interp::on_tsv_deleted method
Same idea as previous patches, but for tsv_deleted. Change-Id: I71b0502b493da7b6e293bee02aeca98de83d4b75
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user