From: Eli Zaretskii <eliz@gnu.org>
To: Vladimir Prus <ghost@cs.msu.su>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [doc] improve MI varobj introduction
Date: Mon, 08 Jan 2007 19:45:00 -0000 [thread overview]
Message-ID: <ufyali9p9.fsf@gnu.org> (raw)
In-Reply-To: <E1H3voy-0003zH-OM@zigzag.lvk.cs.msu.su> (message from Vladimir Prus on Mon, 08 Jan 2007 17:49:12 +0300)
> From: Vladimir Prus <ghost@cs.msu.su>
> Date: Mon, 08 Jan 2007 17:49:12 +0300
> >
> > Variable objects are an MI convenience feature to reference
> > expressions. When a frontend creates a variable object, it
> > specifies a name for an arbitrary expression in the debugged
> > program. That name can henceforth be used as an opaque handle for
> > the expression. The expression can be a simple variable, or it can
> > be ...
> >
> > Okay?
>
> You're right that my text did not say why it's recommended, but I think the
> above is also not accurate. "convenient feature to reference expressions"
> is not quite right -- it sounds like varobj is just a method to create
> aliases for expression, and varobjs are much more than that. How about:
>
> Variable objects are "object-oriented" MI interface for
> examining and changing values of expressions. Unlike some other
> MI interfaces that work with expressions, variable objects are
> specifically designed for simple and efficient
> presentation in the frontend. A variable object is identified
> by string name. When a variable object is created, the
> frontend specifies the expression for that variable object.
> The expression can be a simple variable ........
The first two sentences sound to me more like advertisement, but if
you feel you need to say that, fine.
> > A child variable object can itself have children, until we reach
> > leaf variable objects which have built-in types.
>
> That looks fine for me, but should not we have a command before "which"?
> Otherwise, it sounds like there are two kind of leaf variable objects --
> those of builtin types and those of non-builtin types.
I just tried to make a minimal modification of your text. Perhaps a
better variant is this:
A child variable object can itself have children, recursively.
Recursion ends when we reach leaf variable objects that have
built-in types.
next prev parent reply other threads:[~2007-01-08 19:45 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-19 8:04 Vladimir Prus
2006-12-19 22:29 ` Nick Roberts
2006-12-20 11:47 ` Vladimir Prus
2006-12-20 20:52 ` Nick Roberts
2006-12-21 6:15 ` Vladimir Prus
2006-12-26 15:32 ` Daniel Jacobowitz
2006-12-26 15:52 ` Vladimir Prus
2006-12-26 22:38 ` Daniel Jacobowitz
2007-01-04 18:21 ` Vladimir Prus
2007-01-04 18:23 ` Vladimir Prus
2007-01-04 21:48 ` Eli Zaretskii
2007-01-05 8:39 ` Vladimir Prus
2007-01-05 9:26 ` Eli Zaretskii
2007-01-08 14:50 ` Vladimir Prus
2007-01-08 19:45 ` Eli Zaretskii [this message]
2007-01-08 20:09 ` Vladimir Prus
2007-01-09 4:18 ` Eli Zaretskii
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=ufyali9p9.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=ghost@cs.msu.su \
/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