This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH doc 2/3] Document -ctf switch of -trace-save
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Thu, 13 Oct 2016 17:07:27 -0400
- Subject: [PATCH doc 2/3] Document -ctf switch of -trace-save
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=simon dot marchi at ericsson dot com;
- References: <20161013210728.18756-1-simon.marchi@ericsson.com>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
The -trace-save MI command supports saving the trace in the CTF format,
as its CLI counterpart, but it's not documented.
gdb/doc/ChangeLog:
* gdb.texinfo (GDB/MI Tracepoint Commands): Document -ctf switch
of -trace-save.
---
gdb/doc/gdb.texinfo | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 56cd59a..d419626 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -30934,7 +30934,7 @@ body=[variable=@{name="$trace_timestamp",initial="0"@}
@subsubheading Synopsis
@smallexample
- -trace-save [-r ] @var{filename}
+ -trace-save [ -r ] [ -ctf ] @var{filename}
@end smallexample
Saves the collected trace data to @var{filename}. Without the
@@ -30942,6 +30942,10 @@ Saves the collected trace data to @var{filename}. Without the
in a local file. With the @samp{-r} option the target is asked
to perform the save.
+By default, this command will save the trace in the tfile format. You can
+supply the optional @samp{-ctf} argument to save it the CTF format. See
+@ref{Trace Files} for more information about CTF.
+
@subsubheading @value{GDBN} Command
The corresponding @value{GDBN} command is @samp{tsave}.
--
2.10.1