From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20441 invoked by alias); 27 Oct 2009 18:56:52 -0000 Received: (qmail 20433 invoked by uid 22791); 27 Oct 2009 18:56:52 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f192.google.com (HELO mail-pz0-f192.google.com) (209.85.222.192) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Oct 2009 18:56:48 +0000 Received: by pzk30 with SMTP id 30so11504pzk.24 for ; Tue, 27 Oct 2009 11:56:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.74.8 with SMTP id w8mr1248216wfa.192.1256669806763; Tue, 27 Oct 2009 11:56:46 -0700 (PDT) In-Reply-To: <8ac60eac0910271140n54923a92u74bd2a909ed05696@mail.gmail.com> References: <668c430c0910271132j48e478d6s88aeb51282229402@mail.gmail.com> <8ac60eac0910271140n54923a92u74bd2a909ed05696@mail.gmail.com> Date: Tue, 27 Oct 2009 19:11:00 -0000 Message-ID: <668c430c0910271156m29e5770dyec6de9afa84f01f7@mail.gmail.com> Subject: Re: How does one get static procedure names? From: Bruce Korb To: Paul Pluzhnikov Cc: gdb@sourceware.org, gdb@gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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/msg00393.txt.bz2 On Tue, Oct 27, 2009 at 11:40 AM, Paul Pluzhnikov wrote: > On Tue, Oct 27, 2009 at 11:32 AM, Bruce Korb wrote: > >> I know GDB has some way to do it, but I couldn't locate >> the code that does it. =A0A pointer on where to look would >> be really helpful and greatly appreciated! > > Your question is rather unclear :-( 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. Even if it takes some work, I'd like to "fix" the constraint. However, I wasn't able to decipher the gdb source well enough to figure out how it accomplished this feat. So, is there some place in the GDB source where I ought to be looking? Thank you! Regards, Bruce