From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22743 invoked by alias); 29 Jun 2009 16:55:49 -0000 Received: (qmail 22735 invoked by uid 22791); 29 Jun 2009 16:55:49 -0000 X-SWARE-Spam-Status: No, hits=-3.4 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; Mon, 29 Jun 2009 16:55:44 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MLK8q-0004hf-T3 for gdb@sources.redhat.com; Mon, 29 Jun 2009 16:55:40 +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 ; Mon, 29 Jun 2009 16:55:40 +0000 Received: from vladimir by h86-62-88-129.ln.rinet.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 29 Jun 2009 16:55:40 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: -stack-list-locals and children Date: Mon, 29 Jun 2009 16:55:00 -0000 Message-ID: References: <629542d40906281203o3601025at573704e36ee80565@mail.gmail.com> <19016.30632.619762.345807@totara.tehura.co.nz> <4A48DEF3.3070407@windriver.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/msg00300.txt.bz2 Vladimir Prus wrote: > Pawel Piech wrote: > >> Nick Roberts wrote: >>> Note that -stack-list-locals --simple-values _does_ give type information and, >>> if this is presented to the user, he can usually infer the number of children. >>> In the manual: >>> >>> -stack-list-locals --simple-values >>> ^done,locals=[{name="A",type="int",value="1"}, >>> {name="B",type="int",value="2"},{name="C",type="int [3]"}] >>> (gdb) ^^^^^^^ >>> >> >> No kidding! 2 more questions then: >> >> - does stack-list-args support the --simple-values option? > > Does not seem so. In fact, it does not seem like -stack-list-locals support if > either ;-). Both take an integer parameter though, passing '2' for it should > cause only simple values to be printed. > >> - how long has this feature been around? > > Which? Printing types? I believe it was around for approximately -1 day. In fact, for simple values case it was around since forever, it seems. - Volodya