From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21798 invoked by alias); 28 Jun 2009 19:31:24 -0000 Received: (qmail 21790 invoked by uid 22791); 28 Jun 2009 19:31:24 -0000 X-SWARE-Spam-Status: No, hits=-3.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 28 Jun 2009 19:31:15 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ML05o-0004qt-17 for gdb@sources.redhat.com; Sun, 28 Jun 2009 19:31:12 +0000 Received: from h86-62-88-129.ln.rinet.ru ([86.62.88.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Jun 2009 19:31:12 +0000 Received: from vladimir by h86-62-88-129.ln.rinet.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 28 Jun 2009 19:31:12 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: -stack-list-locals and children Date: Sun, 28 Jun 2009 19:31:00 -0000 Message-ID: References: <629542d40906281203o3601025at573704e36ee80565@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.9 X-IsSubscribed: yes 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/msg00275.txt.bz2 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? > > Or is there a better way to get numchild? I think the right approach is a command that creates and returns varobjs for locals. - Volodya