This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Fix "info func" display for 64-bit minimal symbols
- To: Elena Zannoni <ezannoni at cygnus dot com>
- Subject: Re: [RFA] Fix "info func" display for 64-bit minimal symbols
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Fri, 11 May 2001 10:48:56 -0700
- CC: gdb-patches at sources dot redhat dot com
- Organization: Red Hat
- References: <3ADCBA24.74216729@cygnus.com> <15100.9251.925310.432238@kwikemart.cygnus.com>
Elena Zannoni wrote:
>
> Was this checked in?
> If not, go ahead.
OK, thanks.
>
> Michael Snyder writes:
> > This is a resubmission of a patch I sent several months ago,
> > incorporating feedback.2001-04-17 Michael Snyder <msnyder@redhat.com>
> >
> > * symtab.c (print_msymbol_info): Allow for 64-bit addresses.
> >
> > Index: symtab.c
> > ===================================================================
> > RCS file: /cvs/src/src/gdb/symtab.c,v
> > retrieving revision 1.34
> > diff -c -3 -p -r1.34 symtab.c
> > *** symtab.c 2001/04/01 19:50:50 1.34
> > --- symtab.c 2001/04/17 21:45:53
> > *************** print_symbol_info (namespace_enum kind,
> > *** 2660,2668 ****
> > static void
> > print_msymbol_info (struct minimal_symbol *msymbol)
> > {
> > ! printf_filtered (" %08lx %s\n",
> > ! (unsigned long) SYMBOL_VALUE_ADDRESS (msymbol),
> > ! SYMBOL_SOURCE_NAME (msymbol));
> > }
> >
> > /* This is the guts of the commands "info functions", "info types", and
> > --- 2660,2676 ----
> > static void
> > print_msymbol_info (struct minimal_symbol *msymbol)
> > {
> > ! char *tmp;
> > !
> > ! if (TARGET_ADDR_BIT <= 32)
> > ! tmp = longest_local_hex_string_custom (SYMBOL_VALUE_ADDRESS (msymbol)
> > ! & (CORE_ADDR) 0xffffffff,
> > ! "08l");
> > ! else
> > ! tmp = longest_local_hex_string_custom (SYMBOL_VALUE_ADDRESS (msymbol),
> > ! "016l");
> > ! printf_filtered ("%s %s\n",
> > ! tmp, SYMBOL_SOURCE_NAME (msymbol));
> > }
> >
> > /* This is the guts of the commands "info functions", "info types", and