From 0bc845fc987e060ddbc35e682dd5774f4ac78b22 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Fri, 21 Apr 2023 09:45:30 -0400 Subject: gdb: add interp::on_traceframe_changed method Same idea as previous patches, but for traceframe_changed. Change-Id: Ia473f07d70d57b30aca0094d0e0585d7e0d95637 --- gdb/interps.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gdb/interps.h') diff --git a/gdb/interps.h b/gdb/interps.h index a88c405..3b88146 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -153,6 +153,9 @@ public: the inferior to proceed. */ virtual void on_about_to_proceed () {} + /* Notify the interpreter that the selected traceframe changed. */ + virtual void on_traceframe_changed (int tfnum, int tpnum) {} + private: /* The memory for this is static, it comes from literal strings (e.g. "cli"). */ const char *m_name; @@ -304,6 +307,13 @@ extern void interps_notify_solib_loaded (so_list *so); /* Notify all interpreters that solib SO has been unloaded. */ extern void interps_notify_solib_unloaded (so_list *so); +/* Notify all interpreters that the selected traceframe changed. + + The trace frame is changed to TFNUM (e.g., by using the 'tfind' command). + If TFNUM is negative, it means gdb resumed live debugging. The number of + the tracepoint associated with this traceframe is TPNUM. */ +extern void interps_notify_traceframe_changed (int tfnum, int tpnum); + /* well-known interpreters */ #define INTERP_CONSOLE "console" #define INTERP_MI2 "mi2" -- cgit v1.1