This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


> 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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]