/* If the original inferior had a user specified target
description, make the clone use it too. */
- if (target_desc_info_from_user_p (&inf->tdesc_info))
+ if (inf->tdesc_info.from_user_p ())
inf->tdesc_info = orginf->tdesc_info;
clone_program_space (pspace, orginf->pspace);
struct target_desc_info
{
+ /* Returns true if INFO indicates the target description had been supplied by
+ the user. */
+ bool from_user_p ()
+ { return !this->filename.empty (); }
+
/* A flag indicating that a description has already been fetched
from the target, so it should not be queried again. */
bool fetched = false;
return result;
}
-/* See target-descriptions.h. */
-
-int
-target_desc_info_from_user_p (struct target_desc_info *info)
-{
- return info != nullptr && !info->filename.empty ();
-}
-
/* The string manipulated by the "set tdesc filename ..." command. */
static std::string tdesc_filename_cmd_string;
struct tdesc_arch_data;
struct target_ops;
-/* An inferior's target description info is stored in this opaque
- object. There's one such object per inferior. */
-struct target_desc_info;
struct inferior;
/* Fetch the current inferior's description, and switch its current
const struct target_desc *target_current_description (void);
-/* Returns true if INFO indicates the target description had been
- supplied by the user. */
-
-int target_desc_info_from_user_p (struct target_desc_info *info);
-
/* Record architecture-specific functions to call for pseudo-register
support. If tdesc_use_registers is called and gdbarch_num_pseudo_regs
is greater than zero, then these should be called as well.