Create xml from target descriptions
[deliverable/binutils-gdb.git] / gdb / xml-tdesc.c
index 1c3409d53b684250d9192a43339ff75459abc695..87c6be428f67840dc4b9d2eb99f00f6919524d8d 100644 (file)
@@ -752,3 +752,15 @@ target_fetch_description_xml (struct target_ops *ops)
   return output;
 #endif
 }
+
+/* See xml-tdesc.h.  */
+
+const struct target_desc *
+string_read_description_xml (const char *xml)
+{
+  return tdesc_parse_xml (xml, [] (const char *href, void *baton)
+    {
+      error (_("xincludes are unsupported with this method"));
+      return gdb::optional<gdb::char_vector> ();
+    }, nullptr);
+}
This page took 0.023332 seconds and 4 git commands to generate.