This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] solib.c update to gdb_get_arch_size()
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [patch] solib.c update to gdb_get_arch_size()
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Wed, 19 Jul 2000 12:53:50 +1000
- CC: nick at cygnus dot com, c at cygnus dot com
FYI,
I've checked in the attatched. This (and a corresponding BFD change)
should fix the ``GDB won't build for a.out targets'' problems.
Andrew
Wed Jul 19 12:50:16 2000 Andrew Cagney <cagney@b1.cygnus.com>
* solib.c (elf_locate_base, info_sharedlibrary_command): Rename
bfd_elf_get_arch_size to bfd_get_arch_size.
Index: solib.c
===================================================================
RCS file: /cvs/src/src/gdb/solib.c,v
retrieving revision 1.16
diff -p -r1.16 solib.c
*** solib.c 2000/05/28 01:12:29 1.16
--- solib.c 2000/07/19 02:51:34
*************** elf_locate_base ()
*** 714,720 ****
For mips elf we look for DT_MIPS_RLD_MAP, mips elf apparently has
no DT_DEBUG entries. */
! arch_size = bfd_elf_get_arch_size (exec_bfd);
if (arch_size == -1) /* failure */
return 0;
--- 714,720 ----
For mips elf we look for DT_MIPS_RLD_MAP, mips elf apparently has
no DT_DEBUG entries. */
! arch_size = bfd_get_arch_size (exec_bfd);
if (arch_size == -1) /* failure */
return 0;
*************** info_sharedlibrary_command (ignore, from
*** 1491,1497 ****
return;
}
! arch_size = bfd_elf_get_arch_size (exec_bfd);
/* Default to 32-bit in case of failure (non-elf). */
if (arch_size == 32 || arch_size == -1)
{
--- 1491,1497 ----
return;
}
! arch_size = bfd_get_arch_size (exec_bfd);
/* Default to 32-bit in case of failure (non-elf). */
if (arch_size == 32 || arch_size == -1)
{