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>
This commit is contained in:
Tom Tromey
2023-09-15 12:05:57 -06:00
parent bcafd1c19e
commit 01bccc56af
10 changed files with 61 additions and 50 deletions

View File

@ -667,7 +667,7 @@ target_get_trace_status (trace_status *ts)
}
void
target_get_tracepoint_status (breakpoint *tp, uploaded_tp *utp)
target_get_tracepoint_status (tracepoint *tp, uploaded_tp *utp)
{
return current_inferior ()->top_target ()->get_tracepoint_status (tp, utp);
}