This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: MI async status output
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: Bob Rossi <bob at brasko dot net>
- Cc: Andrew Burgess <aburgess at broadcom dot com>, <gdb at sourceware dot org>
- Date: Fri, 18 Apr 2014 17:11:12 +0400
- Subject: Re: MI async status output
- Authentication-results: sourceware.org; auth=none
- References: <20140409210803 dot GA3166 at linux> <5346B226 dot 40209 at cs dot msu dot su> <20140410201259 dot GA15060 at linux> <5347BD84 dot 5030200 at broadcom dot com> <20140412002538 dot GA27657 at linux> <5350E049 dot 9070705 at codesourcery dot com> <20140418104619 dot GA26892 at linux>
On 18.04.2014 14:46, Bob Rossi wrote:
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.
Is this a part of some larger 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.
That would be helpful; ideally we'd clearly mark, in the grammar, the
cases where actual GDB behaviour differs from desirable behaviour, so
that these can be eliminated if anybody starts MI3.
Though quite possibly, MI3 should just accept and produce JSON.
--
Vladimir Prus
CodeSourcery / Mentor Graphics
http://www.mentor.com/embedded-software/