From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3477 invoked by alias); 1 Jul 2009 17:34:53 -0000 Received: (qmail 3469 invoked by uid 22791); 1 Jul 2009 17:34:53 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Jul 2009 17:34:45 +0000 Received: (qmail 19795 invoked from network); 1 Jul 2009 17:34:43 -0000 Received: from unknown (HELO wind.localnet) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 1 Jul 2009 17:34:43 -0000 From: Vladimir Prus To: Nick Roberts Subject: Re: [mi] -stack-list-arguments --simple-values Date: Wed, 01 Jul 2009 17:34:00 -0000 User-Agent: KMail/1.11.90 (Linux/2.6.24-24-generic; KDE/4.2.90; i686; svn-979530; 2009-06-10) Cc: gdb-patches@sources.redhat.com References: <200906301339.30711.vladimir@codesourcery.com> <19019.24800.902658.94531@totara.tehura.co.nz> In-Reply-To: <19019.24800.902658.94531@totara.tehura.co.nz> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200907012134.49196.vladimir@codesourcery.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-07/txt/msg00024.txt.bz2 On Wednesday 01 July 2009 Nick Roberts wrote: > > This patch makes -stack-list-arguments --simple-values work. > > It looks like --simple-values (and friends) were accepted for > > -stack-list-locals, but not for -stack-list-arguments. While > > the utility of such human friendly spelling is unclear, for > > a machine interface, it's even more confusing having 1/2 > > of relevant commands accept it. > > It's not immediately clear from the manual that SHOW-VALUES from > -stack-list-arguments and PRINT-VALUES from -stack-list-locals are related. > -stack-list-arguments takes three arguments while -stack-list-locals only > takes -one. I think it would be nice to have one command, > -stack-list-locals-and-args say, that lists both the locals and the arguments > of the current frame: It would be nice indeed. However, I have not entirely designed how a frontend should actually work with locals and arguments, so I did not do anything like that -- just fixed obvious inconsistency between existing commands. - Volodya