From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8974 invoked by alias); 28 May 2009 13:57:50 -0000 Received: (qmail 8963 invoked by uid 22791); 28 May 2009 13:57:47 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp.nokia.com (HELO mgw-mx06.nokia.com) (192.100.122.233) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 May 2009 13:57:40 +0000 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx06.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n4SDvMEK015019 for ; Thu, 28 May 2009 16:57:30 +0300 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 28 May 2009 16:57:34 +0300 Received: from mgw-sa02.ext.nokia.com ([147.243.1.48]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 28 May 2009 16:57:34 +0300 Received: from gar.localnet (bettdhcp167194.europe.nokia.com [172.25.167.194]) by mgw-sa02.ext.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n4SDvYcD008173 for ; Thu, 28 May 2009 16:57:34 +0300 From: =?iso-8859-1?q?Andr=E9_P=F6nitz?= To: gdb@sourceware.org Subject: Re: GDB frontends, MI-speak and object notation Date: Thu, 28 May 2009 13:57:00 -0000 User-Agent: KMail/1.11.2 (Linux/2.6.28-11-generic; KDE/4.2.2; i686; ; ) References: <87d49tv3z2.fsf@sphinx.net.ru> <6D19CA8D71C89C43A057926FE0D4ADAA077E6FF0@ecamlmw720.eamcs.ericsson.se> In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA077E6FF0@ecamlmw720.eamcs.ericsson.se> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905281557.37805.andre.poenitz@nokia.com> X-Nokia-AV: Clean Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-05/txt/msg00180.txt.bz2 On Thursday 28 May 2009 15:31:42 Marc Khouzam wrote: > > > I wonder how other front-end developers handle GDB/MI output messages. > > In the code I'm working on, regular expressions are used to parse MI > > messages and extract certain values from them. This is pretty > > straightforward to write, but doesn't seem to fully use the > > of MI-speak, and lacks the spirit of MI. I'm > > reviewing > > means of mapping MI (which seems to be a subset of JSON with a few > > cosmetic differences and exceptions) to object-like > > structures so I can > > work with it on a higher level. Has anyone had similar ideas? > > Yes, in Eclipse we parse the MI output into a hierarchy of classes > following the MI specification. I agree with you that using > regular expression is loosing the value of MI. Same for Qt Creator. And I also think that regular expressions is not a good long-term solution. Andre'