From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12474 invoked by alias); 8 Oct 2004 08:40:16 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12466 invoked from network); 8 Oct 2004 08:40:14 -0000 Received: from unknown (HELO legolas.inter.net.il) (192.114.186.24) by sourceware.org with SMTP; 8 Oct 2004 08:40:14 -0000 Received: from zaretski (pns03-208-187.inter.net.il [80.230.208.187]) by legolas.inter.net.il (MOS 3.5.3-GR) with ESMTP id CTU39015 (AUTH halo1); Fri, 8 Oct 2004 10:40:07 +0200 (IST) Date: Fri, 08 Oct 2004 09:10:00 -0000 From: "Eli Zaretskii" To: "'Bob Rossi'" Message-ID: <01c4ad12$Blat.v2.2.2$1796ec80@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 CC: gdb@sources.redhat.com In-reply-to: <20041007224230.GA15177@white> (message from 'Bob Rossi' on Thu, 7 Oct 2004 18:42:30 -0400) Subject: Re: probing GDB for MI versions Reply-to: Eli Zaretskii References: <20041007145511.GA14573@white> <200410071614.MAA19648@smtp.ott.qnx.com> <20041007224230.GA15177@white> X-SW-Source: 2004-10/txt/msg00241.txt.bz2 > Date: Thu, 7 Oct 2004 18:42:30 -0400 > From: 'Bob Rossi' > Cc: Dave Korn , gdb@sources.redhat.com > > * Have GDB output it's last stable version of MI as the first thing > it outputs (subset of case above) Will this solution be satisfactory for you? That is, when invoked with the -interpreter=mi command-line switch, GDB will print the last stable version of the MI protocol it supports. This is actually the way many protocol negotiations start, and I don't see why we shouldn't behave the same. Note that a front end which wants to support older GDB versions will need to have a database of MI versions referenced by GDB versions, because the old GDB versions will not print the MI version. Are there any disadvantages to this solution?