diff options
author | Marcin KoĆcielnicki <koriakin@0x04.net> | 2016-02-05 21:32:52 +0100 |
---|---|---|
committer | Marcin KoĆcielnicki <koriakin@0x04.net> | 2016-02-10 23:31:11 +0100 |
commit | 18d3cec54e1b4fce278dba436484846f8048d7d6 (patch) | |
tree | 6e78be8ae681262aef75f4f164d157c62e050e47 /gdb/tracefile.c | |
parent | 9f6a71b4bfdad8fa2fe33e86f799fa0d362973dc (diff) | |
download | gdb-18d3cec54e1b4fce278dba436484846f8048d7d6.zip gdb-18d3cec54e1b4fce278dba436484846f8048d7d6.tar.gz gdb-18d3cec54e1b4fce278dba436484846f8048d7d6.tar.bz2 |
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.
Diffstat (limited to 'gdb/tracefile.c')
-rw-r--r-- | gdb/tracefile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/tracefile.c b/gdb/tracefile.c index fef4ed9..de42165 100644 --- a/gdb/tracefile.c +++ b/gdb/tracefile.c @@ -90,6 +90,9 @@ trace_save (const char *filename, struct trace_file_writer *writer, /* Write out the size of a register block. */ writer->ops->write_regblock_type (writer, trace_regblock_size); + /* Write out the target description info. */ + writer->ops->write_tdesc (writer); + /* Write out status of the tracing run (aka "tstatus" info). */ writer->ops->write_status (writer, ts); |