aboutsummaryrefslogtreecommitdiff
path: root/gdb/interps.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-04-21 09:45:30 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-05-30 15:07:26 -0400
commitbf506f275a7fff7f4bf10bc5b31f38d9c44a48e9 (patch)
tree8d224297f882b36111cdca1c7e06c8207ec5c545 /gdb/interps.h
parent0bc845fc987e060ddbc35e682dd5774f4ac78b22 (diff)
downloadgdb-bf506f275a7fff7f4bf10bc5b31f38d9c44a48e9.zip
gdb-bf506f275a7fff7f4bf10bc5b31f38d9c44a48e9.tar.gz
gdb-bf506f275a7fff7f4bf10bc5b31f38d9c44a48e9.tar.bz2
gdb: add interp::on_tsv_created method
Same idea as previous patches, but for tsv_created. Change-Id: I9c30ecfdbd78ca015d613f43a0c0aef6c7eb32b5
Diffstat (limited to 'gdb/interps.h')
-rw-r--r--gdb/interps.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/interps.h b/gdb/interps.h
index 3b88146..de1af07 100644
--- a/gdb/interps.h
+++ b/gdb/interps.h
@@ -32,6 +32,7 @@ class completion_tracker;
struct thread_info;
struct inferior;
struct so_list;
+struct trace_state_variable;
typedef struct interp *(*interp_factory_func) (const char *name);
@@ -156,6 +157,9 @@ public:
/* Notify the interpreter that the selected traceframe changed. */
virtual void on_traceframe_changed (int tfnum, int tpnum) {}
+ /* Notify the interpreter that trace state variable TSV was created. */
+ virtual void on_tsv_created (const trace_state_variable *tsv) {}
+
private:
/* The memory for this is static, it comes from literal strings (e.g. "cli"). */
const char *m_name;
@@ -314,6 +318,9 @@ extern void interps_notify_solib_unloaded (so_list *so);
the tracepoint associated with this traceframe is TPNUM. */
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);
+
/* well-known interpreters */
#define INTERP_CONSOLE "console"
#define INTERP_MI2 "mi2"