This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Debugging partially optimised code
- From: Tom Tromey <tromey at redhat dot com>
- To: Robert Lupton the Good <rhl at astro dot princeton dot edu>
- Cc: gdb at sourceware dot org
- Date: Thu, 07 Jul 2011 08:06:29 -0600
- Subject: Re: Debugging partially optimised code
- References: <612AB7BF-856F-4459-8DBA-D5060B4F1952@astro.princeton.edu> <m37h8566cg.fsf@fleche.redhat.com> <529D602C-2F86-4B9A-995D-676C9901B4BA@astro.princeton.edu>
>>>>> "Robert" == Robert Lupton the Good <rhl@astro.princeton.edu> writes:
Tom> Otherwise, if I were attacking this problem, I'd first redo my steps to
Tom> make sure I hadn't erred; then I would look at the debuginfo for the
Tom> library to try to understand why the breakpoint is being set there.
Robert> Any more hints on "look at the debuginfo for the library"? The
Robert> equivalent of .stabs, or something else?
Yes, I would use readelf to look at the DWARF for the library to see why
gdb thinks this line appears there.
Tom