diff options
author | Tom Tromey <tromey@adacore.com> | 2023-09-15 12:05:57 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-09-19 08:14:00 -0600 |
commit | 01bccc56af0f590c5ff64c24dea17fa3098572d7 (patch) | |
tree | 074de314632fb602e0055b1173a2756c90a1d617 /gdb/target.h | |
parent | bcafd1c19e628d831cf3eb20229c42ad9db4b29c (diff) | |
download | gdb-01bccc56af0f590c5ff64c24dea17fa3098572d7.zip gdb-01bccc56af0f590c5ff64c24dea17fa3098572d7.tar.gz gdb-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/target.h')
-rw-r--r-- | gdb/target.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/target.h b/gdb/target.h index aa07075..6e6aa5f 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -1043,7 +1043,7 @@ struct target_ops virtual int get_trace_status (struct trace_status *ts) TARGET_DEFAULT_RETURN (-1); - virtual void get_tracepoint_status (struct breakpoint *tp, + virtual void get_tracepoint_status (tracepoint *tp, struct uploaded_tp *utp) TARGET_DEFAULT_NORETURN (tcomplain ()); @@ -2255,7 +2255,7 @@ extern void target_trace_set_readonly_regions (); extern int target_get_trace_status (trace_status *ts); -extern void target_get_tracepoint_status (breakpoint *tp, uploaded_tp *utp); +extern void target_get_tracepoint_status (tracepoint *tp, uploaded_tp *utp); extern void target_trace_stop (); |