Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* MI varobj artificial fields
@ 2008-04-16 16:27 Vladimir Prus
  2008-04-16 18:06 ` Pedro Alves
  2008-04-16 18:18 ` André Pönitz
  0 siblings, 2 replies; 10+ messages in thread
From: Vladimir Prus @ 2008-04-16 16:27 UTC (permalink / raw)
  To: gdb


Right now, when you're in C++ program and ask for children of a varobj
that has structure type, you don't the the fields. Instead, you get
"public", "private" and "protected" as children.

I don't think this makes very much sense. Presenting access specifies in UI
as items in the tree seems to just clutter things. Especially as in C++, 
classes are either POD, with everything public, or real classes, with everything
private. Protected data is generally frowned upon. So, most often we'll have
a lonely "public" or "private" item having all the real item.

Furthermore, even if class has a mixture of public, protected and private data,
do we expect the user to remember the visibility of the field he's after?

So, I suggest to allow MI to optionally suppress those artificial fields.
Comments?

- Volodya


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <4806400B.7050905@qnx.com>]

end of thread, other threads:[~2008-04-17 10:20 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-16 16:27 MI varobj artificial fields 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
     [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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox