From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3658 invoked by alias); 12 Nov 2004 03:44:49 -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 3634 invoked from network); 12 Nov 2004 03:44:42 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sourceware.org with SMTP; 12 Nov 2004 03:44:42 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id XAA21331 for ; Thu, 11 Nov 2004 23:08:42 -0500 Received: (from alain@localhost) by smtp.ott.qnx.com (8.8.8/8.6.12) with UUCP id WAA11664 for gdb-patches@sources.redhat.com; Thu, 11 Nov 2004 22:44:41 -0500 Message-Id: <200411120344.WAA11664@smtp.ott.qnx.com> Subject: Re: MI handshaking To: cagney@gnu.org (Andrew Cagney) Date: Fri, 12 Nov 2004 03:44:00 -0000 From: "Alain Magloire" Cc: bob@brasko.net (Bob Rossi), alain@qnx.com (Alain Magloire), nick@nick.uklinux.net (Nick Roberts), gdb-patches@sources.redhat.com In-Reply-To: <4193CB73.6070402@gnu.org> from "Andrew Cagney" at Nov 11, 2004 03:28:35 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-11/txt/msg00261.txt.bz2 > > (as is obvious, 6.3 is effectively out, I'm draining the queue) > > Bob Rossi wrote: > > BTW, here is an example of how it looks, > > > > $ ../../objdir3/gdb/gdb -i=mi > > mi_handshake={stable=mi2} > > ~"GNU gdb 6.3.50_2004-11-04-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" > > (gdb) > > > > I can obviously change the syntax of the output if it is desired. > > There should probably be a '~' or something like that, any suggestions? > > Hmm, it's async (or unprompted), has the hypothetical potential for > multiple values, and leaves us wondering which of those values it choose: > > *mi-handshake={version=mi2,stable=[mi2]} > > it should also appear after the copyright. > > Oh and testing ;-) > > Nick, Alain, comments? > Is it a good idea to make this an exec-async? There is really no state changes. Printing it in the console-stream long with the gdb version should be enough. But if async is desired, how about a notify-async instead. =mi-handshake,versions=[mi1,mi2,mi3],stable=[mi2] As the doc is saying, notify-async contains supplementary information that the client should handle. Note: did not look at the patch.