Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Patch: implement new dynamic varobj spec
Date: Sat, 12 Sep 2009 09:18:00 -0000	[thread overview]
Message-ID: <83y6okzfl6.fsf@gnu.org> (raw)
In-Reply-To: <m3r5uejz4y.fsf@fleche.redhat.com>

> From: Tom Tromey <tromey@redhat.com>
> Date: Thu, 10 Sep 2009 14:58:05 -0600
> 
> This is the long-awaited dynamic varobj patch.
> It implements the spec as described by Vladimir:
> 
>     http://sourceware.org/ml/gdb/2009-07/msg00088.html

Thanks.

> This patch needs a doc review.

Sorry for a delay in providing this review.

> +Once sent, this command cannot be undone.

A minor stylistic nit: I suggest the following variant:

  Once enabled, this feature cannot be disabled.

> +Note that if Python support has not been compiled into @value{GDBN},
> +this command will still succeed.

Suggest to add "(and do nothing)" to the end of the sentence

Btw, does this silent failure have good reasons?

> +This operation returns attributes of the newly-created varobj.  These
> +include, but are not limited to:

Why don't we have an exhaustive list here?

> +@item thread-id
> +If a fixed variable object is bound to a specific thread, then this is
> +the thread's identifier.

Is "fixed" used here as opposed to "dynamic"?  If so, it would be a
good idea to say explicitly what, if anything, this attribute means
for a dynamic varobj.  (If that's not the intent, please explain the
significance of the word "fixed" here; I cannot find "fixed varobj"
anywhere else in the manual.)

> +reset and all children will be reported.  Otherwise, children starting
> +at @var{from} (zero-based) and ending just before @var{to} will be
> +reported.

Since "ending just before" is a bit ambiguous, suggest to reword
thusly:

  Otherwise, children starting at @var{from} (zero-based) and up to
  and excluding @var{to} will be reported.

> +If a child range is requested, it will not affect the range of
> +children reported by a future call to @code{-var-update}.

Would it be better to say explicitly that only the current calls are
affected?  Like this:

  If a child range is requested, it will only affect the current call
  to @code{-var-update}, but not the future calls.

> +For a dynamic varobj, this value cannot reliably be used to form an
> +expression.  Also, a dynamic varobj will not report the access
> +qualifying pseudo-children, regardless of the language.

Do we want to give the reader some hints as to how to achieve these
with dynamic varobjs?

> +A dynamic varobj can supply a display hint to the front end.  The
> +comes directly from the Python pretty-printer object's
> +@code{display_hint} method.  @xref{Pretty Printing}.

Something is missing in the second sentence.

> +children will be reported.  Otherwise, children starting at @var{from}
> +(zero-based) and ending just before @var{to} will be reported.

Same comment as above about "ending just before".

Finally, I think we need a @cindex entry for "dynamic varobj" pointing
to the section where they are introduced (with a @dfn).

Thanks.


  parent reply	other threads:[~2009-09-12  9:18 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-10 20:58 Tom Tromey
2009-09-11  5:41 ` Nick Roberts
2009-09-11 19:41   ` Tom Tromey
2009-09-11 20:49     ` Eli Zaretskii
2009-09-11 21:12       ` Tom Tromey
2009-09-12  8:08         ` Eli Zaretskii
2009-09-11 23:55     ` Nick Roberts
2009-09-14 19:59       ` Tom Tromey
2009-09-14 22:55         ` Nick Roberts
2009-09-15 15:37           ` Tom Tromey
2009-09-15 22:28             ` Nick Roberts
2009-09-16  5:45               ` Vladimir Prus
2009-09-16  9:56                 ` Nick Roberts
2009-09-16 17:12               ` Tom Tromey
2009-09-16 22:26                 ` Nick Roberts
2009-09-15 22:43             ` Nick Roberts
2009-09-16  5:39               ` Vladimir Prus
2009-09-16  9:36                 ` Nick Roberts
2009-09-16  5:44         ` Vladimir Prus
2009-09-16 23:52           ` RFA: mark -enable-pretty-printing as experimental (Was: Patch: implement new dynamic varobj spec) Tom Tromey
     [not found]             ` <h8vk80$fqc$2@ger.gmane.org>
2009-09-18 10:02               ` Eli Zaretskii
2009-09-18 18:01                 ` RFA: mark -enable-pretty-printing as experimental Tom Tromey
2009-09-14 19:56   ` Patch: implement new dynamic varobj spec Tom Tromey
2009-09-12  9:18 ` Eli Zaretskii [this message]
2009-09-14 20:03   ` Tom Tromey
2009-09-14 20:22     ` Eli Zaretskii
2009-09-14 21:29       ` Tom Tromey
2009-09-15  3:06         ` Eli Zaretskii
2009-09-14 11:24 ` Vladimir Prus
2009-09-16 23:53   ` Tom Tromey
2009-09-16  5:46     ` Vladimir Prus
2009-09-19 12:01     ` Matt Rice
2009-09-19 15:59       ` Joel Brobecker
2009-09-14 20:05 ` Tom Tromey
2009-09-14 20:24   ` Eli Zaretskii
2009-09-14 23:58   ` Nick Roberts
2009-09-18  9:29 ` Vladimir Prus
2009-09-18 18:25   ` Tom Tromey
2009-09-19 12:57   ` Vladimir Prus
2009-09-13  2:41 Nick Roberts
2009-09-14 20:12 ` Tom Tromey
2009-09-14 20:21   ` Tom Tromey
2009-09-15  0:03     ` Nick Roberts
2009-09-14 23:48   ` Nick Roberts
2009-09-15 15:38     ` Tom Tromey

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=83y6okzfl6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@redhat.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