This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/RFA?] Should break FILE:LINENO skip prologue?
On Wed, 2008-01-09 at 12:34 -0800, Joel Brobecker wrote:
> First of all, thanks for your feedback.
>
> > If gdb decided not to LET me stop in the middle of the
> > prologue, I would be exceedingly pissed off.
>
> Everyone that I have polled so far told me that they used the
> "break *function_name" syntax to break at the beginning of the
> prologue. So GDB would not preventing you from doing it.
But I habitually do it both ways.
What about with a gui? The gui way of doing this
would be to click on the line with the opening curly-brace.
> I know that I will never be able to make everyone happy. I am
> just trying to make GDB more consistent and more useful to
> most average users, hopefully without hurting the low-level
> hackers too much.
Sure, I appreciate that -- just speaking up for the other viewpoint.
Don't forget my argument about prologue initializations.
Sometimes those involve function calls. A user might very
well want to stop AFTER some of those function calls, but
BEFORE others, so he could step into them.
Especially in C++, where some of them would be constructors.
> I'm hoping that the fact that breaking at
> the beginning of the prologue is sufficiently uncommon that
> the change will be bearable for those who relied on this
> behavior.
>
> But that being said, I also proposed if the pain level was perceived
> to be too high to introduce a switch that allows the user to select
> which behavior he wants...
>