diff options
author | Tom Tromey <tromey@adacore.com> | 2023-09-15 12:19:57 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-09-19 08:14:01 -0600 |
commit | 6a9196a65f1e98627eeb91af7862153fe7fc3232 (patch) | |
tree | 0c05ed9c323997e1701d64dc3a11bdedcbf785b2 /gdb/breakpoint.c | |
parent | 01bccc56af0f590c5ff64c24dea17fa3098572d7 (diff) | |
download | fsf-binutils-gdb-6a9196a65f1e98627eeb91af7862153fe7fc3232.zip fsf-binutils-gdb-6a9196a65f1e98627eeb91af7862153fe7fc3232.tar.gz fsf-binutils-gdb-6a9196a65f1e98627eeb91af7862153fe7fc3232.tar.bz2 |
Use gdb::checked_static_cast for code_breakpoint
This replaces some casts to 'code_breakpoint *' with
checked_static_cast.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index a22f125..d807ae3 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -6170,10 +6170,12 @@ bpstat_run_callbacks (bpstat *bs_head) handle_jit_event (bs->bp_location_at->address); break; case bp_gnu_ifunc_resolver: - gnu_ifunc_resolver_stop ((code_breakpoint *) b); + gnu_ifunc_resolver_stop + (gdb::checked_static_cast<code_breakpoint *> (b)); break; case bp_gnu_ifunc_resolver_return: - gnu_ifunc_resolver_return_stop ((code_breakpoint *) b); + gnu_ifunc_resolver_return_stop + (gdb::checked_static_cast<code_breakpoint *> (b)); break; } } |