From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29082 invoked by alias); 26 Sep 2011 06:33:33 -0000 Received: (qmail 29069 invoked by uid 22791); 26 Sep 2011 06:33:32 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 26 Sep 2011 06:33:13 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p8Q6XCwi014885 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 26 Sep 2011 02:33:12 -0400 Received: from host1.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p8Q6XASA027839 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 26 Sep 2011 02:33:11 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p8Q6X9Dg001364; Mon, 26 Sep 2011 08:33:09 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p8Q6X8tI001363; Mon, 26 Sep 2011 08:33:08 +0200 Date: Mon, 26 Sep 2011 06:33:00 -0000 From: Jan Kratochvil To: Jon Grant Cc: gdb@sourceware.org Subject: Re: gdb backtrace include library as well as symbol name Message-ID: <20110926063307.GA1031@host1.jankratochvil.net> References: <4E7FAB5E.5020705@jguk.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E7FAB5E.5020705@jguk.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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/msg00113.txt.bz2 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