This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
about GDB/MI output syntax
- From: Remi Liu <remiliuzhibin at gmail dot com>
- To: gdb at sourceware dot org
- Date: Fri, 29 Jun 2012 14:21:25 +0800
- Subject: about GDB/MI output syntax
- References: <4FED4739.6060508@gmail.com>
Hi, GDB developpers:
I'm not sure whether it is too presumptuous to ask the question directly
to you. But I am really confused about the MI output syntax.
I've taken over a front-end of GDB. I should make it to support new
version GDB, GDB 7. And the version of GDB I use is 7.4, unknown release.
In the GDB document, section 27.2.2, the output definition is
output ==>
( out-of-band-record )* [ result-record ] "(gdb)" nl
But after I sent a MI command like
4-exec-run
The output I got is
=thread-group-started,id=”i1”,pid=”9728”
=thread-created,id=”1”,group-id=”i1”
~”[New Thread 9728.0x23a8]\n”
4^running
*running,thread-id=”all”
(gdb)
The first 3 lines are out-of-band-record s, the 4th line is
result-record, what is the 5th line?
That make me puzzled. I'm not sure, I misunderstanded the document, or
the document should be updated?
Thank you for your time!
Looking forward to your response!
A developper of front-end of GDB