From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 822 invoked by alias); 18 Dec 2006 15:47:48 -0000 Received: (qmail 728 invoked by uid 22791); 18 Dec 2006 15:47:48 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 18 Dec 2006 15:47:40 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1GwKiI-0002OM-7G for gdb@sourceware.org; Mon, 18 Dec 2006 10:47:38 -0500 Date: Mon, 18 Dec 2006 15:47:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: MI fine-grained versioning Message-ID: <20061218154737.GA9119@nevyn.them.org> Mail-Followup-To: gdb@sourceware.org References: <200612181835.34025.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200612181835.34025.vladimir@codesourcery.com> User-Agent: Mutt/1.5.13 (2006-08-11) 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/msg00168.txt.bz2 On Mon, Dec 18, 2006 at 06:35:33PM +0300, Vladimir Prus wrote: > Yet another approach is to "detect" presence of feature by trying some commands, > or by trying commands with some new options, or by constructing more contrived test > cases. However that's troublesome. > > 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. > > Comments? If you want to do this, it sounds like this is the right way - compare to the qSupported I recently added for the remote protocol. I guess this is the logical place to add a list of supported MI versions, too... -- Daniel Jacobowitz CodeSourcery