gdb.trace: Save XML target description in tfile.
authorMarcin Kościelnicki <koriakin@0x04.net>
Fri, 5 Feb 2016 20:32:52 +0000 (21:32 +0100)
committerMarcin Kościelnicki <koriakin@0x04.net>
Wed, 10 Feb 2016 22:31:11 +0000 (23:31 +0100)
commit18d3cec54e1b4fce278dba436484846f8048d7d6
tree6e78be8ae681262aef75f4f164d157c62e050e47
parent9f6a71b4bfdad8fa2fe33e86f799fa0d362973dc
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/ChangeLog
gdb/ctf.c
gdb/tracefile-tfile.c
gdb/tracefile.c
gdb/tracefile.h
gdb/xml-tdesc.c
gdb/xml-tdesc.h