This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA/controversial] move bp by line number past the prologue
- From: Kevin Buettner <kevinb at redhat dot com>
- To: Joel Brobecker <brobecker at gnat dot com>, gdb-patches at sources dot redhat dot com
- Date: Thu, 29 Aug 2002 13:16:35 -0700
- Subject: Re: [RFA/controversial] move bp by line number past the prologue
- References: <20020829181524.GC971@gnat.com>
On Aug 29, 11:15am, Joel Brobecker wrote:
> 2002-08-29 Jim Ingham <jingham@apple.com>
>
> * linespec.c (decode_line_1): Skip the function prologue if
> funfirstline is set. Changes the behavior of the break command
> to skip the function prologue when breaking by line number.
Joel,
My opinion is that this is a reasonable change providing that we
still have a mechanism for setting a breakpoint on the prologue.
When I want to do this I usually do ``b *foo'' instead of relying
on line numbers. (Usually I don't know the line number anyway.)
So, I have no objection to this patch so long as it doesn't change
the present behavior of ``b *foo''.
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.)
Kevin