From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27266 invoked by alias); 29 Jun 2009 07:42:24 -0000 Received: (qmail 27244 invoked by uid 22791); 29 Jun 2009 07:42:22 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp.nokia.com (HELO mgw-mx09.nokia.com) (192.100.105.134) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Jun 2009 07:42:16 +0000 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n5T7fb17022119 for ; Mon, 29 Jun 2009 02:42:17 -0500 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 29 Jun 2009 10:42:11 +0300 Received: from mgw-da01.ext.nokia.com ([147.243.128.24]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 29 Jun 2009 10:42:10 +0300 Received: from gar.localnet (bettdhcp167194.europe.nokia.com [172.25.167.194]) by mgw-da01.ext.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n5T7g6dT018458 for ; Mon, 29 Jun 2009 10:42:07 +0300 From: =?iso-8859-1?q?Andr=E9_P=F6nitz?= To: gdb@sourceware.org Subject: Re: -stack-list-locals and children Date: Mon, 29 Jun 2009 07:42:00 -0000 User-Agent: KMail/1.11.2 (Linux/2.6.28-11-generic; KDE/4.2.2; i686; ; ) References: <629542d40906281203o3601025at573704e36ee80565@mail.gmail.com> In-Reply-To: <629542d40906281203o3601025at573704e36ee80565@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906290943.17323.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/msg00281.txt.bz2 On Sunday 28 June 2009 21:03:01 Niko Sams wrote: > Hi, > > -stack-list-locals doesn't return an numchild element. How can the IDE > know if a local > is has children? > > If there are children, they are listed in value: > ^done,locals=[{name="list",value="QList = {[0] = \"hello\"}"}] > > Is it a good idea to parse the value with an regular expression to > find out if there are children? It would be really nice if 'type' and 'numchild' information was directly included in that "primary" output. The information is available on the gdb side, so parsing it from the 'value' field does not really look like a good solution in the long run. Andre'