From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24958 invoked by alias); 25 Sep 2011 22:30:11 -0000 Received: (qmail 24887 invoked by uid 22791); 25 Sep 2011 22:30:08 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_GT,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-ww0-f43.google.com (HELO mail-ww0-f43.google.com) (74.125.82.43) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 25 Sep 2011 22:29:54 +0000 Received: by wwf27 with SMTP id 27so4934183wwf.12 for ; Sun, 25 Sep 2011 15:29:53 -0700 (PDT) Received: by 10.216.163.202 with SMTP id a52mr4919968wel.91.1316989793068; Sun, 25 Sep 2011 15:29:53 -0700 (PDT) Received: from [192.168.1.66] (93-97-63-88.zone5.bethere.co.uk. [93.97.63.88]) by mx.google.com with ESMTPS id o7sm28049529wbh.8.2011.09.25.15.29.51 (version=SSLv3 cipher=OTHER); Sun, 25 Sep 2011 15:29:52 -0700 (PDT) Message-ID: <4E7FAB5E.5020705@jguk.org> Date: Sun, 25 Sep 2011 22:30:00 -0000 From: Jon Grant User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13 MIME-Version: 1.0 To: gdb@sourceware.org Subject: gdb backtrace include library as well as symbol name Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-09/txt/msg00111.txt.bz2 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 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