From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5979 invoked by alias); 24 Aug 2004 19:33:49 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5971 invoked from network); 24 Aug 2004 19:33:49 -0000 Received: from unknown (HELO barry.mail.mindspring.net) (207.69.200.25) by sourceware.org with SMTP; 24 Aug 2004 19:33:49 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by barry.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1Bzh2y-0001M5-00; Tue, 24 Aug 2004 15:33:32 -0400 Received: from mindspring.com (localhost [127.0.0.1]) by berman.michael-chastain.com (Postfix) with SMTP id 0CD224B102; Tue, 24 Aug 2004 15:33:30 -0400 (EDT) Date: Tue, 24 Aug 2004 19:33:00 -0000 From: Michael Chastain To: gdb-patches@sources.redhat.com, bob@brasko.net Subject: Re: GDB/MI Output syntax Message-ID: <412B980A.nailFLQ1QDS6L@mindspring.com> References: <20040824191931.GC17542@white> In-Reply-To: <20040824191931.GC17542@white> User-Agent: nail 10.8 6/28/04 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00661.txt.bz2 Bob Rossi wrote: > -@code{@var{async-record} | @var{stream-record}} > +@code{( @var{async-record} | @var{stream-record} ) @var{nl}} I'm dubious about this. stream-record does not have an NL terminator and needs one, yes. But async-record already gets an NL terminator in the grammar and does not need a second one. async-record -> exec-async-output | status-async-output | notify-async-output exec-async-output -> [token] "*" async-output async-output -> async-class ("," result)* nl For example, gdb.mi/gdb669.exp gives: # gdb.log excerpt ~"[Thread debugging using libthread_db enabled]\n" ~"[New Thread 8192 (LWP 26606)]\n" ~"[Switching to Thread 8192 (LWP 26606)]\n" 000*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={addr="0x0804852d",func="main",args=[{name="argc",value="1"},{name="argv",value="0xbffff814"}],file="/berman/fsf/_today_/source/gdb/HEAD/src/gdb/testsuite/gdb.mi/pthreads.c",line="81"} (gdb)