Re: probing GDB for MI versions

Bob Rossi
2004-11-09T00:29:20Z

> Bob, I think this discussion would have been finished a long time
> ago if you had just submitted a patch for gdb that did what you
> wanted. the first attempt might get some discussion and need
> some modification before getting accepted, but that usually
> doesn't take very long.

I submitted a patch that allows GDB to handshake with the front end. It
is here http://sources.redhat.com/ml/gdb-patches/2004-11/msg00125.html

Basically, when started with -i=mi, GDB outputs all the tested versions
that it supports. If there is only 1, which has been the case so far,
GDB prints it and starts like normal in that mode. If there is more than
one, GDB waits for the front end to select a version and then will
continue with the version selected. The output looks like below,

$ gdb -i=mi
handshake={stable_protocols={mi2}}
~"GNU gdb 6.3.50_2004-11-08-cvs\n"
...

Any suggestions?

Thanks,
Bob Rossi