Re: [RFC/RFA?] Should break FILE:LINENO skip prologue?

Andreas Schwab
2008-01-10T09:29:56Z

Joel Brobecker <brobecker@adacore.com> writes:

> A question that I asked myself was: Why does "break FUNCTION_NAME"
> skip the prologue and yet "break FILE:LINENO" (from clicking on the
> filename) doesn't?

That looks quite natural to me. If I request a breakpoint on a line I
want it to be placed as close as possible to that line. If I request a
breakpoint on a function, I want it to be set to the first interesting
point in that function.

Andreas.

--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃŸe 5, 90409 NÃ¼rnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."