From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Stan Shebs <stan@codesourcery.com>
Subject: Re: PATCH: Circular trace buffers
Date: Wed, 17 Mar 2010 16:00:00 -0000 [thread overview]
Message-ID: <201003171600.46751.pedro@codesourcery.com> (raw)
In-Reply-To: <4B9FFB2A.4080205@codesourcery.com>
On Tuesday 16 March 2010 21:42:02, Stan Shebs wrote:
> This patch adds a flag that requests the target agent to make the trace
> buffer circular, so that instead of filling it up and then stopping, the
> agent discards the oldest trace frames as necessary to accommodate new
> ones. Any hairy memory management code is going to be on the target
> side; GDB just has to transmit the setting (and now always via target
> vector), and report back status, which may now include a total number of
> frames that were created. This also adds complete documentation of the
> qTStatus reply, per request. Any comments before I commit?
Playing devil's advogate here, I'm still not 100% convinced that
"set circular-trace-buffer" is 100% well defined and that
is isn't confusing in some cases; it applies on the fly
in some cases, does somewhat not-completly clear
things in other cases, and errors out in others. I wonder
if we defined "set circular-trace-buffer" as another flag
that is respected at "tstart" time only, and made the
presently running trace run's circular-trace-buffer-ness reported
through "tstatus", and define "show circular-trace-buffer" as the
"circular-trace-buffer-ness" intent at next trace run start,
things would be more consistent and clear. If not, vis.:
E.g.,
- applies on the fly in non-stop mode.
- all-stop/async + trace running + "set circular-trace-buffer"
errors out because you can't talk to the target if it
is running in all-stop.
- E.g., what does "show circular-trace-buffer" mean when
debugging a tfile? "set circular-trace-buffer" changes
the local GDB flag, and "show circular-trace-buffer"
shows the according change, but, then we have no
way of knowing when debugging a tfile had been
in circular-trace-buffer mode or not when the tfile
was created.
That said, I'm not opposed to the patch. Just
dumping my thoughts. :-)
--
Pedro Alves
next prev parent reply other threads:[~2010-03-17 16:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-16 21:42 Stan Shebs
2010-03-17 7:25 ` Eli Zaretskii
2010-03-17 16:00 ` Pedro Alves [this message]
2010-03-17 16:55 ` Stan Shebs
2010-03-17 17:19 ` Pedro Alves
2010-03-17 18:05 ` Stan Shebs
2010-03-17 18:51 ` Pedro Alves
2010-03-18 22:14 ` Pedro Alves
2010-03-18 23:34 ` 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=201003171600.46751.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--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