From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9523 invoked by alias); 31 Aug 2007 10:02:23 -0000 Received: (qmail 9507 invoked by uid 22791); 31 Aug 2007 10:02:21 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 31 Aug 2007 10:02:12 +0000 Received: from kahikatea.snap.net.nz (219.40.255.123.static.snap.net.nz [123.255.40.219]) by viper.snap.net.nz (Postfix) with ESMTP id 275C83D9E71; Fri, 31 Aug 2007 22:02:09 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id CD18E8FC6D; Fri, 31 Aug 2007 22:01:57 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18135.59157.114705.902937@kahikatea.snap.net.nz> Date: Fri, 31 Aug 2007 10:02:00 -0000 To: Vladimir Prus Cc: Eli Zaretskii , drow@false.org, gdb-patches@sources.redhat.com Subject: Re: [mi] -list-features In-Reply-To: <200708311344.06331.ghost@cs.msu.su> References: <18135.57423.236858.201458@kahikatea.snap.net.nz> <200708311344.06331.ghost@cs.msu.su> X-Mailer: VM 7.19 under Emacs 23.0.50.1 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: 2007-08/txt/msg00551.txt.bz2 > So clearly, > > ["feature1","feature2"] > > is a valid list and the output I gave is also valid. I don't think this syntax is possible using the functions ui_out_field_string, etc. but if you tried to implement your proposal we would find out for sure and wouldn't need to debate it. > What you wrote: > > ^done,result=[name="feature1",name="feature2"] > > is also permitted by the current grammar, but I don't see any possible > meaning in the "name=". I believe using variable names inside lists > is old usage, and new commands should not do that. In contrast, tuples are > in the form: > > {name1=value1,name2=value2,....} > > and the names are required for tuples. Are you sure you haven't confused tuples > and lists? -stack-list-locals 0 ^done,locals=[name="aaa",name="zxcv"] (gdb) -- Nick http://www.inet.net.nz/~nickrob