From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3225 invoked by alias); 30 Sep 2004 06:36:19 -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 3213 invoked from network); 30 Sep 2004 06:36:17 -0000 Received: from unknown (HELO smtp.hispeed.ch) (62.2.95.247) by sourceware.org with SMTP; 30 Sep 2004 06:36:17 -0000 Received: from indel.ch (217-162-27-127.dclient.hispeed.ch [217.162.27.127]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with SMTP id i8U6aGiV002345 for ; Thu, 30 Sep 2004 08:36:17 +0200 Received: from fabi.indel.ch [192.168.1.19] by indel.ch [127.0.0.1] with SMTP (MDaemon.v2.7.SP5.R) for ; Thu, 30 Sep 2004 08:34:05 +0200 Message-Id: <5.2.0.9.1.20040930082856.01cf3990@NT_SERVER> X-Sender: cenedese@NT_SERVER (Unverified) Date: Thu, 30 Sep 2004 06:36:00 -0000 To: gdb@sources.redhat.com From: Fabian Cenedese Subject: Re: MI documentation In-Reply-To: <20040929173133.GB1054@white> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-MDaemon-Deliver-To: gdb@sources.redhat.com X-Return-Path: cenedese@indel.ch X-SW-Source: 2004-09/txt/msg00262.txt.bz2 >I was wondering how GDB documents the different versions of MI. For >instance, how do you know what MI commands are available with >specific versions of MI? What fields do the commands output for >specific versions? What asynchronous notifications are possibly outputted >with MI version 1,2,3? I think the way to go is the probing of each needed command. If it's available the frontend can use it, if not the frontend needs a fallback. This is done e.g. in the remote protocol. If the vCont command is not implemented the simpler s and c commands are used. This is somehow similar to the MI. If the tagged commands are not implemented (older gdb) the untagged commands can be used, even with less reliability. So THE ONE version number is not really usefull as you also stated earlier. But I don't know how a frontend can _ask_ what async notifications could come. bye Fabi