From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16166 invoked by alias); 13 Nov 2008 13:42:13 -0000 Received: (qmail 16123 invoked by uid 22791); 13 Nov 2008 13:42:12 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 13 Nov 2008 13:41:19 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id mADDfH63024109 for ; Thu, 13 Nov 2008 08:41:17 -0500 Received: from pobox.stuttgart.redhat.com (pobox.stuttgart.redhat.com [172.16.2.10]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id mADDfGiC025528; Thu, 13 Nov 2008 08:41:16 -0500 Received: from host0.dyn.jankratochvil.net (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.stuttgart.redhat.com (8.13.1/8.13.1) with ESMTP id mADDfEx8015920; Thu, 13 Nov 2008 08:41:15 -0500 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.2) with ESMTP id mADDfEtd015982; Thu, 13 Nov 2008 14:41:14 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.2/Submit) id mADDfD62015979; Thu, 13 Nov 2008 14:41:13 +0100 Date: Thu, 13 Nov 2008 15:39:00 -0000 From: Jan Kratochvil To: Vladimir Prus Cc: gdb-patches@sources.redhat.com, Dodji Seketeli Subject: Re: [patch] MI: breakpoint "script" is a LIST Message-ID: <20081113134113.GA15321@host0.dyn.jankratochvil.net> References: <20081113130442.GA12991@host0.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-11/txt/msg00273.txt.bz2 On Thu, 13 Nov 2008 14:12:54 +0100, Vladimir Prus wrote: > Jan Kratochvil wrote: > > Nemiver could not parse the MI2 output. The list of commands is a `list', not > > a `tuple'. > > For how long this bug is here? Is the risk that existing frontend break higher than > inconvenience to keep the code as is? The current code does not comply to any generic MI parser as it violates the MI grammar http://sourceware.org/gdb/current/onlinedocs/gdb_26.html#SEC264 , as pointed out by Dodji. It may be compliant only to some hacky buggy parsers written specifically for each MI command. If we want to keep -break-list "script" to produce tuples we have to change it from current script={"silent","return"} to some script={line0="silent",line1="return"} which will IMO also break any existing buggy parsers. And GDB is now between major releases 6.8->6.9 which IMO means it does not have to keep bug-to-bug compatibility. Regards, Jan