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

Eli Zaretskii
2008-01-11T10:35:15Z

> From: Andreas Schwab <schwab@suse.de>
> Cc: Michael Snyder <msnyder@specifix.com>, gdb-patches@sourceware.org
> Date: Thu, 10 Jan 2008 10:29:31 +0100
>
> 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.

Agreed.