From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4235 invoked by alias); 9 Nov 2004 00:29:20 -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 4122 invoked from network); 9 Nov 2004 00:29:04 -0000 Received: from unknown (HELO lakermmtao10.cox.net) (68.230.240.29) by sourceware.org with SMTP; 9 Nov 2004 00:29:04 -0000 Received: from white ([68.9.64.121]) by lakermmtao10.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20041109002859.SPO13256.lakermmtao10.cox.net@white>; Mon, 8 Nov 2004 19:28:59 -0500 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1CRJsT-0003Pj-00; Mon, 08 Nov 2004 19:28:53 -0500 Date: Tue, 09 Nov 2004 02:27:00 -0000 From: Bob Rossi To: Felix Lee Cc: gdb@sources.redhat.com Subject: Re: probing GDB for MI versions Message-ID: <20041109002853.GA13107@white> Mail-Followup-To: Felix Lee , gdb@sources.redhat.com References: <20041014153720.GA24199@white> <01c4b233$Blat.v2.2.2$873cc700@zahav.net.il> <20041015154016.GB25467@white> <01c4b376$Blat.v2.2.2$7cb58440@zahav.net.il> <20041016154611.GA26614@white> <01c4b3a7$Blat.v2.2.2$8533eea0@zahav.net.il> <20041019131953.GA30345@white> <20041019132824.GA20954@nevyn.them.org> <20041019135137.GB30345@white> <20041019192827.ED7CA502AD8@stray.canids> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041019192827.ED7CA502AD8@stray.canids> User-Agent: Mutt/1.3.28i X-SW-Source: 2004-11/txt/msg00073.txt.bz2 > Bob, I think this discussion would have been finished a long time > ago if you had just submitted a patch for gdb that did what you > wanted. the first attempt might get some discussion and need > some modification before getting accepted, but that usually > doesn't take very long. I submitted a patch that allows GDB to handshake with the front end. It is here http://sources.redhat.com/ml/gdb-patches/2004-11/msg00125.html Basically, when started with -i=mi, GDB outputs all the tested versions that it supports. If there is only 1, which has been the case so far, GDB prints it and starts like normal in that mode. If there is more than one, GDB waits for the front end to select a version and then will continue with the version selected. The output looks like below, $ gdb -i=mi handshake={stable_protocols={mi2}} ~"GNU gdb 6.3.50_2004-11-08-cvs\n" ... Any suggestions? Thanks, Bob Rossi