Re: [RFA/controversial] move bp by line number past the prologue

Michael Snyder
2002-08-29T22:16:11Z

Kevin Buettner wrote:
>
> On Aug 29, 4:33pm, Andrew Cagney wrote:
>
> > > I've reread the thread in which this matter was discussed earlier
> > > (i.e, the "[RFC] breakpoints and function prologues" messages). Given
> > > that there was such disagreement before, I doubt that everyone will
> > > agree with my point of view. If this turns out to be the case, might
> > > I suggest a user settable option for controlling whether setting a
> > > breakpoint by line number will always cause the prologue to be
> > > skipped? That way both sides get the behavior they want. (GUIs can
> > > set the desired behavior at initialization time.)
> >
> > GUI and CLI behavior should be kept independant. Running GDB under a
> > GUI, should not affect the CLI.
>
> Perhaps a different interface is needed for the GUI to use?

I think I would prefer that. In fact, in order of preference,
I would prefer:

1) Teach the GUI users that the open curly brace represents the
prologue.
2) see 1.
3) see 1.
4) Provide an interface for GUIs to skip the prologue in this context.
5)....
....
...
...
99) Change the command line behavior.