aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracefile-tfile.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-09-15 12:05:57 -0600
committerTom Tromey <tromey@adacore.com>2023-09-19 08:14:00 -0600
commit01bccc56af0f590c5ff64c24dea17fa3098572d7 (patch)
tree074de314632fb602e0055b1173a2756c90a1d617 /gdb/tracefile-tfile.c
parentbcafd1c19e628d831cf3eb20229c42ad9db4b29c (diff)
downloadbinutils-01bccc56af0f590c5ff64c24dea17fa3098572d7.zip
binutils-01bccc56af0f590c5ff64c24dea17fa3098572d7.tar.gz
binutils-01bccc56af0f590c5ff64c24dea17fa3098572d7.tar.bz2
Use gdb::checked_static_cast for tracepoints
This replaces some casts to 'tracepoint *' with checked_static_cast. Some functions are changed to accept a 'tracepoint *' now, for better type safety. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/tracefile-tfile.c')
-rw-r--r--gdb/tracefile-tfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tracefile-tfile.c b/gdb/tracefile-tfile.c
index 3440f37..815f13f 100644
--- a/gdb/tracefile-tfile.c
+++ b/gdb/tracefile-tfile.c
@@ -67,7 +67,7 @@ class tfile_target final : public tracefile_target
bool get_trace_state_variable_value (int tsv, LONGEST *val) override;
traceframe_info_up traceframe_info () override;
- void get_tracepoint_status (struct breakpoint *tp,
+ void get_tracepoint_status (tracepoint *tp,
struct uploaded_tp *utp) override;
};
@@ -633,7 +633,7 @@ tfile_target::files_info ()
}
void
-tfile_target::get_tracepoint_status (struct breakpoint *tp, struct uploaded_tp *utp)
+tfile_target::get_tracepoint_status (tracepoint *tp, struct uploaded_tp *utp)
{
/* Other bits of trace status were collected as part of opening the
trace files, so nothing to do here. */