This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

MI varobj artificial fields


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]