From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13342 invoked by alias); 16 Jun 2005 04:43:22 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 13317 invoked by uid 22791); 16 Jun 2005 04:43:16 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 16 Jun 2005 04:43:16 +0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DimDh-0001Yg-MX; Thu, 16 Jun 2005 00:43:13 -0400 Date: Thu, 16 Jun 2005 04:43:00 -0000 From: Daniel Jacobowitz To: Victor STINNER Cc: gdb@sources.redhat.com Subject: Re: Display libc function names instead of address ? Message-ID: <20050616044313.GA5950@nevyn.them.org> Mail-Followup-To: Victor STINNER , gdb@sources.redhat.com References: <1118892960.12713.5.camel@haypopc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1118892960.12713.5.camel@haypopc> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-06/txt/msg00167.txt.bz2 On Thu, Jun 16, 2005 at 05:36:00AM +0200, Victor STINNER wrote: > Hi, > > I woud like to know if it is possible to display libc functions name > instead of their address. Example : > > (1) (...) // prepare parameters > call 0x8048728 > > (2) jmp *0x804a6b0 // in relocation table, at 0x08048728 > > And if I do a "objdump -R file | grep 0x804a6b0", it answers printf. So > is it possible to display "call printf" instead of "call 0x8048728" ? Or > at least display "jmp *" instead of "jmp *0x804a6b0" ? > > I think that gdb can already read relocation table because "print > printf" command give me the function address. > > I hope that it's just an option :-) GDB can't do this - but, I think, that the very latest BFD/opcodes library supports this for some targets. Someone needs to hook those bits up to GDB. -- Daniel Jacobowitz CodeSourcery, LLC