From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20052 invoked by alias); 18 Sep 2005 01:45:31 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 19886 invoked by uid 22791); 18 Sep 2005 01:44:52 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 18 Sep 2005 01:44:52 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1EGoEb-0000Dx-2Y; Sat, 17 Sep 2005 21:44:49 -0400 Date: Sun, 18 Sep 2005 01:45:00 -0000 From: Daniel Jacobowitz To: Victor STINNER , Elena Zannoni , gdb-patches@sources.redhat.com Subject: Re: Display libc function names instead of address ? Message-ID: <20050918014449.GU8777@nevyn.them.org> Mail-Followup-To: Victor STINNER , Elena Zannoni , gdb-patches@sources.redhat.com References: <1118892960.12713.5.camel@haypopc> <20050616044313.GA5950@nevyn.them.org> <1118934045.2827.4.camel@haypopc> <20050616151934.GA11296@nevyn.them.org> <1118936759.24041.23.camel@haypopc> <20050616162605.GA32580@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050616162605.GA32580@nevyn.them.org> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-09/txt/msg00146.txt.bz2 On Thu, Jun 16, 2005 at 12:26:05PM -0400, Daniel Jacobowitz wrote: > On Thu, Jun 16, 2005 at 05:45:59PM +0200, Victor STINNER wrote: > > Le jeudi 16 juin 2005 à 11:19 -0400, Daniel Jacobowitz a écrit : > > > Thanks for checking! That's output from objdump, right? It doesn't > > > seem to work for me in GDB, just in objdump. But perhaps I can figure > > > out where to wire it in. > > > > Yep, it's in objdump. I think that you just have to update bfd and > > opcodes libraries, no ? > > No - GDB also needs a change. > > This has been on my todo list for months, ever since objdump gained > support. Here's an implementation - the patch applies to GDB CVS. > Elena, is this patch OK? > > Tested on i686-pc-linux-gnu. It leaves a stray if (1) to minimize the > size of the diff; I would remove that as an obvious followup. Hi Elena, Have you had a chance to look at this patch? The original report is here: http://sourceware.org/ml/gdb/2005-06/msg00166.html The patch is here: http://sourceware.org/ml/gdb-patches/2005-06/msg00220.html And an example of it working is here: http://sourceware.org/ml/gdb/2005-06/msg00174.html > 2005-06-16 Daniel Jacobowitz > > * elfread.c (elf_symtab_read): Add number_of_symbols and > symbol_table as arguments. Do not load the symbol table > here. > (elf_symfile_read): Load the static and dynamic symbol tables > here, before calling elf_symtab_read. Also load any synthetic > symbols and process those. -- Daniel Jacobowitz CodeSourcery, LLC