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?
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."