aboutsummaryrefslogtreecommitdiff
path: root/gdb/coffread.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-07-05 00:04:59 +0000
committerJohn Gilmore <gnu@cygnus>1991-07-05 00:04:59 +0000
commit6988f5c0ae12e1e978129c89d5633929ebd13c41 (patch)
treead9f6d5d0a126470312b8c633f066a07ae2f91a0 /gdb/coffread.c
parent4708037854ee7a4f1602ae5149b3e461315ca0ca (diff)
downloadgdb-6988f5c0ae12e1e978129c89d5633929ebd13c41.zip
gdb-6988f5c0ae12e1e978129c89d5633929ebd13c41.tar.gz
gdb-6988f5c0ae12e1e978129c89d5633929ebd13c41.tar.bz2
Thu Jul 4 14:47:06 1991 John Gilmore (gnu at cygint.cygnus.com)
* configure.in, Makefile.in: Avoid rebuilding "depend" as much. Avoid declaring Makefile dependencies, because GNU Make stupidly tries to update it if we do. * coffread.c: Revise for minor changes to bfd internal coff indexes. * configure: If -template= is given a relative path, make it absolute before recurring in subdirectories.
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r--gdb/coffread.c19
1 files changed, 4 insertions, 15 deletions
diff --git a/gdb/coffread.c b/gdb/coffread.c
index 79a3240..54ca80b 100644
--- a/gdb/coffread.c
+++ b/gdb/coffread.c
@@ -38,6 +38,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <obstack.h>
#include <string.h>
+#include "internalcoff.h" /* Internal format of COFF symbols in BFD */
#include "libcoff.h" /* FIXME secret internal data from BFD */
static void add_symbol_to_list ();
@@ -70,18 +71,6 @@ extern void free_all_psymtabs ();
#define SDB_TYPE(type) (BTYPE(type) | (type & N_TMASK))
-/* external routines from the BFD library -- undocumented interface used
- by GDB to read symbols. Move to libcoff.h. FIXME-SOMEDAY! */
-extern void bfd_coff_swap_sym_in (/* symfile_bfd, &sym */);
-extern void bfd_coff_swap_aux_in (/* symfile_bfd, &aux, type, sclass */);
-extern void bfd_coff_swap_lineno_in (/* symfile_bfd, &lineno */);
-extern void bfd_coff_swap_scnhdr_in (/* bfd, scnhdr_ext, scnhdr_int */);
-
-extern void bfd_coff_swap_sym (/* symfile_bfd, &sym */);
-extern void bfd_coff_swap_aux (/* symfile_bfd, &aux, type, sclass */);
-extern void bfd_coff_swap_lineno (/* symfile_bfd, &lineno */);
-
-
/* Name of source file whose symbol data we are now processing.
This comes from a symbol named ".file". */
@@ -1682,7 +1671,7 @@ decode_type (cs, c_type, aux)
/* Define an array type. */
/* auxent refers to array, not base type */
- if (aux->x_sym.x_tagndx == 0)
+ if (aux->x_sym.x_tagndx.l == 0)
cs->c_nsyms = 1;
/* shift the indices down */
@@ -1707,7 +1696,7 @@ decode_type (cs, c_type, aux)
}
/* Reference to existing type */
- if (cs->c_nsyms > 1 && aux->x_sym.x_tagndx != 0)
+ if (cs->c_nsyms > 1 && aux->x_sym.x_tagndx.l != 0)
{
type = coff_alloc_type (aux->x_sym.x_tagndx);
return type;
@@ -1726,7 +1715,7 @@ decode_function_type (cs, c_type, aux)
unsigned int c_type;
register union internal_auxent *aux;
{
- if (aux->x_sym.x_tagndx == 0)
+ if (aux->x_sym.x_tagndx.l == 0)
cs->c_nsyms = 1; /* auxent refers to function, not base type */
return decode_type (cs, DECREF (c_type), aux);