From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2878 invoked by alias); 27 Oct 2009 19:37:42 -0000 Received: (qmail 2868 invoked by uid 22791); 27 Oct 2009 19:37:41 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 27 Oct 2009 19:37:34 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A02E110B94; Tue, 27 Oct 2009 19:37:32 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 8423A109F9; Tue, 27 Oct 2009 19:37:32 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1N2rrH-0004OL-UE; Tue, 27 Oct 2009 15:37:31 -0400 Date: Tue, 27 Oct 2009 19:43:00 -0000 From: Daniel Jacobowitz To: Bruce Korb Cc: Paul Pluzhnikov , gdb@sourceware.org, gdb@gnu.org Subject: Re: How does one get static procedure names? Message-ID: <20091027193731.GA16615@caradoc.them.org> Mail-Followup-To: Bruce Korb , Paul Pluzhnikov , gdb@sourceware.org, gdb@gnu.org References: <668c430c0910271132j48e478d6s88aeb51282229402@mail.gmail.com> <8ac60eac0910271140n54923a92u74bd2a909ed05696@mail.gmail.com> <668c430c0910271156m29e5770dyec6de9afa84f01f7@mail.gmail.com> <20091027192701.GA14984@caradoc.them.org> <668c430c0910271233m35b959bepb91df230b6c05ced@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <668c430c0910271233m35b959bepb91df230b6c05ced@mail.gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2009-10/txt/msg00398.txt.bz2 On Tue, Oct 27, 2009 at 12:33:39PM -0700, Bruce Korb wrote: > Exactly. I know it'd be some work. I think I need to > call: dlopen(NULL, RTLD_NOW) No. You need to open the file and have your own ELF and symbol table reader. They are not in the area mapped by dlopen. > and then copy & fiddle code out of GDB. yes? :) GDB is almost certainly not where you want to get this code from. We just use BFD... -- Daniel Jacobowitz CodeSourcery