From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32679 invoked by alias); 5 Jan 2005 02:34:38 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 32601 invoked from network); 5 Jan 2005 02:34:24 -0000 Received: from unknown (HELO lakermmtao11.cox.net) (68.230.240.28) by sourceware.org with SMTP; 5 Jan 2005 02:34:24 -0000 Received: from white ([68.9.64.121]) by lakermmtao11.cox.net (InterMail vM.6.01.04.00 201-2131-117-20041022) with ESMTP id <20050105023424.DHDV1657.lakermmtao11.cox.net@white>; Tue, 4 Jan 2005 21:34:24 -0500 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1Cm10C-0006jm-00; Tue, 04 Jan 2005 21:34:24 -0500 Date: Wed, 05 Jan 2005 02:34:00 -0000 From: Bob Rossi To: Jim Ingham Cc: Alain Magloire , Eli Zaretskii , Andrew Cagney , nick@nick.uklinux.net, gdb-patches@sources.redhat.com Subject: Re: MI handshaking Message-ID: <20050105023423.GE25675@white> Mail-Followup-To: Jim Ingham , Alain Magloire , Eli Zaretskii , Andrew Cagney , nick@nick.uklinux.net, gdb-patches@sources.redhat.com References: <20041117173205.GA5350@white> <200411180135.UAA14730@smtp.ott.qnx.com> <20041119192313.GA2202@white> <20050105013617.GB25675@white> <20050105015323.GC25675@white> <903D3836-89F2-4080-B978-3CFD9868B623@apple.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <903D3836-89F2-4080-B978-3CFD9868B623@apple.com> User-Agent: Mutt/1.3.28i X-SW-Source: 2005-01/txt/msg00023.txt.bz2 Here is a patch for the MI handshaking code. In case you forgot, here is how it acts from the client's perspective, $ ./gdb -i=mi handshake={stable_protocols={mi2}} ~"GNU gdb 6.3.50.20050105-cvs\n" ~"Copyright 2004 Free Software Foundation, Inc.\n" ~"GDB is free software, covered by the GNU General Public License, and you are\n" ~"welcome to change it and/or distribute copies of it under certain conditions.\n" ~"Type \"show copying\" to see the conditions.\n" ~"There is absolutely no warranty for GDB. Type \"show warranty\" for details.\n" ~"This GDB was configured as \"i686-pc-linux-gnu\"." ~"\n" ~"Setting up the environment for debugging gdb.\n" &"No symbol table is loaded. Use the \"file\" command.\n" &"No symbol table is loaded. Use the \"file\" command.\n" &".gdbinit:8: Error in sourced command file:\n" &"No breakpoint number 0.\n" (gdb) -handshake-info ^done,stable_protocol="2" (gdb) There are several things to note from this patch, 1. The new 'handshake-info' command. It is intended to give all the information that the user selected during the handshaking phase of the MI protocol. So far the only thing worth showing is the protocol version that was selected 2. If the GDB being queried was tested with and supports multiple protocols of MI, then GDB will block waiting for a response. 3. The handshaking protocol is not in the typical MI syntax. Is this OK? Finally, the testsuite will have to change before this commit is OK. Any pointers on how to add the 'handshake={stable_protocols={mi2}}' to every testcase? Thanks, Bob Rossi