From: Vladimir Prus <vladimir@codesourcery.com>
To: Stan Shebs <stan@codesourcery.com>
Cc: Michael Snyder <msnyder@vmware.com>,
"gdb@sources.redhat.com" <gdb@sources.redhat.com>
Subject: Re: Tracepoint enhancements
Date: Wed, 05 Nov 2008 07:14:00 -0000 [thread overview]
Message-ID: <200811051013.32620.vladimir@codesourcery.com> (raw)
In-Reply-To: <4910BBB1.3050800@codesourcery.com>
On Wednesday 05 November 2008 00:16:33 Stan Shebs wrote:
> Michael Snyder wrote:
> > Vladimir Prus wrote:
> >> Michael Snyder wrote:
> >
> >>> One more thing, only vaguely related...
> >>>
> >>> I've thought that if we had the ability to attach an expression
> >>> (in pcode such as we use for tracepoints) to a conditional breakpoint,
> >>> we could have the conditional evaluation be done on the target
> >>> rather than by gdb, which would be a big performance win for
> >>> conditional breakpoints or watchpoints.
> >>
> >> Yes. We want conditional tracepoints, and the condition would have to
> >> be evaluated
> >> on the target. And if breakpoints and tracepoints are unified, both
> >> breakpoints and
> >> tracepoints will benefit.
> >
> > Very good point. OK, you've convinced me.
> I shall proceed on the assumption that we will make a tracepoint a kind
> of breakpoint. This means we no longer need the special
> enable/disable/delete commands. I think the original "trace" command
> should remain as-is, and I'm also inclined to leave "actions" alone for
> the moment, rather than try to merge with "commands"; while there could
> be some useful unification, it seems like more of a sweeping change to
> try to decide for every command, whether it could be part of a
> tracepoint action or not.
There's no need to do that. 'collect', 'while-stepping' and 'continue'
can be part of command set that is hardware-supported. Other commands do not.
From MI standpoint, I disagree to having independent 'commands' and 'actions'
properties -- this makes no sense in the long run, and MI is not supposed to
be breaking behaviour at random, so we cannot implement 'actions' now, and
take it back later.
> Ignore counts vs passcounts still mystify me a bit. They seem
> conceptually similar (modulo the sense inversion), but the documentation
> for passcounts makes it seems as though one might expect all tracing and
> all tracepoints to be disabled once a passcount is exceeded for any one
> of them - and I see where that might be the desired behavior, vs the
> per-breakpoint control of ignore counts.
Yeah, this is one bit that needs further design.
- Volodya
next prev parent reply other threads:[~2008-11-05 7:14 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-31 20:46 Stan Shebs
[not found] ` <490B6CEF.2000003@vmware.com>
2008-11-01 8:40 ` Vladimir Prus
2008-11-03 18:20 ` Michael Snyder
2008-11-04 21:17 ` Stan Shebs
2008-11-05 7:14 ` Vladimir Prus [this message]
[not found] ` <Pine.LNX.4.58.0811060523150.8468@vlab.hofr.at>
2008-11-06 18:19 ` Vladimir Prus
2008-11-03 6:38 ` Jakob Engblom
2008-11-03 18:27 ` Michael Snyder
2008-11-03 18:53 ` Jakob Engblom
2008-11-03 19:23 ` Michael Snyder
2008-11-04 14:00 ` Jakob Engblom
2008-11-04 21:37 ` Stan Shebs
2008-11-04 21:58 ` Michael Snyder
2008-11-05 9:04 ` Jakob Engblom
2008-11-03 9:12 ` Jeremy Bennett
2008-11-04 21:26 ` 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=200811051013.32620.vladimir@codesourcery.com \
--to=vladimir@codesourcery.com \
--cc=gdb@sources.redhat.com \
--cc=msnyder@vmware.com \
--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