From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7341 invoked by alias); 31 Aug 2007 07:27:31 -0000 Received: (qmail 7328 invoked by uid 22791); 31 Aug 2007 07:27:31 -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 07:27:27 +0000 Received: from kahikatea.snap.net.nz (21.60.255.123.dynamic.snap.net.nz [123.255.60.21]) by viper.snap.net.nz (Postfix) with ESMTP id 22B993D9EA8; Fri, 31 Aug 2007 19:27:23 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id DCAF28FC6D; Fri, 31 Aug 2007 19:27:20 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18135.49879.287098.143052@kahikatea.snap.net.nz> Date: Fri, 31 Aug 2007 07:27:00 -0000 To: Vladimir Prus Cc: Eli Zaretskii , drow@false.org, gdb-patches@sources.redhat.com Subject: Re: [mi] -list-features In-Reply-To: <200708311105.38612.ghost@cs.msu.su> References: <200708282147.18298.ghost@cs.msu.su> <200708311105.38612.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/msg00540.txt.bz2 > How about this: > > -list-features Returns a list of particular features of the MI > protocol that this version of gdb implements. A feature can > be a command, or a new field in an output of some command, > or even an important bugfix. While a frontend can sometimes > detect presence of a feature at runtime, it is easier to > perform detection at debugger startup. > > The command returns a list of strings, with each string naming > an available feature. Each returned string is just a name, it > does not have any internal structure. The list of possible > feature names is given below. > > The current list of features is: > > - 'frozen-varobjs' -- indicates presence of -var-set-frozen > command, as well as possible presense of the 'frozen' field > in the output of -varobj-create. You've lost me. This is plain text documentation for a command which you want to implement now but populate later. Something like: (gdb) -list-features ^done,features=[] AFAICS it won't currently return 'frozen-varobjs. Since everyone seems agreeable to the general idea why not just submit when the patch (source and documentation) are complete? -- Nick http://www.inet.net.nz/~nickrob