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.
This commit is contained in:
Marcin Kościelnicki 2016-02-05 21:32:52 +01:00
parent 9f6a71b4bf
commit 18d3cec54e
7 changed files with 101 additions and 0 deletions

View file

@ -616,6 +616,15 @@ ctf_write_uploaded_tp (struct trace_file_writer *self,
}
/* This is the implementation of trace_file_write_ops method
write_tdesc. */
static void
ctf_write_tdesc (struct trace_file_writer *self)
{
/* Nothing so far. */
}
/* This is the implementation of trace_file_write_ops method
write_definition_end. */
@ -799,6 +808,7 @@ static const struct trace_file_write_ops ctf_write_ops =
ctf_write_status,
ctf_write_uploaded_tsv,
ctf_write_uploaded_tp,
ctf_write_tdesc,
ctf_write_definition_end,
NULL,
&ctf_write_frame_ops,