From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5883 invoked by alias); 1 Jul 2009 17:45:04 -0000 Received: (qmail 5830 invoked by uid 22791); 1 Jul 2009 17:45:02 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-vw0-f203.google.com (HELO mail-vw0-f203.google.com) (209.85.212.203) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 01 Jul 2009 17:44:56 +0000 Received: by vwj41 with SMTP id 41so513061vwj.10 for ; Wed, 01 Jul 2009 10:44:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.95.194 with SMTP id e2mr9350999vcn.60.1246470293470; Wed, 01 Jul 2009 10:44:53 -0700 (PDT) In-Reply-To: <200907012134.49196.vladimir@codesourcery.com> References: <200906301339.30711.vladimir@codesourcery.com> <19019.24800.902658.94531@totara.tehura.co.nz> <200907012134.49196.vladimir@codesourcery.com> Date: Wed, 01 Jul 2009 17:45:00 -0000 Message-ID: <629542d40907011044k282ef8dagc1112b4fc6761bff@mail.gmail.com> Subject: Re: [mi] -stack-list-arguments --simple-values From: Niko Sams To: Vladimir Prus Cc: Nick Roberts , gdb-patches@sources.redhat.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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/msg00026.txt.bz2 On Wed, Jul 1, 2009 at 19:34, Vladimir Prus wrot= e: > On Wednesday 01 July 2009 Nick Roberts wrote: > >> =A0> This patch makes -stack-list-arguments --simple-values work. >> =A0> It looks like --simple-values (and friends) were accepted for >> =A0> -stack-list-locals, but not for -stack-list-arguments. While >> =A0> the utility of such human friendly spelling is unclear, for >> =A0> a machine interface, it's even more confusing having 1/2 >> =A0> 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 relat= ed. >> -stack-list-arguments takes three arguments while -stack-list-locals only >> takes -one. =A0I think it would be nice to have one command, >> -stack-list-locals-and-args say, that lists both the locals and the argu= ments >> of the current frame: > > It would be nice indeed. However, I have not entirely designed how a fron= tend > should actually work with locals and arguments, so I did not do anything > like that -- just fixed obvious inconsistency between existing commands. > Isn't every arg a local? Why would an IDE want to display arguments and locals differently? In KDevelop I added the arguments to the locals. -stack-list-locals-and-args would be perfect. Niko