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/linux-thread-db.c | |
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/linux-thread-db.c')
-rw-r--r-- | gdb/linux-thread-db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/linux-thread-db.c b/gdb/linux-thread-db.c index 11da82a..839271c 100644 --- a/gdb/linux-thread-db.c +++ b/gdb/linux-thread-db.c @@ -317,7 +317,7 @@ struct thread_db_thread_info : public private_thread_info static thread_db_thread_info * get_thread_db_thread_info (thread_info *thread) { - return static_cast<thread_db_thread_info *> (thread->priv.get ()); + return gdb::checked_static_cast<thread_db_thread_info *> (thread->priv.get ()); } static const char * |