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

Eli Zaretskii
2008-01-16T18:49:07Z

> From: Andreas Schwab <schwab@suse.de>
> Cc: uweigand@de.ibm.com, brobecker@adacore.com, msnyder@specifix.com,
> mark.kettenis@xs4all.nl, gdb-patches@sourceware.org
> Date: Wed, 16 Jan 2008 10:13:28 +0100
>
> >> Note that the value of FUNCTION is even target dependent. On ppc64
> >> ordinary function symbols point to function descriptors, whereas code
> >> addresses have symbols that start with a '.'.
> >
> > Are you saying that "break *FUNCTION" will not work on a ppc64, even
> > in a C program?
>
> It works if you use the correct symbol. In the absence of debug
> information the non-dot symbol will give the wrong result.

Can you give an example? I'm not sure I'm following you. E.g., will
"break *main" work in a C program?

Or are you talking only about the case of missing debug info?