This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: probing GDB for MI versions
"'Bob Rossi'" <bob@brasko.net> writes:
> Adding this new function -mi-version, will be adding the first command
> to the MI command set that is supposed to be used by a front end by
> *not* using an MI protocol. It is confusing and non-sensical to add the
> first MI command to the MI command set that can not be used by a front
> end that speaks the MI protocol.
That this command is most useful to a pre-parser deciding which parser
to invoke does not mean it can't be used, or isn't useful to that
full-fledged parser. A parser whose job was validating output (in the
testsuite, say) would want to and be able to exercise it, as would a
parser that wanted to verify that it was dealing with a version of MI
it understood - and it can do that within the parse tree and formal
structure of MI.
The way you are using a parser is entirely your own choice, not
dictated by the way MI is specified; as an example, we've talked about
generated parsers and hand-written parsers for the grammar, and I'm
sure radically different approaches are also feasable. MI neural net,
anyone?
- Nathan