This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: probing GDB for MI versions
- From: Bob Rossi <bob at brasko dot net>
- To: Felix Lee <felix dot 1 at canids dot net>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 8 Nov 2004 19:28:53 -0500
- Subject: Re: probing GDB for MI versions
- References: <20041014153720.GA24199@white> <01c4b233$Blat.v2.2.2$873cc700@zahav.net.il> <20041015154016.GB25467@white> <01c4b376$Blat.v2.2.2$7cb58440@zahav.net.il> <20041016154611.GA26614@white> <01c4b3a7$Blat.v2.2.2$8533eea0@zahav.net.il> <20041019131953.GA30345@white> <20041019132824.GA20954@nevyn.them.org> <20041019135137.GB30345@white> <20041019192827.ED7CA502AD8@stray.canids>
> 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