diff options
author | Per Bothner <per@bothner.com> | 1991-11-22 05:00:08 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1991-11-22 05:00:08 +0000 |
commit | 7de245d36283de0344bf0798cb594f14ea6f2f3a (patch) | |
tree | 52d64d9c8f54d1aa03f1ccfee5a5ed346a5f543d /bfd/syms.c | |
parent | c3a1a56bda16fc57a919cd742ddff597d8841535 (diff) | |
download | gdb-7de245d36283de0344bf0798cb594f14ea6f2f3a.zip gdb-7de245d36283de0344bf0798cb594f14ea6f2f3a.tar.gz gdb-7de245d36283de0344bf0798cb594f14ea6f2f3a.tar.bz2 |
Moved bfd_stab_name() and bfd_stab_names[]
from syms.c to new file stab-syms.c.
Renamed to aout_stab_name() and aout_stab_names[].
Also, since GNU extended type codes such as N_SETT are no longer
in ../include/stab.def, include them manually.
Diffstat (limited to 'bfd/syms.c')
-rw-r--r-- | bfd/syms.c | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -418,28 +418,3 @@ asymbol *symbol) return '?'; } - -/* Create a table of debugging stab-codes and corresponding names. */ - -#define __define_stab(NAME, CODE, STRING) {NAME, STRING}, -struct {enum __stab_debug_code code; char *string;} bfd_stab_names[] - = { -#include "stab.def" - }; -#undef __define_stab - -/*proto* bfd_stab_name -Returns a string for the stab with the given code, or NULL if not found. - -*; PROTO(char *, bfd_stab_name, (int code)); -*/ -char * -DEFUN(bfd_stab_name,(code), -int code) -{ - register int i; - for (i = sizeof(bfd_stab_names) / sizeof(bfd_stab_names[0]) - 1; i >= 0; i--) - if (bfd_stab_names[i].code == (enum __stab_debug_code) code) - return bfd_stab_names[i].string; - return NULL; -} |