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:
parent
45685a2fd8
commit
98ed24fb35
9 changed files with 28 additions and 25 deletions
|
@ -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 *
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue