From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8986 invoked by alias); 31 Aug 2007 20:12:34 -0000 Received: (qmail 8974 invoked by uid 22791); 31 Aug 2007 20:12:33 -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 20:12:25 +0000 Received: from kahikatea.snap.net.nz (191.63.255.123.dynamic.snap.net.nz [123.255.63.191]) by viper.snap.net.nz (Postfix) with ESMTP id D42883D9F19; Sat, 1 Sep 2007 08:12:21 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 585E48FC6D; Sat, 1 Sep 2007 08:12:00 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18136.30223.308529.750517@kahikatea.snap.net.nz> Date: Fri, 31 Aug 2007 20:12:00 -0000 To: Vladimir Prus Cc: Eli Zaretskii , drow@false.org, gdb-patches@sources.redhat.com Subject: Re: [mi] -list-features In-Reply-To: <200708311412.50699.ghost@cs.msu.su> References: <200708311344.06331.ghost@cs.msu.su> <18135.59157.114705.902937@kahikatea.snap.net.nz> <200708311412.50699.ghost@cs.msu.su> X-Mailer: VM 7.19 under Emacs 23.0.50.2 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/msg00561.txt.bz2 > > 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. > > I *did* implemented it, and posted a code patch and here's what I get in > my local copy (with two dummy features, for local testing) I've only seen a patch with no features, so I must have missed it. >... > > -stack-list-locals 0 > > ^done,locals=[name="aaa",name="zxcv"] > > (gdb) > > This is historical code and gdb manual say this: > > New GDB/MI commands should only output lists containing values. OK, I see now that other commands output the other syntax. I currently just use a different regexp for each MI command but it must make things harder for anyone who wants to write a formal parser. -- Nick http://www.inet.net.nz/~nickrob