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/process-stratum-target.h | |
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/process-stratum-target.h')
-rw-r--r-- | gdb/process-stratum-target.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/process-stratum-target.h b/gdb/process-stratum-target.h index bb8e39f..62f5616 100644 --- a/gdb/process-stratum-target.h +++ b/gdb/process-stratum-target.h @@ -23,6 +23,7 @@ #include "target.h" #include <set> #include "gdbsupport/intrusive_list.h" +#include "gdbsupport/gdb-checked-static-cast.h" #include "gdbthread.h" /* Abstract base class inherited by all process_stratum targets. */ @@ -160,7 +161,7 @@ static inline process_stratum_target * as_process_stratum_target (target_ops *target) { gdb_assert (target->stratum () == process_stratum); - return static_cast<process_stratum_target *> (target); + return gdb::checked_static_cast<process_stratum_target *> (target); } /* Return a collection of targets that have non-exited inferiors. */ |