-/* Copyright (C) 2012-2020 Free Software Foundation, Inc.
+/* Copyright (C) 2012-2021 Free Software Foundation, Inc.
This file is part of GDB.
#endif
}
-struct target_desc *
+/* See gdbsupport/tdesc.h. */
+
+target_desc_up
allocate_target_description (void)
{
- return new target_desc ();
+ return target_desc_up (new target_desc ());
+}
+
+/* See gdbsupport/tdesc.h. */
+
+void
+target_desc_deleter::operator() (struct target_desc *target_desc) const
+{
+ delete target_desc;
}
#ifndef IN_PROCESS_AGENT
return current_process ()->tdesc;
}
+/* An empty structure. */
+
+struct tdesc_compatible_info { };
+
+/* See gdbsupport/tdesc.h. */
+
+const std::vector<tdesc_compatible_info_up> &
+tdesc_compatible_info_list (const target_desc *target_desc)
+{
+ static std::vector<tdesc_compatible_info_up> empty;
+ return empty;
+}
+
+/* See gdbsupport/tdesc.h. */
+
+const char *
+tdesc_compatible_info_arch_name (const tdesc_compatible_info_up &c_info)
+{
+ return nullptr;
+}
+
/* See gdbsupport/tdesc.h. */
const char *