Use gdb::checked_static_cast for tracepoints
authorTom Tromey <tromey@adacore.com>
Fri, 15 Sep 2023 18:05:57 +0000 (12:05 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 19 Sep 2023 14:14:00 +0000 (08:14 -0600)
commit01bccc56af0f590c5ff64c24dea17fa3098572d7
tree074de314632fb602e0055b1173a2756c90a1d617
parentbcafd1c19e628d831cf3eb20229c42ad9db4b29c
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>
gdb/breakpoint.c
gdb/mi/mi-cmd-break.c
gdb/remote.c
gdb/target-debug.h
gdb/target-delegates.c
gdb/target.c
gdb/target.h
gdb/tracefile-tfile.c
gdb/tracepoint.c
gdb/tracepoint.h