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/remote.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/remote.c')
-rw-r--r-- | gdb/remote.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 2f6cb2d..17c2d17 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -2694,7 +2694,7 @@ get_remote_thread_info (thread_info *thread) if (thread->priv == NULL) thread->priv.reset (new remote_thread_info); - return static_cast<remote_thread_info *> (thread->priv.get ()); + return gdb::checked_static_cast<remote_thread_info *> (thread->priv.get ()); } /* Return PTID's private thread data, creating it if necessary. */ @@ -6611,7 +6611,7 @@ get_remote_inferior (inferior *inf) if (inf->priv == NULL) inf->priv.reset (new remote_inferior); - return static_cast<remote_inferior *> (inf->priv.get ()); + return gdb::checked_static_cast<remote_inferior *> (inf->priv.get ()); } /* Class used to track the construction of a vCont packet in the |