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/nto-tdep.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/nto-tdep.h')
-rw-r--r-- | gdb/nto-tdep.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/nto-tdep.h b/gdb/nto-tdep.h index f176b70..e97eee0 100644 --- a/gdb/nto-tdep.h +++ b/gdb/nto-tdep.h @@ -26,6 +26,7 @@ #include "osabi.h" #include "regset.h" #include "gdbthread.h" +#include "gdbsupport/gdb-checked-static-cast.h" /* Target operations defined for Neutrino targets (<target>-nto-tdep.c). */ @@ -145,7 +146,7 @@ struct nto_thread_info : public private_thread_info static inline nto_thread_info * get_nto_thread_info (thread_info *thread) { - return static_cast<nto_thread_info *> (thread->priv.get ()); + return gdb::checked_static_cast<nto_thread_info *> (thread->priv.get ()); } /* Per-inferior data, common for both procfs and remote. */ |