This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: [PATCH]: Make solib.c more multi-archable
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [PATCH]: Make solib.c more multi-archable
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Thu, 04 May 2000 13:02:35 -0700
- CC: gdb-patches at sourceware dot cygnus dot com, jimb at cygnus dot com
- Organization: Cygnus Solutions
- References: <200005040017.RAA15336@seadog.cygnus.com> <3910CDE6.1D5770EB@cygnus.com>
- Reply-To: msnyder at cygnus dot com
Andrew Cagney wrote:
>
> msnyder@cygnus.com wrote:
> >
> > Hello,
> >
> > This patch will allow solib.c to use the bfd to determine whether
> > it is ELF32 or ELF64, rather than using a compile-time macro.
> >
> > This gets us closer to allowing a single GDB to debug both types
> > of solibs.
> >
> > 2000-05-03 Michael Snyder <msnyder@seadog.cygnus.com>
> >
> > * solib.c (elf_locate_base, info_sharedlibrary_command):
> > Look at the bfd to determine if it is elf32 or elf64, rather
> > than using an ifdef. This makes it runtime teststable and
> > multi-arch.
>
> My only thought is to make:
>
> (get_elf_backend_data (exec_bfd))->s->arch_size == 32)
>
> a function.
That would actually help (some), since I could hide the data type
and not have to include another bfd header file (which contains
conflicts with system header files). Question is,
where to put this new function. Any suggestions?