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

@@ -90,7 +90,7 @@ struct aix_thread_info : public private_thread_info
static aix_thread_info *
get_aix_thread_info (thread_info *thread)
{
return static_cast<aix_thread_info *> (thread->priv.get ());
return gdb::checked_static_cast<aix_thread_info *> (thread->priv.get ());
}
/* Information about a thread of which libpthdebug is aware. */