diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-04-21 09:45:30 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-05-30 15:07:26 -0400 |
commit | bf506f275a7fff7f4bf10bc5b31f38d9c44a48e9 (patch) | |
tree | 8d224297f882b36111cdca1c7e06c8207ec5c545 /gdb/tracepoint.c | |
parent | 0bc845fc987e060ddbc35e682dd5774f4ac78b22 (diff) | |
download | gdb-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/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index dffc80f..3d925bf 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -373,7 +373,7 @@ trace_variable_command (const char *args, int from_tty) tsv = create_trace_state_variable (name.c_str ()); tsv->initial_value = initval; - gdb::observers::tsv_created.notify (tsv); + interps_notify_tsv_created (tsv); gdb_printf (_("Trace state variable $%s " "created, with initial value %s.\n"), @@ -3180,7 +3180,7 @@ create_tsv_from_upload (struct uploaded_tsv *utsv) tsv->initial_value = utsv->initial_value; tsv->builtin = utsv->builtin; - gdb::observers::tsv_created.notify (tsv); + interps_notify_tsv_created (tsv); return tsv; } |