From: Daniel Jacobowitz <drow@false.org>
To: Vladimir Prus <ghost@cs.msu.su>
Cc: gdb-patches@sources.redhat.com
Subject: Re: Cleanup varobj children handling
Date: Sat, 30 Dec 2006 14:57:00 -0000 [thread overview]
Message-ID: <20061230145734.GA15107@nevyn.them.org> (raw)
In-Reply-To: <200612262349.14988.ghost@cs.msu.su>
On Tue, Dec 26, 2006 at 11:49:14PM +0300, Vladimir Prus wrote:
> I personally find VEC_iterate to be less clear -- because it does not
> correspond to any iteration pattern in any language I know. Do you insist
> on using it?
No, this is OK to leave alone. If you think of the integer index as
opaque, it's really not that unlike a C++ iterator; since we can't make
*ix work, we use two variables.
> + /* If we're called when the list of children is not yet initialized,
> + allocated enough elements in it. */
Allocate, not allocated - this is what we're doing, not what we've
done.
> + /* Push any children. Use reverse order so that first
> + child is popped from the work stack first, and so
> + will be added to result first. This does not
> + affect correctness, just "nicer". */
"so that the first child"
> + /* Child may be NULL is explicitly deleted by -var-delete. */
"if", not is.
> + /* Update this variable, unless it's root, which is already
> + updated. */
"unless it's a root"
Otherwise OK, with a changelog entry.
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2006-12-30 14:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-08 20:00 Vladimir Prus
2006-12-08 20:22 ` Vladimir Prus
2006-12-18 7:28 ` Vladimir Prus
2006-12-21 15:25 ` Vladimir Prus
2006-12-21 22:42 ` Nick Roberts
2006-12-22 6:18 ` Vladimir Prus
2006-12-22 6:49 ` Nick Roberts
2006-12-22 7:26 ` Vladimir Prus
2006-12-26 16:10 ` Daniel Jacobowitz
2006-12-26 20:50 ` Vladimir Prus
2006-12-30 14:57 ` Daniel Jacobowitz [this message]
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=20061230145734.GA15107@nevyn.them.org \
--to=drow@false.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