diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-31 18:54:28 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-31 18:54:28 +0000 |
commit | 0eed42deeea0a78b272402f77644be0239f5ffb6 (patch) | |
tree | fad58a204a79ecff3efce8c494c91280d14fe8fc /gdb/xcoffread.c | |
parent | 47f45d66367ac7895537b5c767d215c4661765cd (diff) | |
download | gdb-0eed42deeea0a78b272402f77644be0239f5ffb6.zip gdb-0eed42deeea0a78b272402f77644be0239f5ffb6.tar.gz gdb-0eed42deeea0a78b272402f77644be0239f5ffb6.tar.bz2 |
* symfile.h (sym_fns), symfile.c (find_sym_fns), xcoffread.c,
coffread.c, dbxread.c, elfread.c, mipsread.c, nlmread.c, paread.c:
Change from using bfd target name to using the flavour.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index e93991f..5e0df41 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -2140,12 +2140,20 @@ xcoff_symfile_offsets (objfile, addr) return section_offsets; } -/* Register our ability to parse symbols for xcoff BFD files. */ + +/* Register our ability to parse symbols for xcoff BFD files. */ static struct sym_fns xcoff_sym_fns = { - "aixcoff-rs6000", /* sym_name: name or name prefix of BFD target type */ - 15, /* sym_namelen: number of significant sym_name chars */ + + /* Because the bfd uses coff_flavour, we need to specially kludge + the flavour. FIXME: coff and xcoff and fundamentally similar + except for debug format, and we should see if we can merge this + file with coffread.c. For example, the extra storage classes + used for stabs could presumably be recognized in any COFF file. */ + + (bfd_flavour)-1, + xcoff_new_init, /* sym_new_init: init anything gbl to entire symtab */ xcoff_symfile_init, /* sym_init: read initial info, setup for sym_read() */ xcoff_symfile_read, /* sym_read: read a symbol file into symtab */ |