From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15885 invoked by alias); 18 Apr 2014 08:20:33 -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 15873 invoked by uid 89); 18 Apr 2014 08:20:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=AWL,BAYES_05 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 18 Apr 2014 08:20:31 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1Wb427-0002Qi-CP from Vladimir_Prus@mentor.com ; Fri, 18 Apr 2014 01:20:27 -0700 Received: from SVR-IES-FEM-02.mgc.mentorg.com ([137.202.0.106]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 18 Apr 2014 01:20:26 -0700 Received: from [172.30.88.69] (137.202.0.76) by SVR-IES-FEM-02.mgc.mentorg.com (137.202.0.106) with Microsoft SMTP Server id 14.2.247.3; Fri, 18 Apr 2014 09:20:25 +0100 Message-ID: <5350E049.9070705@codesourcery.com> Date: Fri, 18 Apr 2014 10:46:00 -0000 From: Vladimir Prus User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: Bob Rossi , Andrew Burgess CC: Subject: Re: MI async status output References: <20140409210803.GA3166@linux> <5346B226.40209@cs.msu.su> <20140410201259.GA15060@linux> <5347BD84.5030200@broadcom.com> <20140412002538.GA27657@linux> In-Reply-To: <20140412002538.GA27657@linux> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2014-04/txt/msg00058.txt.bz2 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. Bob, 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. -- Vladimir Prus CodeSourcery / Mentor Graphics http://www.mentor.com/embedded-software/