+2016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
+
+ * xml-tdesc.c (target_fetch_description_xml) [!HAVE_LIBEXPAT]: Warn
+ and return NULL.
+
2016-02-12 Markus Metzger <markus.t.metzger@intel.com>
* frame.h (skip_tailcall_frames): Update comment.
char *
target_fetch_description_xml (struct target_ops *ops)
{
+#if !defined(HAVE_LIBEXPAT)
+ static int have_warned;
+
+ if (!have_warned)
+ {
+ have_warned = 1;
+ warning (_("Can not fetch XML target description; XML support was "
+ "disabled at compile time"));
+ }
+
+ return NULL;
+#else
struct target_desc *tdesc;
char *tdesc_str;
char *expanded_text;
}
return expanded_text;
+#endif
}