This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: GDB/MI Output syntax
- From: Michael Chastain <mec dot gnu at mindspring dot com>
- To: gdb-patches at sources dot redhat dot com, bob at brasko dot net
- Date: Tue, 24 Aug 2004 15:33:30 -0400
- Subject: Re: GDB/MI Output syntax
- References: <20040824191931.GC17542@white>
Bob Rossi <bob@brasko.net> 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)