aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracefile.h
diff options
context:
space:
mode:
authorMarcin Koƛcielnicki <koriakin@0x04.net>2016-02-05 21:32:52 +0100
committerMarcin Koƛcielnicki <koriakin@0x04.net>2016-02-10 23:31:11 +0100
commit18d3cec54e1b4fce278dba436484846f8048d7d6 (patch)
tree6e78be8ae681262aef75f4f164d157c62e050e47 /gdb/tracefile.h
parent9f6a71b4bfdad8fa2fe33e86f799fa0d362973dc (diff)
downloadgdb-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.h')
-rw-r--r--gdb/tracefile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/tracefile.h b/gdb/tracefile.h
index 8b711a1..e6d4460 100644
--- a/gdb/tracefile.h
+++ b/gdb/tracefile.h
@@ -84,6 +84,9 @@ struct trace_file_write_ops
void (*write_uploaded_tp) (struct trace_file_writer *self,
struct uploaded_tp *tp);
+ /* Write target description. */
+ void (*write_tdesc) (struct trace_file_writer *self);
+
/* Write to mark the end of the definition part. */
void (*write_definition_end) (struct trace_file_writer *self);