Re: probing GDB for MI versions

Bob Rossi
2004-10-06T17:36:24Z

On Wed, Oct 06, 2004 at 01:24:03PM -0400, Daniel Jacobowitz wrote:
> On Wed, Oct 06, 2004 at 01:21:38PM -0400, 'Bob Rossi' wrote:
> > I guess the bottom line is, I already have a parser that is capable of
> > dealing with a specific version of MI's output. I don't want to start up
> > MI with an adhoc parser, just to figure out what real parser I should
> > use. This seems not correct to me, and I guess it's the issue to deal
> > with.
>
> You've got a hammer and are attempting to create a nail. It seems
> eminently correct to me, and to Dave too I think.

Unfortunately, I don't understand what this means. Could you please
explain?

I want to make one thing clear, Eli's suggesting of making an MI command
that returns the supported MI versions has one problem. We are adding a
command to an MI protocol that can not be understood by a program that
can speak a protocol. The program must,

1. Have a parser that understands the protocol it wants to speak
(obvious and easy to get)
2. Have a parser that understands all future non invented protocols
of the MI output syntax, and will be capable of parsing the current
and future protocols to get the information it needs.
(mostly not possible)

Will someone explain to me how they expect to write a parser capable of
getting some information out of MI2, but prove to me that it will work
with MI100.

Thanks,
Bob Rossi