Re: probing GDB for MI versions

'Bob Rossi'
2004-10-19T13:20:00Z

On Sat, Oct 16, 2004 at 07:41:32PM +0200, Eli Zaretskii wrote:
> > Date: Sat, 16 Oct 2004 11:46:11 -0400
> > From: 'Bob Rossi' <bob@brasko.net>
> > Cc: gdb@sources.redhat.com
> >
> > You think that GDB does and will only test one version of the MI
> > protocol.
>
> It's not what I think, it's what Andrew said was the policy.

He did? I thought he said "who knows", meaning he didn't know. How could
he create policy on this if he doesn't know.

>>> * Will GDB support more than one stable MI protocols for a CVS
>>> snapshot?
Who knows,

> > * Will GDB support more than one stable MI protocols for an official release?
> > In the past GDB tested both mi1 and mi2 so that that stage they were
> > probably described as "supported". Now that only mi2 is tested, nad mi1 is
> > deprecated, your call.
> >
> > With this in mind, I do not think it is OK to print the latest stable
> > version only. It does not tell the front end what other versions could
> > be stable.
>
> IIRC, MI1's tests were removed from the CVS as soon as MI2 was deemed
> stable enough. So this example doesn't conflict with what I said.
>
> Anyway, I already suggested to have a list of versions printed at
> startup time, if you still think several tested versions of MI will be
> available. We seem to go in circles since then.

Yes, I understand.

If GDB is going to support 1 stable version of the MI protocol at a time
then just have it print the version on startup. There is no negotiation
that needs to take place.

If GDB is going to support multiple stable versions of the MI protocol
at a time, then have it print all of the versions like you suggested.
Also, above what you suggested, I think the front end should be able to
select the version it wants from the list. Is this OK?

I'd like to work on this patch as soon as possible, so that I can start
using it. Is the multiple stable version approach with negotiation OK?

Thanks,
Bob Rossi