From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4244 invoked by alias); 21 Aug 2004 20:21:34 -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 4235 invoked from network); 21 Aug 2004 20:21:33 -0000 Received: from unknown (HELO lakermmtao03.cox.net) (68.230.240.36) by sourceware.org with SMTP; 21 Aug 2004 20:21:33 -0000 Received: from white ([68.9.64.121]) by lakermmtao03.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040821202129.CVAR12724.lakermmtao03.cox.net@white>; Sat, 21 Aug 2004 16:21:30 -0400 Received: from bob by white with local (Exim 3.35 #1 (Debian)) id 1BycMk-0001y3-00; Sat, 21 Aug 2004 16:21:30 -0400 Date: Sat, 21 Aug 2004 20:21:00 -0000 From: Bob Rossi To: Felix Lee Cc: gdb@sources.redhat.com Subject: Re: GDB/XMI (XML Machine Interface) Message-ID: <20040821202130.GC7442@white> Mail-Followup-To: Felix Lee , gdb@sources.redhat.com References: <20040819234921.GA4966@white> <20040820103420.340A64D400C@stray.canids> <20040820125443.GB5703@white> <20040820183447.GA21565@nevyn.them.org> <20040820190622.BFA6B4D400C@stray.canids> <20040820190944.GA23331@nevyn.them.org> <20040820191958.225834D400C@stray.canids> <20040821123717.GB7138@white> <20040821192145.E5E14511B4A@stray.canids> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040821192145.E5E14511B4A@stray.canids> User-Agent: Mutt/1.3.28i X-SW-Source: 2004-08/txt/msg00276.txt.bz2 On Sat, Aug 21, 2004 at 12:21:44PM -0700, Felix Lee wrote: > Bob Rossi : > > I believe that making GDB output XML would almost make it > > scriptable. Someone writing in perl or java could quickly conjure up > > some commands and parse the output of GDB in a matter of minutes. > > what about MI makes you feel like gdb isn't scriptable now? MI > seems pretty easy to pull apart with regexps. That is ridiculous. Let me make something clear. In order to integrate GDB with, say perl, you would either 1. Have to write a parser. (regex, recursive decent) BTW, I guarantee the parser will have to be updated with every release of GDB. 2. Do nothing but use the information given to you. BTW, you will never ever have to worry about what GDB outputs, because it is irrelevant. You get the info you want, and you use it. Bob Rossi