From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17549 invoked by alias); 16 Apr 2008 15:20:31 -0000 Received: (qmail 17538 invoked by uid 22791); 16 Apr 2008 15:20:30 -0000 X-Spam-Check-By: sourceware.org Received: from zigzag.lvk.cs.msu.su (HELO zigzag.lvk.cs.msu.su) (158.250.17.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 16 Apr 2008 15:20:10 +0000 Received: from Debian-exim by zigzag.lvk.cs.msu.su with spam-scanned (Exim 4.63) (envelope-from ) id 1Jm9QY-0002Rs-IM for gdb@sourceware.org; Wed, 16 Apr 2008 19:20:05 +0400 Received: from localhost ([127.0.0.1] helo=ip6-localhost) by zigzag.lvk.cs.msu.su with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Jm9QY-0002Rm-7c; Wed, 16 Apr 2008 19:20:02 +0400 From: Vladimir Prus To: gdb@sourceware.org Subject: MI varobj artificial fields Date: Wed, 16 Apr 2008 16:27:00 -0000 User-Agent: KMail/1.9.6 (enterprise 0.20070907.709405) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200804161920.02035.ghost@cs.msu.su> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00148.txt.bz2 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