Re: gdb backtrace include library as well as symbol name

Jan Kratochvil
2011-09-26T06:33:33Z

On Mon, 26 Sep 2011 00:29:50 +0200, Jon Grant wrote:
> Is there a way to get the "bt" command to output the library or ELF
> binary file that the symbol orginates in? Would be handy if this
> could even be the default:

Yes, this is common RFE. It was discussed in the thread:
Re: [patch] GDB 7.2: new feature for "backtrace" that cuts path to file (remain filename)
http://sourceware.org/ml/gdb-patches/2011-07/msg00796.html

> #0 0xb7773424 in __kernel_vsyscall ()
> #0 Doesn't show lib. I think this is glibc.

It is Linux kernel provided [vdso], it has DWARF info.

Regards,
Jan