Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stan Shebs <stan@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] Conditional tracepoints
Date: Sat, 27 Jun 2009 12:55:00 -0000	[thread overview]
Message-ID: <83fxdlzvin.fsf@gnu.org> (raw)
In-Reply-To: <4A45AE9B.9020400@codesourcery.com>

> Date: Fri, 26 Jun 2009 22:31:07 -0700
> From: Stan Shebs <stan@codesourcery.com>
> 
> This patch adds conditional tracepoints.

Thanks.

I think we need a NEWS entry for this.

> ==> doc/ChangeLog <==
> 2009-06-26  Stan Shebs  <stan@codesourcery.com>
> 
>     * gdb.texinfo (Tracepoint Conditions): New section.
>     (General Query Packets): Describe ConditionalTracepoints.
>     (Tracepoint Packets): Describe condition field.
>     (Maintenance Commands): Describe maint agent-eval.

This part is okay, with the following comments:

> + programming language (@pxref{Expressions, ,Expressions}).  A
> + tracepoint with a condition evaluates the expression each time your
> + program reaches it, and data collection happens only if the condition
> + is @emph{true}.

Not sure why you use the @emph markup here.  I think the text is okay
without any markup at all.

> + In contrast to breakpoint conditions, @value{GDBN} does not actually
> + evaluate @var{expression} at the time the @code{condition} command (or
> + a command that sets a tracepoint with a condition, like @code{trace if
> + @dots{}}) is given, however.  @xref{Expressions, ,Expressions}.

Two comments:

  . The @var{expression} does not reference anything in this section,
    so the reader might become confused about what expression you had
    in mind.
  . You seem to imply that the condition is evaluated by conditional
    breakpoints when the command is given.  If so, that's not true,
    AFAIK: the condition is evaluated each time a breakpoint is hit.
    So the "in contrast to ..." part is not really right here.

> + Instead, @value{GDBN} encodes the expression into a form suitable for
> + execution on the target, independently of @value{GDBN}. Global
                                                          ^^
Only one space.

> + @smallexample
> + (@value{GDBP}) @b{trace normal_operation if errcode > 0}
> + @end smallexample

Why the @b markup here?  We don't use that elsewhere in examples.

>   @table @code
>   @kindex maint agent
> + @kindex maint agent-eval
>   @item maint agent @var{expression}
> + @itemx maint agent-eval @var{expression}
>   Translate the given @var{expression} into remote agent bytecodes.
>   This command is useful for debugging the Agent Expression mechanism
> ! (@pxref{Agent Expressions}).  The @samp{agent} version produces an
> ! expression useful for data collection, such as by tracepoints, while
> ! @samp{maint agent-eval} produces an expression that evaluates directly
> ! to a result.

I must admit that I don't understand the description you added.  What
does "expression useful for data collection" mean, and how is it
different from "expression that evaluates directly to a result"?

> + @item ConditionalTracepoints
> + The remote stub accepts and tests conditional expressions defined for
> + tracepoints (@pxref{Tracepoint Conditions}).

Don't you mean "accepts and supports" or "accepts and implements"?


  reply	other threads:[~2009-06-27 12:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-27  5:31 Stan Shebs
2009-06-27 12:55 ` Eli Zaretskii [this message]
2009-06-29 20:29   ` Stan Shebs
2009-06-30  3:06     ` Eli Zaretskii
2009-06-29 16:38 ` Tom Tromey
2009-06-29 20:58   ` Stan Shebs
2009-06-29 21:50     ` Tom Tromey
2009-07-14 23:29 ` 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=83fxdlzvin.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