diff options
author | Tom Tromey <tom@tromey.com> | 2022-09-24 13:34:09 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-10-16 10:50:47 -0600 |
commit | 98ed24fb35d89eb20179edf6c12f599c7a9e228e (patch) | |
tree | 222be496751ed4e4bdacc9beb242715e6ab8f696 /gdb/darwin-nat.h | |
parent | 45685a2fd86073e76a772c5b677f14f8465a5040 (diff) | |
download | gdb-98ed24fb35d89eb20179edf6c12f599c7a9e228e.zip gdb-98ed24fb35d89eb20179edf6c12f599c7a9e228e.tar.gz gdb-98ed24fb35d89eb20179edf6c12f599c7a9e228e.tar.bz2 |
Use checked_static_cast in more places
I looked through all the uses of static_cast<... *> in gdb and
converted many of them to checked_static_cast.
I couldn't test a few of these changes.
Diffstat (limited to 'gdb/darwin-nat.h')
-rw-r--r-- | gdb/darwin-nat.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/darwin-nat.h b/gdb/darwin-nat.h index e3dcd96..f8a1498 100644 --- a/gdb/darwin-nat.h +++ b/gdb/darwin-nat.h @@ -154,7 +154,7 @@ struct darwin_exception_info static inline darwin_thread_info * get_darwin_thread_info (class thread_info *thread) { - return static_cast<darwin_thread_info *> (thread->priv.get ()); + return gdb::checked_static_cast<darwin_thread_info *> (thread->priv.get ()); } /* Describe an inferior. */ @@ -188,7 +188,7 @@ struct darwin_inferior : public private_inferior static inline darwin_inferior * get_darwin_inferior (inferior *inf) { - return static_cast<darwin_inferior *> (inf->priv.get ()); + return gdb::checked_static_cast<darwin_inferior *> (inf->priv.get ()); } /* Exception port. */ |