stabs at function entry point?
Geoff Keating
geoffk@geoffk.org
Wed Mar 13 17:29:00 GMT 2002
> Date: Wed, 13 Mar 2002 14:19:26 -0800
> Cc: Geoff Keating <geoffk@geoffk.org>, gcc@gcc.gnu.org
> From: Jim Ingham <jingham@apple.com>
> Right, the only odd thing that happens is that if you do
>
> (gdb) info line *&function
>
> the line number returned is actually the last line of the previous
> function. While this is wrong, I don't think this is anywhere near as
> wrong as breaking on the line where the function is defined, and having
> it stop with the stack all wrong, etc... If you are stopping in the
> prologue, you are probably NOT doing source line debugging, after all.
> So why would you really care exactly what line this is?
... because if I am debugging a core dump, and I see that it's crashed
on the last line of some function, and it really crashed on the first
line of some other function, I'm likely to be confused.
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>
More information about the Gcc
mailing list