[PATCH 4/5] Support backtracing through elfutils (#70746)

Jan Kratochvil jan.kratochvil at redhat.com
Wed Oct 30 12:14:33 CET 2013

On Wed, 30 Oct 2013 11:02:25 +0100, Mark Wielaard wrote:
> I would love to promote elfutils for that. But you could just
> use backtrace () and backtrace_symbols () if the C library provides them.

It is unfortunately not so easy, I wrote there lower in the mail:

> On Wed, 30 Oct 2013 08:58:00 +0100, Jan Kratochvil wrote:
> > libgcc backtrace_symbols() can do some "addr->elfsymbol" but it resolves only
> > symbols in .dynsym (exported ones), not from .symtab, therefore also not from
> > separate .debug files.  In Fedora backtrace_symbols() does everything it can
> > if you do not have xorg-x11-server-debuginfo.rpm installed.


One needs to use gcc -rdynamic to output any such symbols.


More information about the xorg-devel mailing list