From: "André Pönitz" <apoenitz@trolltech.com>
To: gdb@sourceware.org
Subject: Re: MI varobj artificial fields
Date: Fri, 18 Apr 2008 10:22:00 -0000 [thread overview]
Message-ID: <200804171221.29294.apoenitz@trolltech.com> (raw)
In-Reply-To: <200804162016.08508.pedro@codesourcery.com>
On Wednesday 16 April 2008 21:16:08 Pedro Alves wrote:
> A Wednesday 16 April 2008 19:51:03, Jim Ingham wrote:
> > I assumed that in cases where the protections were interleaved it was
> > just cruft of history, and if you were going to see protections at
> > all, it would make more sense to put them in just three groups. If
> > you have turn-outs, then of course it makes more sense to have three,
> > since otherwise you do a little "did I turn out the right private"
> > dance which is pretty annoying. There probably isn't one correct
> > answer to this question.
> >
>
> Depends. There are good reasons why you'd want to group
> your code in some other form than by protection, but that is a
> bit off-topic.
Indeed. As far as I am concerned any such a re-grouping is pretty
much the task of the "frontend". From the "backend" I'd just expect
reasonable data in some kind of order, preferably something
"canonical" like the actual physical layout of the structure.
Any other grouping like grouping accoding to some "protection
data field" can be doen easily in the frontend. I would not expect
that functionality hardcoded into the backend.
> What I do believe is important is for the IDE to not mess with
> my class' layout when I print some type info (unless
> I request it specifically with a "hide-all-private-fields"
> kind of switch). That is an important peace of information
> when debugging, that seems to be lost currently with the
> access-is-child form? Of course, removing the nodes removes
> this problem -- me, personally, as an IDE user would still
> like the fields/members/methods to have some indication
> of access/protection visible. Have no idea if the IDE's are
> currently smart enough to gather it from parsing the sources.
Some are, but it's alway a hassle to combine data coming from
two sources (say, one stream coming from a code parser and
one from gdb output) - especially if neither is 100% reliable...
Andre'
next prev parent reply other threads:[~2008-04-17 10:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <4806400B.7050905@qnx.com>
2008-04-16 19:16 ` Jim Ingham
2008-04-16 19:22 ` Daniel Jacobowitz
2008-04-16 19:34 ` Jim Ingham
2008-04-16 22:05 ` Pedro Alves
2008-04-18 10:22 ` André Pönitz [this message]
2008-04-16 16:27 Vladimir Prus
2008-04-16 18:06 ` Pedro Alves
2008-04-16 18:18 ` André Pönitz
2008-04-16 18:22 ` Marc Khouzam
2008-04-16 18:51 ` Jim Ingham
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=200804171221.29294.apoenitz@trolltech.com \
--to=apoenitz@trolltech.com \
--cc=gdb@sourceware.org \
/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