[PATCH]: Make solib.c more multi-archable
Thu May 4 15:27:00 GMT 2000
Andrew Cagney wrote:
> firstname.lastname@example.org 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 <email@example.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.
OK, how about this (same ChangeLog entry):
More information about the Gdb-patches