diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-11-10 16:31:17 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-11-10 16:31:17 +0000 |
commit | 447bc3edebb9be6d08b929fd2014911fa1082646 (patch) | |
tree | 1a17a9979d89f6e246f4a57cf46447dde24b3e92 /gdb/dstread.c | |
parent | 89ce0c8f50b02eecbb87ad6246299fd214724846 (diff) | |
download | gdb-447bc3edebb9be6d08b929fd2014911fa1082646.zip gdb-447bc3edebb9be6d08b929fd2014911fa1082646.tar.gz gdb-447bc3edebb9be6d08b929fd2014911fa1082646.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/dstread.c')
-rw-r--r-- | gdb/dstread.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/dstread.c b/gdb/dstread.c index 38ea398..6fbd2fe 100644 --- a/gdb/dstread.c +++ b/gdb/dstread.c @@ -1696,6 +1696,7 @@ dst_symfile_offsets (objfile, addr) struct objfile *objfile; CORE_ADDR addr; { + objfile->num_sections = 1; return &dst_symfile_faker; } @@ -1703,8 +1704,10 @@ dst_symfile_offsets (objfile, addr) static struct sym_fns dst_sym_fns = { - "apollo", /* sym_name: name or name prefix of BFD target type */ - 6, /* sym_namelen: number of significant sym_name chars */ + /* FIXME: Can this be integrated with coffread.c? If not, should it be + a separate flavour like ecoff? */ + (enum bfd_flavour)-2, + 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_read, /* sym_read: read a symbol file into symtab */ |