aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
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
commit0bc845fc987e060ddbc35e682dd5774f4ac78b22 (patch)
treee6937a830e2571bccf90227e58dcbc7343a34fce /gdb/tracepoint.c
parent7603ea6afa41382cefeab1e1c85f74a588fcc6ab (diff)
downloadgdb-0bc845fc987e060ddbc35e682dd5774f4ac78b22.zip
gdb-0bc845fc987e060ddbc35e682dd5774f4ac78b22.tar.gz
gdb-0bc845fc987e060ddbc35e682dd5774f4ac78b22.tar.bz2
gdb: add interp::on_traceframe_changed method
Same idea as previous patches, but for traceframe_changed. Change-Id: Ia473f07d70d57b30aca0094d0e0585d7e0d95637
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 7ec63d3..dffc80f 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -59,6 +59,7 @@
#include "cli/cli-style.h"
#include "expop.h"
#include "gdbsupport/buildargv.h"
+#include "interps.h"
#include <unistd.h>
@@ -2139,7 +2140,7 @@ tfind_1 (enum trace_find_type type, int num,
set_tracepoint_num (tp ? tp->number : target_tracept);
if (target_frameno != get_traceframe_number ())
- gdb::observers::traceframe_changed.notify (target_frameno, tracepoint_number);
+ interps_notify_traceframe_changed (target_frameno, tracepoint_number);
set_current_traceframe (target_frameno);