This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] breakpoints and function prologues...
- From: Joel Brobecker <brobecker at gnat dot com>
- To: Jim Ingham <jingham at apple dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Mon, 22 Jul 2002 18:54:12 -0700
- Subject: Re: [RFC] breakpoints and function prologues...
- References: <1027384602.26926.ezmlm@sources.redhat.com> <1E541B00-9DDA-11D6-924E-00039379E320@>
Jim,
> I solved the problem a little differently, however. The fact is that
> decode_line_1 takes a funfirstline argument, which is supposed to tell
> it whether to move the breakpoint past the prologue. But it doesn't
> look at this argument in the case of setting a file:line breakpoint.
> So I just made it do that. I like this solution, because it unifies in
> concept the breakpoint moving done for function symbols and for
> file:line symbols (though as you see, the actual motion is handled by
> different pieces of code.)
>
> I attached that patch below.
Thanks for your feedback.
I must say I really prefer your patch over mine. I hope this patch will
be approved for inclusion.
--
Joel