From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11279 invoked by alias); 29 Jun 2009 22:46:03 -0000 Received: (qmail 11271 invoked by uid 22791); 29 Jun 2009 22:46:03 -0000 X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,BAYES_00,BOTNET,SPF_PASS X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.25) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 29 Jun 2009 22:45:57 +0000 Received: from totara (198.30.255.123.dynamic.snap.net.nz [123.255.30.198]) by viper.snap.net.nz (Postfix) with ESMTP id BFD6D3DA156; Tue, 30 Jun 2009 10:45:54 +1200 (NZST) Received: by totara (Postfix, from userid 1000) id D91FFC13F; Tue, 30 Jun 2009 10:45:53 +1200 (NZST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19017.17441.798047.264363@totara.tehura.co.nz> Date: Mon, 29 Jun 2009 22:46:00 -0000 To: Pawel Piech Cc: =?ISO-8859-1?Q?Andr=E9_P=F6nitz?= , gdb@sourceware.org Subject: Re: -stack-list-locals and children In-Reply-To: <4A48DEF3.3070407@windriver.com> References: <629542d40906281203o3601025at573704e36ee80565@mail.gmail.com> <200906290943.17323.andre.poenitz@nokia.com> <19016.30632.619762.345807@totara.tehura.co.nz> <4A48DEF3.3070407@windriver.com> From: nickrob@snap.net.nz (Nick Roberts) 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/msg00319.txt.bz2 > No kidding! 2 more questions then: > > - does stack-list-args support the --simple-values option? [-stack-list-arguments] Not --simple-values directly but you can access it quite easily using the SHOW-VALUES option which is really the PRINT-VALUES option of -stack-list-locals since the two MI commands share the same code, namely, list_args_or_locals. For example, (gdb) -stack-list-arguments 0 0 1 ^done,stack-args=[frame={level="0",args=[name="i",name="j"]},frame={level="1",args=[name="argc",name="argv"]}] (gdb) -stack-list-arguments 1 0 1 ^done,stack-args=[frame={level="0",args=[{name="i",value="0x7ffff7871c81"},{name="j",value="0"}]},frame={level="1",args=[{name="argc",value="1"},{name="argv",value="0x7fffffffe7b8"}]}] (gdb) --stack-list-arguments 2 0 1 ^done,stack-args=[frame={level="0",args=[{name="i",type="int *",value="0x7ffff7871c81"},{name="j",type="int",value="0"}]},frame={level="1",args=[{name="argc",type="int",value="1"},{name="argv",type="char **",value="0x7fffffffe7b8"}]}] (gdb) as SHOW-VALUES=2 corresponds to --simple-values. > - how long has this feature been around? Since GDB 6.1, which goes back to the start of 2004. I added --simple-values (and documented it) for the locals buffer in Emacs but it's availability to -stack-list-arguments was just a side effect, so I never documented that. I think it would be quite easy to change -stack-list-arguments to accept --no-values, --simple-values and --all-values if people want it. -- Nick http://www.inet.net.nz/~nickrob