public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gdb backtrace include library as well as symbol name
@ 2011-09-25 22:30 Jon Grant
  2011-09-26  6:33 ` Jan Kratochvil
  0 siblings, 1 reply; 4+ messages in thread
From: Jon Grant @ 2011-09-25 22:30 UTC (permalink / raw)
  To: gdb

Hello

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:

Short example follows where I kill a process to show the backtrace 
feature in use on my Ubuntu machine.

GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2


$ ulimit -c unlimited

$ /usr/bin/totem &
[1] 3581

$ kill -11 3581
[1]+  Segmentation fault      (core dumped) totem
$ gdb /usr/bin/totem core


<snip>
Core was generated by `totem'.
Program terminated with signal 11, Segmentation fault.
#0  0xb7817424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7773424 in __kernel_vsyscall ()
#1  0xb665ff76 in poll () from /lib/i386-linux-gnu/libc.so.6
#2  0xb688084b in g_poll () from /lib/i386-linux-gnu/libglib-2.0.so.0
#3  0xb68701af in ?? () from /lib/i386-linux-gnu/libglib-2.0.so.0
#4  0xb687092b in g_main_loop_run () from 
/lib/i386-linux-gnu/libglib-2.0.so.0
#5  0xb6e6bc39 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#6  0xb77ada5f in main ()


#0 Doesn't show lib. I think this is glibc.

#6 Doesn't show the totem binary "/usr/bin/totem"

Please include my email address in any replies.

Best regards, Jon

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-10-05 18:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-25 22:30 gdb backtrace include library as well as symbol name Jon Grant
2011-09-26  6:33 ` Jan Kratochvil
2011-09-26 15:36   ` Joel Brobecker
2011-10-05 18:47     ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).