From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11731 invoked by alias); 7 Oct 2004 09:04:53 -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 11714 invoked from network); 7 Oct 2004 09:04:51 -0000 Received: from unknown (HELO NUTMEG.CAM.ARTIMI.COM) (217.40.111.177) by sourceware.org with SMTP; 7 Oct 2004 09:04:51 -0000 Received: from mace ([192.168.1.25]) by NUTMEG.CAM.ARTIMI.COM with Microsoft SMTPSVC(6.0.3790.0); Thu, 7 Oct 2004 10:04:29 +0100 From: "Dave Korn" To: "'Bob Rossi'" Cc: "'Eli Zaretskii'" , Subject: RE: probing GDB for MI versions Date: Thu, 07 Oct 2004 10:56:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <20041006175117.GK12213@white> Message-ID: X-OriginalArrivalTime: 07 Oct 2004 09:04:29.0548 (UTC) FILETIME=[A72D6AC0:01C4AC4C] X-SW-Source: 2004-10/txt/msg00200.txt.bz2 > -----Original Message----- > From: 'Bob Rossi' [mailto:bob@brasko.net] > Sent: 06 October 2004 18:51 > Dave, can you write a piece of code that can take all of the output of > GDB, from when it starts until after it exists (only given this new MI > command), and return to me the currently supported interfaces? Yes, I can, but I'm not going to do it for you. Here's a hint, in shell terms: echo "-mi-version" | gdb | grep "Highest supported MI version is" | .... [you have to fill in the ... with some kind of sed or awk command] > Will this code work with MI5, MI6 and MI7. Since it is likely > that there will be syntax changes? As long as the body text of that string that you blindly search for remains the same, yes it will. cheers, DaveK -- Can't think of a witty .sigline today....