* dstread.c (dst_sym_fns): Update for flavours.

* symfile.c (find_sym_fns): Add kludge for apollo like for rs/6000.
	* dstread.c (dst_symfile_offsets): Set objfile->num_sections.
This commit is contained in:
Jim Kingdon 1993-11-10 16:31:17 +00:00
parent 89ce0c8f50
commit 447bc3edeb
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,9 @@
Wed Nov 10 09:31:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com) Wed Nov 10 09:31:10 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* dstread.c (dst_sym_fns): Update for flavours.
* symfile.c (find_sym_fns): Add kludge for apollo like for rs/6000.
* dstread.c (dst_symfile_offsets): Set objfile->num_sections.
gcc -Wall lint: gcc -Wall lint:
* thread.c: Include "gdbcmd.h" and <ctype.h>. * thread.c: Include "gdbcmd.h" and <ctype.h>.
* Makefile.in: Update dependency. * Makefile.in: Update dependency.

View File

@ -1696,6 +1696,7 @@ dst_symfile_offsets (objfile, addr)
struct objfile *objfile; struct objfile *objfile;
CORE_ADDR addr; CORE_ADDR addr;
{ {
objfile->num_sections = 1;
return &dst_symfile_faker; return &dst_symfile_faker;
} }
@ -1703,8 +1704,10 @@ dst_symfile_offsets (objfile, addr)
static struct sym_fns dst_sym_fns = static struct sym_fns dst_sym_fns =
{ {
"apollo", /* sym_name: name or name prefix of BFD target type */ /* FIXME: Can this be integrated with coffread.c? If not, should it be
6, /* sym_namelen: number of significant sym_name chars */ a separate flavour like ecoff? */
(enum bfd_flavour)-2,
dst_new_init, /* sym_new_init: init anything gbl to entire symtab */ dst_new_init, /* sym_new_init: init anything gbl to entire symtab */
dst_symfile_init, /* sym_init: read initial info, setup for sym_read() */ dst_symfile_init, /* sym_init: read initial info, setup for sym_read() */
dst_symfile_read, /* sym_read: read a symbol file into symtab */ dst_symfile_read, /* sym_read: read a symbol file into symtab */