From: Eli Zaretskii <eliz@gnu.org>
To: Stan Shebs <stan@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Trace file support
Date: Tue, 12 Jan 2010 19:31:00 -0000 [thread overview]
Message-ID: <838wc386hd.fsf@gnu.org> (raw)
In-Reply-To: <4B4BD994.9070701@codesourcery.com>
> Date: Mon, 11 Jan 2010 18:08:20 -0800
> From: Stan Shebs <stan@codesourcery.com>
>
> This patch adds support for trace files, which are simply dumps of a
> target's tracepoints and trace buffer. In addition to the new "tsave"
> command to create a trace file, there is a new target "tfile" that opens
> a trace file and then lets you do tfind and then print any data that was
> collected, just as for you would do for a live target.
Thanks, I have a few comments about this part:
> * gdb.texinfo (Trace Files): New section.
> (Tracepoint Packets): Document QTSave and qTBuffer.
> + It is also possible to get trace data from a file, in a manner reminiscent
> + of corefiles; you specify the filename, and use @code{tfind} to search
> + through the file. See @ref{Trace Files} for more details.
^
You need a comma here, or else makeinfo will bitch at you. Also, "See
@ref" at the beginning of a sentence is exactly equivalent to "@xref",
so might as well use that.
> + then save it. If the target supports it, you can also supply the
> + optional argument @code{-r} (``remote'') to direct the target to save
> + the data directly into @var{filename} in its filesystem, which may be
> + more efficient if the trace buffer is very large.
> +
> + @kindex target tfile
> + @kindex tfile
> + @item target tfile @var{filename}
> + Use the given @var{filename} as a source of trace data.
This leaves me wondering: how would "target tfile" know whether to
look on the host or on the target for the specified file? How about
clarifying that?
> + The trace file comes in three parts: a header, a textual description
> + section, and a trace frame section with binary data. [...]
I wonder if we really need such a detailed description of the file's
format in the user manual. Who would need that? can we simply send
the interested reader to some header file?
> + The description section consists of multiple lines of ASCII text
@sc{ascii} will look better in print, I think. Or try
@acronym{ASCII}.
> + Memory block. This is a contiguous block of memory, at the 8-byte
^
Not enough spaces ;-)
Thanks.
next prev parent reply other threads:[~2010-01-12 19:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-12 2:08 Stan Shebs
2010-01-12 19:31 ` Eli Zaretskii [this message]
2010-01-12 19:40 ` Michael Snyder
2010-01-12 23:34 ` Stan Shebs
2010-01-13 4:16 ` Eli Zaretskii
2010-01-13 18:44 ` Stan Shebs
2010-01-15 22:44 ` Stan Shebs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=838wc386hd.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=stan@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox