From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19145 invoked by alias); 6 Oct 2004 11:50:57 -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 19120 invoked from network); 6 Oct 2004 11:50:54 -0000 Received: from unknown (HELO NUTMEG.CAM.ARTIMI.COM) (217.40.111.177) by sourceware.org with SMTP; 6 Oct 2004 11:50:54 -0000 Received: from mace ([192.168.1.25]) by NUTMEG.CAM.ARTIMI.COM with Microsoft SMTPSVC(6.0.3790.0); Wed, 6 Oct 2004 12:50:34 +0100 From: "Dave Korn" To: "'Bob Rossi'" , "'Eli Zaretskii'" Cc: Subject: RE: probing GDB for MI versions Date: Wed, 06 Oct 2004 12:13:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <20041006113916.GC11747@white> Message-ID: X-OriginalArrivalTime: 06 Oct 2004 11:50:34.0517 (UTC) FILETIME=[B0594450:01C4AB9A] X-SW-Source: 2004-10/txt/msg00121.txt.bz2 > -----Original Message----- > From: gdb-owner On Behalf Of Bob Rossi > Sent: 06 October 2004 12:39 > Unfortunately this topic is on two different threads. I feel > badly that I > am wasting your time here with bad descriptions of the > "catch-22". This > is to help make my opinion clear on why it is a "catch-22" and not > possible. > > The front end has parsers for different versions of GDB's > MI protocol. > The parser for MI2 may not work for the MI3 protocol. > The parser for the MI3 protocol may not work for the MI2 protocol. > The front end *can not* start up GDB just by using -interpreter=mi > because it doesn't know what parser to use in this situation. > Can we agree on this point for starters? No, we can't. As long as the output from the -mi-version MI command stays in the same format, you can always parse that and determine which version to use. Everything else can change. You can start up with an utterly minimal, unintelligent parser, that knows nothing except how to send a -mi-version command and parse the output; that parser can then direct one of your version-dependent parsers to take over. cheers, DaveK -- Can't think of a witty .sigline today....