From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27483 invoked by alias); 3 Oct 2004 17:01: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 27464 invoked from network); 3 Oct 2004 17:01:04 -0000 Received: from unknown (HELO lakermmtao09.cox.net) (68.230.240.30) by sourceware.org with SMTP; 3 Oct 2004 17:01:04 -0000 Received: from white ([68.9.64.121]) by lakermmtao09.cox.net (InterMail vM.6.01.03.04 201-2131-111-106-20040729) with ESMTP id <20041003170103.HRCD4976.lakermmtao09.cox.net@white> for ; Sun, 3 Oct 2004 13:01:03 -0400 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1CE9jM-0001r0-00 for ; Sun, 03 Oct 2004 13:01:04 -0400 Date: Sun, 03 Oct 2004 17:15:00 -0000 From: Bob Rossi To: GDB Subject: probing GDB for MI versions Message-ID: <20041003170104.GC7030@white> Mail-Followup-To: GDB Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i X-SW-Source: 2004-10/txt/msg00028.txt.bz2 Hi, I want to figure out the best way to probe GDB for the versions of MI that it supports. If you know of a better way than the one I'm suggesting below, please let me know. I want to add a --mi-protocols flag to GDB, and when it is invoked with this flag, the only thing that it will output is the versions of MI that it supports each, on it's own line. For example, gdb --mi-protocols MI1 MI2 MI3 What does everyone think? With this command, it would be safe to say that I could always probe GDB to figure out what version of MI the front end should use with the current GDB. The only problem with this approach is that it obviously won't work for GDB's before this command was implemented. However, in that case, the user can either assume MI1 (if that's the only publically released version) or they can try MI2. Thanks, Bob Rossi