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.
This commit is contained in:
Tom Tromey 2022-09-24 13:34:09 -06:00
parent 45685a2fd8
commit 98ed24fb35
9 changed files with 28 additions and 25 deletions

View file

@ -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 *