Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Stan Shebs <stan@codesourcery.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Stan Shebs <stan@codesourcery.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Trace file support
Date: Tue, 12 Jan 2010 23:34:00 -0000	[thread overview]
Message-ID: <4B4D06E8.4070601@codesourcery.com> (raw)
In-Reply-To: <838wc386hd.fsf@gnu.org>

Eli Zaretskii wrote:
>> + 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 tfile target is mutually exclusive with target remote, when you read 
from it there is no remote target in the picture.  But juxtaposed with 
the options for local/remote creation, just above, there is certainly 
potential for confusion.
>> + 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?
>   
Good point - if one uses GDB to both create a trace file and read from 
it, then it's effectively a private format.  There is the case of the 
target agent writing the file directly, but I expect that will be less 
common.  On the other hand, if a target stub/agent does write trace 
files, then we should make some degree of stability promise (could one 
get compiled into Linux kernel?), and the GDB manual is our main avenue 
for describing that promise.  If we went the header file route, then 
there is a license issue for the file too.

Stan


  parent reply	other threads:[~2010-01-12 23:34 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
2010-01-12 19:40   ` Michael Snyder
2010-01-12 23:34   ` Stan Shebs [this message]
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=4B4D06E8.4070601@codesourcery.com \
    --to=stan@codesourcery.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    /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