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/symfile.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/symfile.c')
-rw-r--r-- | gdb/symfile.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 8430ae9..fd8298d 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -796,11 +796,15 @@ find_sym_fns (objfile) struct objfile *objfile; { struct sym_fns *sf; + enum bfd_flavour our_flavour = bfd_get_flavour (objfile -> obfd); + + /* Special kludge for RS/6000. See xcoffread.c. */ + if (STREQ (bfd_get_target (objfile -> obfd), "aixcoff-rs6000")) + our_flavour = (enum bfd_flavour)-1; for (sf = symtab_fns; sf != NULL; sf = sf -> next) { - if (strncmp (bfd_get_target (objfile -> obfd), - sf -> sym_name, sf -> sym_namelen) == 0) + if (our_flavour == sf -> sym_flavour) { objfile -> sf = sf; return; |