This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add CTF support to GDB [4/4] doc


On 11/28/12 10:44, Yao Qi wrote:
On 11/28/2012 09:40 AM, Hui Zhu wrote:
--- a/doc/gdb.texinfo
+++ b/doc/gdb.texinfo
@@ -12069,7 +12069,7 @@ of trace data, via the @code{target tfil
  @table @code

  @kindex tsave
-@item tsave [ -r ] @var{filename}
+@item tsave [ -r ] [-ctf] @var{filename}

According patch 1/4 (function ctf_save), 'tsave -ctf foo' will save ctf files into directory 'foo'. If so, we have to reflect this in document.


Can we do 'tsave -r -ctf foo'? IIRC, it is not allowed.

It can be written something like this,

   @item tsave [ -r ] @var{filename}
   @itemx tsave [-ctf] @var{dirname}

@@ -12089,6 +12095,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.
+

According to patch 3/4 (function init_ctf_ops), 'target ctf foo' uses directory foo instead of file foo.



Post a new version according to your comments.


Thanks,
Hui

Attachment: ctf-doc.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]