diff options
author | John Gilmore <gnu@cygnus> | 1992-06-21 02:20:30 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1992-06-21 02:20:30 +0000 |
commit | f70be3e45afa60e5639ef0a4411470ccd094b39d (patch) | |
tree | 451a23a5504dbc7110536fb8c1773c954f74b4b8 /gdb/elfread.c | |
parent | 0cc37e2948c2b7adf4a1fb4c484e2183c9e30726 (diff) | |
download | gdb-f70be3e45afa60e5639ef0a4411470ccd094b39d.zip gdb-f70be3e45afa60e5639ef0a4411470ccd094b39d.tar.gz gdb-f70be3e45afa60e5639ef0a4411470ccd094b39d.tar.bz2 |
COFF changes for dealing better with EPI 29K C compiler output.
* coffread.c (record_minimal_symbol): Pass the minsym type to it.
Callers changed.
(coff_end_symtab): Sort blocks if needed. Complain if misordered.
(read_coff_symtab): Move patch_opaque_types call from
coff_symfile_read. Restrict it to symtabs from this objfile.
(process_coff_symbol: C_TPDEF): Don't put ordinary foward
references on opaque type chain; just let coff_lookup_type handle 'em.
(decode_type): Complain about tagndx values on
non-struct/union/enum types, which the EPI compiler tends to produce.
* symtab.c (list_symbols): Make minimal symbol variable-finding work.
* tm-68k.h (FIX_CALL_DUMMY): Avoid alignment and byte order
dependency.
* elfread.c (elf_symfile_read): Update bfd_elf_find_section
usage to match new prototype. Include libbfd.h to get prototype.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r-- | gdb/elfread.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c index bc997ef..d9c76d8 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -37,6 +37,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "elf/external.h" #include "elf/internal.h" #include "bfd.h" +#include "libbfd.h" /* For bfd_elf_find_section */ #include "symtab.h" #include "symfile.h" #include "objfiles.h" @@ -354,8 +355,9 @@ elf_symfile_read (objfile, addr, mainline) sections visible to the caller. So we have to search the ELF section table, not the BFD section table, for the string table. */ - Elf_Internal_Shdr *elf_sect = bfd_elf_find_section (abfd, ".stabstr"); + struct elf_internal_shdr *elf_sect; + elf_sect = bfd_elf_find_section (abfd, ".stabstr"); if (elf_sect) elfstab_build_psymtabs (objfile, addr, /* We really pass the text seg addr, not the offset, here. */ |