From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3007 invoked by alias); 18 Apr 2014 10:46:19 -0000 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 Received: (qmail 2998 invoked by uid 89); 18 Apr 2014 10:46:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-pa0-f48.google.com Received: from mail-pa0-f48.google.com (HELO mail-pa0-f48.google.com) (209.85.220.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 18 Apr 2014 10:46:17 +0000 Received: by mail-pa0-f48.google.com with SMTP id hz1so1363214pad.21 for ; Fri, 18 Apr 2014 03:46:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=yod3I8fv+3ZzrRQRcNwczvTBr7zEzbgfvE0RmluuIbE=; b=ZEsZ/curuKJpcywwHPFyL3iu6/AGuZomtyQ/B3am86N8DBDi4hxlylKWXwuZfBf78+ 5O6vuMfzTThoXAkXz4gFvY4i24ITJGwu1kHT/Jnj0TKyG/B6MFlYvW2HiTH3AkVRhXIA lvtgRqoP38SmnqRGVu7OJs5YYkU4y/Q/H6xM9fmDRyCgZqGEAru7d5tPZsuuitEOSVBy TDmb7Q8b4Xdwx7bOCdBMxpBaCDX+rVOtME+VDYr2ZlpDR7pQplIpS6bR6aezY1HWg5/m O71N6v3RH9hQs3kp9JqMEyR1BHBf4J9px45y2dtOXde6iNfs+gyWYHGrpEMT3cm+z1EG Hkwg== X-Gm-Message-State: ALoCoQk8wzeA5TMi/Z6wcGB6SFwHI8a1qtfNLY0tAq3O2cdXlXHgOwZxoekhNdPPnqkyWsSxhwhg X-Received: by 10.66.144.227 with SMTP id sp3mr21286568pab.100.1397817975449; Fri, 18 Apr 2014 03:46:15 -0700 (PDT) Received: from linux (ip68-9-64-242.ri.ri.cox.net. [68.9.64.242]) by mx.google.com with ESMTPSA id h6sm59058823pbl.75.2014.04.18.03.46.13 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 18 Apr 2014 03:46:14 -0700 (PDT) Date: Fri, 18 Apr 2014 13:11:00 -0000 From: Bob Rossi To: Vladimir Prus Cc: Andrew Burgess , gdb@sourceware.org Subject: Re: MI async status output Message-ID: <20140418104619.GA26892@linux> References: <20140409210803.GA3166@linux> <5346B226.40209@cs.msu.su> <20140410201259.GA15060@linux> <5347BD84.5030200@broadcom.com> <20140412002538.GA27657@linux> <5350E049.9070705@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5350E049.9070705@codesourcery.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00059.txt.bz2 On Fri, Apr 18, 2014 at 12:20:25PM +0400, Vladimir Prus wrote: > On 12.04.2014 04:25, Bob Rossi wrote: > > >3) > > +download,{section=".interp",section-size="28",total-size="2466"} > > ^ (, eaten here) > > async-output ==> > > async-class ( "," result )* > > > >4) Error here: result must start with a variable name. > > +download,{section=".interp",section-size="28",total-size="2466"} > > ^ (syntax error) > > result ==> > > variable "=" value > > variable ==> > > string > > > >Did I find a bug or is this well known behavior of GDB and MI? > > > >If it's well known behavior, can anyone explain it? It's possible that > >result could be just a 'value' instead of 'variable = value'. In this > >case that would solve the problem perhaps. > > whereas MI has grammar, the fact that actual output does not always match the > grammar is well known. This specific problem was not known to me. > > It is obviously possible to fix in a parser. It's also possible to fix in GDB, > but as usual the question of what existing frontends might depend on this behaviour. Thanks for the response. I'm writing a new grammar that will be open source that handles as many possible outputs that GDB outputs, for as many possible GDB versions. I'm writing unit and system tests to validate this effort. I'm taking notes every time i have to modify the parser to detail the reasons why. When I'm done, perhaps we can update GDB's manual with the new grammar that I constuct, considering the one in the manual is just plain wrong. Thanks, Bob Rossi