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-debug.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-debug.h')
-rw-r--r-- | gdb/target-debug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/target-debug.h b/gdb/target-debug.h index a028d2b..fed91bf 100644 --- a/gdb/target-debug.h +++ b/gdb/target-debug.h @@ -126,6 +126,8 @@ target_debug_do_print (host_address_to_string (X)) #define target_debug_print_struct_breakpoint_p(X) \ target_debug_do_print (host_address_to_string (X)) +#define target_debug_print_tracepoint_p(X) \ + target_debug_do_print (host_address_to_string (X)) #define target_debug_print_struct_uploaded_tp_p(X) \ target_debug_do_print (host_address_to_string (X)) #define target_debug_print_struct_uploaded_tp_pp(X) \ |