From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32651 invoked by alias); 21 Nov 2012 01:46:04 -0000 Received: (qmail 32559 invoked by uid 22791); 21 Nov 2012 01:46:03 -0000 X-SWARE-Spam-Status: No, hits=-3.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 21 Nov 2012 01:45:55 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1TazNy-0005cJ-DF from Hui_Zhu@mentor.com for gdb-patches@sourceware.org; Tue, 20 Nov 2012 17:45:54 -0800 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 20 Nov 2012 17:45:54 -0800 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Tue, 20 Nov 2012 17:45:53 -0800 Message-ID: <50AC324D.7010703@mentor.com> Date: Wed, 21 Nov 2012 01:46:00 -0000 From: Hui Zhu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Subject: [PATCH] Add CTF support to GDB [4/4] doc Content-Type: multipart/mixed; boundary="------------000408070804000803000506" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-11/txt/msg00556.txt.bz2 --------------000408070804000803000506 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Content-length: 179 This is the doc patch for the ctf read and write function. Thanks, Hui 2012-11-20 Hui Zhu * gdb.texinfo (Trace Files): Add "tsave -ctf" and target ctf. --------------000408070804000803000506 Content-Type: text/plain; charset="us-ascii"; name="ctf-doc.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="ctf-doc.txt" Content-length: 1234 --- a/doc/gdb.texinfo +++ b/doc/gdb.texinfo @@ -12086,7 +12086,7 @@ of trace data, via the @code{target tfil @table @code @kindex tsave -@item tsave [ -r ] @var{filename} +@item tsave [ -r ] [-ctf] @var{filename} Save the trace data to @var{filename}. By default, this command assumes that @var{filename} refers to the host filesystem, so if necessary @value{GDBN} will copy raw trace data up from the target and @@ -12095,6 +12095,9 @@ optional argument @code{-r} (``remote'') the data directly into @var{filename} in its own filesystem, which may be more efficient if the trace buffer is very large. (Note, however, that @code{target tfile} can only read from files accessible to the host.) +By default, this command will save trace frame into tfile format. +You can supply the optional argument @code{-ctf} to save date in CTF +format. @kindex target tfile @kindex tfile @@ -12106,6 +12109,11 @@ the state of the trace run at the moment as the current trace frame you are examining. @var{filename} must be on a filesystem accessible to the host. +@kindex target ctf +@kindex ctf +@item target ctf @var{filename} +Use the file named @var{filename} as a source of CTF trace data. + @end table @node Overlays --------------000408070804000803000506--