This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb backtrace include library as well as symbol name


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]