aboutsummaryrefslogtreecommitdiff
path: root/bfd/syms.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1991-11-22 05:00:08 +0000
committerPer Bothner <per@bothner.com>1991-11-22 05:00:08 +0000
commit7de245d36283de0344bf0798cb594f14ea6f2f3a (patch)
tree52d64d9c8f54d1aa03f1ccfee5a5ed346a5f543d /bfd/syms.c
parentc3a1a56bda16fc57a919cd742ddff597d8841535 (diff)
downloadgdb-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.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/bfd/syms.c b/bfd/syms.c
index 30effa2..f791c06 100644
--- a/bfd/syms.c
+++ b/bfd/syms.c
@@ -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;
-}