aboutsummaryrefslogtreecommitdiff
path: root/gdb/ctf.c
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/ctf.c
parent9f6a71b4bfdad8fa2fe33e86f799fa0d362973dc (diff)
downloadfsf-binutils-gdb-18d3cec54e1b4fce278dba436484846f8048d7d6.zip
fsf-binutils-gdb-18d3cec54e1b4fce278dba436484846f8048d7d6.tar.gz
fsf-binutils-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/ctf.c')
-rw-r--r--gdb/ctf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ctf.c b/gdb/ctf.c
index 9d496e3..25a4c79 100644
--- a/gdb/ctf.c
+++ b/gdb/ctf.c
@@ -617,6 +617,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. */
static void
@@ -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,