From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7457 invoked by alias); 29 Jun 2009 09:32:18 -0000 Received: (qmail 7446 invoked by uid 22791); 29 Jun 2009 09:32:17 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp.nokia.com (HELO mgw-mx03.nokia.com) (192.100.122.230) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Jun 2009 09:32:13 +0000 Received: from vaebh106.NOE.Nokia.com (vaebh106.europe.nokia.com [10.160.244.32]) by mgw-mx03.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n5T9Vv6r013870 for ; Mon, 29 Jun 2009 12:32:04 +0300 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by vaebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 29 Jun 2009 12:31:20 +0300 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 29 Jun 2009 12:30:51 +0300 Received: from gar.localnet (bettdhcp167194.europe.nokia.com [172.25.167.194]) by mgw-da02.ext.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n5T9Uj9U011975 for ; Mon, 29 Jun 2009 12:30:46 +0300 From: =?utf-8?q?Andr=C3=A9_P=C3=B6nitz?= To: gdb@sourceware.org Subject: Re: -stack-list-locals and children Date: Mon, 29 Jun 2009 09:32:00 -0000 User-Agent: KMail/1.11.2 (Linux/2.6.28-11-generic; KDE/4.2.2; i686; ; ) References: <629542d40906281203o3601025at573704e36ee80565@mail.gmail.com> <200906290943.17323.andre.poenitz@nokia.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906291131.57895.andre.poenitz@nokia.com> X-Nokia-AV: Clean 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: 2009-06/txt/msg00287.txt.bz2 On Monday 29 June 2009 10:59:06 Vladimir Prus wrote: > As I mention in other email, getting the number of children is in general > impossible. Maybe, "has_children" flag would be more appropriate -- this > is somewhat more likely to be computable. And sufficient for that use case. So yes, that would be fine. > I am not sure it was you, but there was an IRC discussion about making > -stack-list-locals also print type of things -- can you describe exactly > how you gonna use that information, so that I have a chance to implement > that properly? One point was always to reduce the number of roundtrips before being able to display the variable view. I think that's a valid point also from a KDevelop angle of view. > One important question is whether knowing a type of expression, without > knowing its address, is gonna help you very much. Yes, as the address is not as prominently displayed in the view as the type having the type quickly even without an address would help. Andre'