-
-struct tdesc_feature *tdesc_create_feature (struct target_desc *tdesc,
- const char *name);
-void tdesc_record_type (struct tdesc_feature *feature, struct type *type);
-
-void tdesc_create_reg (struct tdesc_feature *feature, const char *name,
- int regnum, int save_restore, const char *group,
- int bitsize, const char *type);
+void tdesc_add_compatible (struct target_desc *,
+ const struct bfd_arch_info *);
+tdesc_type_with_fields *tdesc_create_enum (struct tdesc_feature *feature,
+ const char *name,
+ int size);
+void tdesc_add_typed_bitfield (tdesc_type_with_fields *type, const char *field_name,
+ int start, int end,
+ struct tdesc_type *field_type);
+void tdesc_add_enum_value (tdesc_type_with_fields *type, int value,
+ const char *name);
+
+#if GDB_SELF_TEST
+namespace selftests {
+
+/* Record that XML_FILE should generate a target description that equals
+ TDESC, to be verified by the "maintenance check xml-descriptions"
+ command. */
+
+void record_xml_tdesc (const char *xml_file,
+ const struct target_desc *tdesc);
+}
+#endif