Re: Better tracebacks for C/C++ (and probably Ada & Fortran, too)
On Sun, Jul 26, 2009 at 12:42:46AM +0200, Florian Weimer wrote:
> I've built a small proof-of-concept library which creates Java-style
> tracebacks for C and C++ programs. In contrast to libc's backtrace()
> function, it uses DWARF debugging information when available, so the
> output is generally quite useful. Debugging information is extracted
> from the main executable and any loaded DSOs, or from the shadow debug
> tree in /usr/lib/debug.
Can't you do this just by forking addr2line and providing a shim layer
that knows shared library load offsets? That saves you the really
grotty bits.
--
Daniel Jacobowitz
CodeSourcery
Reply to: