This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/RFA?] Should break FILE:LINENO skip prologue?
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: uweigand at de dot ibm dot com, brobecker at adacore dot com, msnyder at specifix dot com, mark dot kettenis at xs4all dot nl, gdb-patches at sourceware dot org
- Date: Wed, 16 Jan 2008 06:21:16 +0200
- Subject: Re: [RFC/RFA?] Should break FILE:LINENO skip prologue?
- References: <200801152140.m0FLeMha003566@d12av02.megacenter.de.ibm.com> <jebq7mu0zi.fsf@sykes.suse.de>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Andreas Schwab <schwab@suse.de>
> Cc: eliz@gnu.org, brobecker@adacore.com (Joel Brobecker),
> msnyder@specifix.com, mark.kettenis@xs4all.nl,
> gdb-patches@sourceware.org
> Date: Wed, 16 Jan 2008 00:23:45 +0100
>
> "Ulrich Weigand" <uweigand@de.ibm.com> writes:
>
> > The set of valid expressions varies with the language, but none of
> > them support any string of the form FILENAME:FUNCTION as expression.
> > However, for *some* languages (e.g. C, but not Ada), a function name
> > happens to be a valid expression that evaluates to the address of
> > that function. It is only due to that "accident" that
> > break *FUNCTION
> > does indeed set a breakpoint at the address of FUNCTION (assuming
> > the current language is C).
>
> 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?