This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Adding line numbers to backtrace()
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: libc-alpha at sourceware dot org, Philip Prindeville <philipp_subx at redfish-solutions dot com>
- Date: Sat, 25 Aug 2012 00:45:32 +0200
- Subject: Re: Adding line numbers to backtrace()
- References: <5037DF4F.9080805@redfish-solutions.com><201208241800.24815.vapier@gentoo.org>
Mike Frysinger <vapier@gentoo.org> writes:
> the symbol table doesn't have line information, only the DWARF stuff does. i'm
> not sure if we have DWARF parsers already in the C library ...
The debugging sections are not loaded, so this cannot work. Use
addr2line(1) instead.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."