From: Vladimir Prus <vladimir@codesourcery.com>
To: gdb-patches@sources.redhat.com
Cc: Daniel Jacobowitz <dan@codesourcery.com>
Subject: Re: Language of registers
Date: Wed, 29 Nov 2006 10:12:00 -0000 [thread overview]
Message-ID: <200611291312.04104.vladimir@codesourcery.com> (raw)
In-Reply-To: <20061127140344.GA32528@nevyn.them.org>
On Monday 27 November 2006 17:03, Daniel Jacobowitz wrote:
> I'd suggest that we don't need the fake "public" child for things of
> struct/union (as opposed to class) type that are 100% public. We can't
> reliably detect struct vs class because debug info is often lacking the
> distinction, but union is easy. I don't know if this might break some
> MI frontend though. But the "public" child isn't even documented.
Documented or not, it seems Eclipse will break if we take it away. When
opening a structure, code in
org.eclipse.cdt.debug.mi.core.cdi.model.Variable.getChildren
assumes that is you have real (non-fake) structure, then all children of it
are fake. It means that if you have
struct S { int i; };
S s;
and create varobj V for 's' and 'i' becomes the immediate child of V, then
Eclipse will think V.i is fake child. Amoung other thing it will think that
expression corresponding to 'V.i' is 's' -- not 's.i'.
I don't know what to do about it. The right way is to
implement -var-info-path-expression and get all frontends to update, and then
remove 'public' for structures that have only public fields.
- Volodya
next prev parent reply other threads:[~2006-11-29 10:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-25 11:22 Vladimir Prus
2006-11-27 14:03 ` Daniel Jacobowitz
2006-11-28 17:12 ` Vladimir Prus
2006-11-28 17:23 ` Daniel Jacobowitz
2006-11-28 18:09 ` Vladimir Prus
2006-12-01 14:32 ` Daniel Jacobowitz
2006-12-01 18:03 ` Jim Ingham
2006-11-29 10:12 ` Vladimir Prus [this message]
2006-11-27 0:43 Nick Roberts
2006-11-27 6:32 ` Vladimir Prus
2006-11-27 7:37 ` Eli Zaretskii
2006-12-06 21:54 Nick Roberts
2006-12-06 22:03 ` Daniel Jacobowitz
2006-12-06 22:55 ` Nick Roberts
2006-12-06 23:10 ` Daniel Jacobowitz
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=200611291312.04104.vladimir@codesourcery.com \
--to=vladimir@codesourcery.com \
--cc=dan@codesourcery.com \
--cc=gdb-patches@sources.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