This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Display libc function names instead of address ?


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  <dan@codesourcery.com>
> 
> 	* 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]