From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8744 invoked by alias); 27 Oct 2009 20:03:58 -0000 Received: (qmail 8733 invoked by uid 22791); 27 Oct 2009 20:03:57 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Oct 2009 20:03:48 +0000 Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 6C2251C15F7C; Tue, 27 Oct 2009 21:03:46 +0100 (CET) Received: from localhost (dynscan2.mnet-online.de [192.168.1.215]) by mail.m-online.net (Postfix) with ESMTP id 52A5D90141; Tue, 27 Oct 2009 21:03:46 +0100 (CET) Received: from mail.mnet-online.de ([192.168.3.149]) by localhost (dynscan2.mnet-online.de [192.168.1.215]) (amavisd-new, port 10024) with ESMTP id JkKC-e+iDa9f; Tue, 27 Oct 2009 21:03:45 +0100 (CET) Received: from igel.home (DSL01.83.171.187.28.ip-pool.NEFkom.net [83.171.187.28]) by mail.mnet-online.de (Postfix) with ESMTP; Tue, 27 Oct 2009 21:03:45 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id A0BB010DB83; Tue, 27 Oct 2009 21:03:44 +0100 (CET) From: Andreas Schwab To: Bruce Korb Cc: Paul Pluzhnikov , gdb@sourceware.org, gdb@gnu.org Subject: Re: How does one get static procedure names? References: <668c430c0910271132j48e478d6s88aeb51282229402@mail.gmail.com> <8ac60eac0910271140n54923a92u74bd2a909ed05696@mail.gmail.com> <668c430c0910271156m29e5770dyec6de9afa84f01f7@mail.gmail.com> X-Yow: There's a lot of BIG MONEY in MISERY if you have an AGENT!! Date: Tue, 27 Oct 2009 20:10:00 -0000 In-Reply-To: <668c430c0910271156m29e5770dyec6de9afa84f01f7@mail.gmail.com> (Bruce Korb's message of "Tue, 27 Oct 2009 11:56:46 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2009-10/txt/msg00400.txt.bz2 Bruce Korb writes: > Sorry. When you do a "bt" using gdb, you see the function > names, whether they be "static" or have global (external) > linkage. The function backtrace_symbols(), on the other > hand, doe *not* print static scope function names. backtrace_symbols can only deal with dynamic symbols, which are the only ones available at runtime. If you want to resolve normal symbols you need to read them from the (unstripped) binary, like addr2line does. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."