mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
gdb: add interp::on_traceframe_changed method
Same idea as previous patches, but for traceframe_changed. Change-Id: Ia473f07d70d57b30aca0094d0e0585d7e0d95637
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user