This is the mail archive of the gdb-patches@sources.redhat.com 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]

[patch] solib.c update to gdb_get_arch_size()


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)
      {

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