/* Common things used by the various darwin files
- Copyright (C) 1995-2022 Free Software Foundation, Inc.
+ Copyright (C) 1995-2023 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
std::string pid_to_str (ptid_t) override;
- char *pid_to_exec_file (int pid) override;
+ const char *pid_to_exec_file (int pid) override;
enum target_xfer_status xfer_partial (enum target_object object,
const char *annex,
static inline darwin_thread_info *
get_darwin_thread_info (class thread_info *thread)
{
- return static_cast<darwin_thread_info *> (thread->priv.get ());
+ return gdb::checked_static_cast<darwin_thread_info *> (thread->priv.get ());
}
/* Describe an inferior. */
static inline darwin_inferior *
get_darwin_inferior (inferior *inf)
{
- return static_cast<darwin_inferior *> (inf->priv.get ());
+ return gdb::checked_static_cast<darwin_inferior *> (inf->priv.get ());
}
/* Exception port. */