From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26528 invoked by alias); 5 Oct 2004 09:03:05 -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 26477 invoked from network); 5 Oct 2004 09:03:03 -0000 Received: from unknown (HELO balder.inter.net.il) (192.114.186.15) by sourceware.org with SMTP; 5 Oct 2004 09:03:03 -0000 Received: from zaretski ([80.230.155.207]) by balder.inter.net.il (Mirapoint Messaging Server MOS 3.3.7-GR) with ESMTP id DUT64873 (AUTH halo1); Tue, 5 Oct 2004 11:02:49 +0200 (IST) Date: Tue, 05 Oct 2004 09:10:00 -0000 From: "Eli Zaretskii" To: Bob Rossi Message-ID: <01c4aab9$Blat.v2.2.2$c96dbb60@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 CC: g@white, gdb@sources.redhat.com In-reply-to: <20041004131252.GA8121@white> (message from Bob Rossi on Mon, 4 Oct 2004 09:12:52 -0400) Subject: Re: probing GDB for MI versions Reply-to: Eli Zaretskii References: <20041003170104.GC7030@white> <01c4a9cf$Blat.v2.2.2$5a064020@zahav.net.il> <20041004131252.GA8121@white> X-SW-Source: 2004-10/txt/msg00072.txt.bz2 > Date: Mon, 4 Oct 2004 09:12:52 -0400 > From: Bob Rossi > Cc: gdb@sources.redhat.com > > Yes, I understand, that was my first idea. However, you can see that > it is a "catch 22". If you do not know what version of MI to start GDB > with, than you can not understand how to parse the output of the MI > commands. I don't see any catch: the output of this specific command could be made very simple so that it will not need any parsing, just some trivial string matching or at most regexps. You will need similar machinery for parsing the output of the command-line switch you suggested. > > To solve that, a front end that is willing to support old versions of > > GDB will need to have a database of old GDB versions and the MI > > versions they supported. > > I don't see what the GDB versions have to do with, am I missing > something? I am only interested in the MI versions. New MI versions always come with new GDB versions, right?