From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6418 invoked by alias); 18 Dec 2006 19:52:20 -0000 Received: (qmail 6389 invoked by uid 22791); 18 Dec 2006 19:52:19 -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; Mon, 18 Dec 2006 19:52:13 +0000 Received: from kahikatea.snap.net.nz (p202-124-124-222.snap.net.nz [202.124.124.222]) by viper.snap.net.nz (Postfix) with ESMTP id 31F6E3D857D; Tue, 19 Dec 2006 08:53:35 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id B320ABE3D3; Tue, 19 Dec 2006 08:47:36 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17798.61527.726165.630956@kahikatea.snap.net.nz> Date: Mon, 18 Dec 2006 19:52:00 -0000 To: Bob Rossi Cc: Vladimir Prus , gdb@sources.redhat.com Subject: Re: MI fine-grained versioning In-Reply-To: <20061218153921.GY20942@cox.net> References: <200612181835.34025.vladimir@codesourcery.com> <20061218153921.GY20942@cox.net> X-Mailer: VM 7.19 under Emacs 22.0.91.19 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-12/txt/msg00170.txt.bz2 > > How about adding new MI command that returnes list of supported > > fine-grained features. For example: > > > > -list-features > > ^done,result=["frozen_variables","info_path_expression"] > > > > The MI manual would contain a section listing all feature names and > > briefly documenting them. > > Great idea! > > There are a few gothcha's. For instance, each command can support > several parameters, so you might want to report on that. But more > tricky, is when a command adds an output field that the front end cares > about. In the manual we already explain that front ends should be able to handle extra fields in MI output. The front end would need to do this just to handle -list-features. > An example of this would be that the -break-list command has > always existed, but the -break-list command added fullpath functionality > later on it it's life. How would you handle this, if at all? Clearly it can't be retrospective. I think it's a good idea and would be more convenient than bumping the level for small changes. -- Nick http://www.inet.net.nz/~nickrob