From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22224 invoked by alias); 20 Sep 2009 22:05:02 -0000 Received: (qmail 22051 invoked by uid 22791); 20 Sep 2009 22:05:00 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,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; Sun, 20 Sep 2009 22:04:50 +0000 Received: from totara (126.61.255.123.dynamic.snap.net.nz [123.255.61.126]) by viper.snap.net.nz (Postfix) with ESMTP id 48BA23DA2E4; Mon, 21 Sep 2009 10:04:47 +1200 (NZST) Received: by totara (Postfix, from userid 1000) id 46367C164; Mon, 21 Sep 2009 10:04:46 +1200 (NZST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19126.42750.144028.812936@totara.tehura.co.nz> Date: Sun, 20 Sep 2009 22:05:00 -0000 To: Vladimir Prus Cc: gdb-patches@sources.redhat.com Subject: Re: [MI] -stack-list-variables In-Reply-To: <200909201018.36901.vladimir@codesourcery.com> References: <200909191412.37692.vladimir@codesourcery.com> <20090919224050.5DE89C164@totara> <200909201018.36901.vladimir@codesourcery.com> From: nickrob@snap.net.nz (Nick Roberts) 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-09/txt/msg00650.txt.bz2 > > How about the format below?: > > > > -stack-list-variables --no-values > > ^done,variables={args=[{name="i"},{name="j"}], > > locals=[{name="asdf"},{name="m"},{name="zxcv"},{name="qwert"}]} > > Why would frontend care about which are locals and which are arguments? I don't > think I saw any GUI than distinguish between those in variables view. CLI treats them as completely different ("info args", "info locals") as MI did previously (-stack-list-locals, -stack-list-arguments). To the programmer, I think they are quite different: argument values are passed in, local values aren't. If the front end doesn't care, it can always group these together. > Even > if we decide this information is necessary, would it not be better to present it > like this: > > ^done,variables=[{name="i", arg="1"},{name="asdf"}] > > as this format is more extensible in case some other frontend might need > even more finer details? I don't see how this helps. Breaking locals and args down further would require a new command for backward compatibilty reasons. -- Nick http://www.inet.net.nz/~nickrob