aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-09-15 12:22:47 -0600
committerTom Tromey <tromey@adacore.com>2023-09-19 08:14:01 -0600
commit8e032233a013cedc72c52b57a349c47522138594 (patch)
treefb29349de293292faf56aad7970cb0485f829878 /gdb/ada-lang.c
parent6a9196a65f1e98627eeb91af7862153fe7fc3232 (diff)
downloadgdb-8e032233a013cedc72c52b57a349c47522138594.zip
gdb-8e032233a013cedc72c52b57a349c47522138594.tar.gz
gdb-8e032233a013cedc72c52b57a349c47522138594.tar.bz2
Use gdb::checked_static_cast for catchpoints
This replaces some casts to various kinds of catchpoint with checked_static_cast. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 2496c09..b9a271b 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -12203,7 +12203,7 @@ ada_catchpoint::allocate_location ()
bool
ada_catchpoint::should_stop_exception (const struct bp_location *bl) const
{
- struct ada_catchpoint *c = (struct ada_catchpoint *) bl->owner;
+ ada_catchpoint *c = gdb::checked_static_cast<ada_catchpoint *> (bl->owner);
const struct ada_catchpoint_location *ada_loc
= (const struct ada_catchpoint_location *) bl;
bool stop;