Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Stan Shebs <stan@codesourcery.com>
To: Michael Snyder <msnyder@vmware.com>
Cc: Vladimir Prus <vladimir@codesourcery.com>,
	  "gdb@sources.redhat.com" <gdb@sources.redhat.com>
Subject: Re: Tracepoint enhancements
Date: Tue, 04 Nov 2008 21:17:00 -0000	[thread overview]
Message-ID: <4910BBB1.3050800@codesourcery.com> (raw)
In-Reply-To: <490F3F3C.4070104@vmware.com>

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. We get tracepoint conditions via "condition" 
and "trace ... if" then. Not clear if "info tracepoints" should stick 
around as a subset of "info breakpoints".

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.

Stan


  reply	other threads:[~2008-11-04 21:17 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 [this message]
2008-11-05  7:14         ` Vladimir Prus
     [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=4910BBB1.3050800@codesourcery.com \
    --to=stan@codesourcery.com \
    --cc=gdb@sources.redhat.com \
    --cc=msnyder@vmware.com \
    --cc=vladimir@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