From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8430 invoked by alias); 12 Nov 2004 22:59:05 -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 8370 invoked from network); 12 Nov 2004 22:59:00 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 12 Nov 2004 22:59:00 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iACMwsDx005658 for ; Fri, 12 Nov 2004 17:58:55 -0500 Received: from localhost.redhat.com (to-dhcp51.toronto.redhat.com [172.16.14.151]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iACMwsr14686; Fri, 12 Nov 2004 17:58:54 -0500 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id E2918129D8C; Fri, 12 Nov 2004 17:57:32 -0500 (EST) Message-ID: <41953FDA.7030708@gnu.org> Date: Fri, 12 Nov 2004 22:59:00 -0000 From: Andrew Cagney User-Agent: Mozilla Thunderbird 0.8 (X11/20041020) MIME-Version: 1.0 To: Alain Magloire Cc: Bob Rossi , Nick Roberts , gdb-patches@sources.redhat.com Subject: Re: MI handshaking References: <200411120344.WAA24018@smtp.ott.qnx.com> In-Reply-To: <200411120344.WAA24018@smtp.ott.qnx.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-11/txt/msg00274.txt.bz2 Alain Magloire wrote: >>(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] Yes, thanks for the correction with ``=''. But not ``versions=[mi1,mi2,mi3]'' that's too much and misleading information. I think the objective here needs to be to provide as much information as possible about what version of GDB and MI is running. Hence the: version="mi2" (where hopefully VERSION version is a member of STABLE :-) although strictly speaking it should probably be: mi-version="mi2" just in case there's later a gdb-version="6.3.50" etc. Andrew > As the doc is saying, notify-async contains supplementary information > that the client should handle. > > Note: did not look at the patch.