Re: [PATCH] Hooks still needed for annotations

Bob Rossi
2005-07-06T15:03:42Z

On Sun, Jul 03, 2005 at 12:39:16PM -0400, Daniel Jacobowitz wrote:
> On Wed, Jun 15, 2005 at 06:57:59PM -0400, Bob Rossi wrote:
> > > > > > Do you already use level 3, or could we simply just start stripping down
> > > > > > level 2?
>
> The point of introducing level 3 - a stripped down version of level 2 -
> was to transition clients to using it and then discard level 2, instead
> of having to find everyone using annotations and work out whether we
> broke them every time someone wants to strip something out of level 2.
> When everyone we care about is happy with level 3, we can kill level 2.
>
> Bob, sometimes I feel like you pick very strange things to label as
> "hard". What's hard about autodetecting the availability of annotate
> level 3? Or even doing it based on version number?

I just simply can't stand the thought of starting up GDB several times
to determine what the correct protocol the FE should use. This
doesn't seem necessary. Also, using the version number is strange, at
best. GDB is released at midpoint on a usual basis on many distro's.
Determining if GDB supports certain features by version number is not
accurately possible to do.

I submitted a patch a while back, that was related to MI. It was
supposed to allow a FE to handshake with GDB to determine the protocol
to use. I have a much simpler idea. Why don't I write up a patch that
would work like so,

gdb -i=mi2,a2,a3 ...
protocol=mi2
...

Basically, you could pass in an arbitrary amount of protocols that the
FE supports, in the order the FE would like to communicate. The first
thing GDB will print is the protocol it supports and will use. From then
on, everything is like normal.

Bob Rossi