From 18d3cec54e1b4fce278dba436484846f8048d7d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Ko=C5=9Bcielnicki?= Date: Fri, 5 Feb 2016 21:32:52 +0100 Subject: gdb.trace: Save XML target description in tfile. gdb/ChangeLog: * ctf.c (ctf_write_tdesc): New function. (ctf_write_ops): Wire in ctf_write_tdesc. * tracefile-tfile.c (tfile_write_tdesc): New function. (tfile_write_ops): Wire in tfile_write_tdesc. * tracefile.c (trace_save): Call write_tdesc method. * tracefile.h (struct trace_file_write_ops): Add write_tdesc method. * xml-tdesc.c (target_fetch_description_xml): New function. * xml-tdesc.h: Add target_fetch_description_xml prototype. --- gdb/xml-tdesc.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/xml-tdesc.h') diff --git a/gdb/xml-tdesc.h b/gdb/xml-tdesc.h index a0c38d7..70a1ebb 100644 --- a/gdb/xml-tdesc.h +++ b/gdb/xml-tdesc.h @@ -31,3 +31,9 @@ const struct target_desc *file_read_description_xml (const char *filename); parsed description. */ const struct target_desc *target_read_description_xml (struct target_ops *); + +/* Fetches an XML target description using OPS, processing + includes, but not parsing it. Used to dump whole tdesc + as a single XML file. */ + +char *target_fetch_description_xml (struct target_ops *ops); -- cgit v1.1