diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-11-20 10:20:33 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-11-20 10:20:33 +0000 |
commit | 91f54576a276e05c8a85e45bf9da835faf4d7be7 (patch) | |
tree | 4a7da71ac84d92722cc8ad1e19824eee66ac590d /gdb/dbxread.c | |
parent | a728960949c7e21c6172b3464a4e7a91f65d4baa (diff) | |
download | gdb-91f54576a276e05c8a85e45bf9da835faf4d7be7.zip gdb-91f54576a276e05c8a85e45bf9da835faf4d7be7.tar.gz gdb-91f54576a276e05c8a85e45bf9da835faf4d7be7.tar.bz2 |
* dbxread.c: Include "gdb_string.h".
(record_minimal_symbol, read_ofile_symtab): Replace
DEPRECATED_STREQ and DEPRECATED_STREQN with strcmp and strncmp.
* Makefile.in (dbxread.o): Update dependencies.
Diffstat (limited to 'gdb/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 21f4399..e804c10 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -56,7 +56,9 @@ #include "demangle.h" #include "complaints.h" #include "cp-abi.h" + #include "gdb_assert.h" +#include "gdb_string.h" #include "aout/aout64.h" #include "aout/stab_gnu.h" /* We always use GNU stabs, not native, now */ @@ -481,7 +483,7 @@ record_minimal_symbol (char *name, CORE_ADDR address, int type, Record it as global even if it's local, not global, so lookup_minimal_symbol can find it. We don't check symbol_leading_char because for SunOS4 it always is '_'. */ - if (name[8] == 'C' && DEPRECATED_STREQ ("__DYNAMIC", name)) + if (name[8] == 'C' && strcmp ("__DYNAMIC", name) == 0) ms_type = mst_data; /* Same with virtual function tables, both global and static. */ @@ -2503,13 +2505,13 @@ read_ofile_symtab (struct partial_symtab *pst) { const char *tempstring = namestring; - if (DEPRECATED_STREQ (namestring, GCC_COMPILED_FLAG_SYMBOL)) + if (strcmp (namestring, GCC_COMPILED_FLAG_SYMBOL) == 0) processing_gcc_compilation = 1; - else if (DEPRECATED_STREQ (namestring, GCC2_COMPILED_FLAG_SYMBOL)) + else if (strcmp (namestring, GCC2_COMPILED_FLAG_SYMBOL) == 0) processing_gcc_compilation = 2; if (tempstring[0] == bfd_get_symbol_leading_char (symfile_bfd)) ++tempstring; - if (DEPRECATED_STREQN (tempstring, "__gnu_compiled", 14)) + if (strncmp (tempstring, "__gnu_compiled", 14) == 0) processing_gcc_compilation = 2; } @@ -2575,9 +2577,9 @@ read_ofile_symtab (struct partial_symtab *pst) However, there is no reason not to accept the GCC_COMPILED_FLAG_SYMBOL anywhere. */ - if (DEPRECATED_STREQ (namestring, GCC_COMPILED_FLAG_SYMBOL)) + if (strcmp (namestring, GCC_COMPILED_FLAG_SYMBOL) == 0) processing_gcc_compilation = 1; - else if (DEPRECATED_STREQ (namestring, GCC2_COMPILED_FLAG_SYMBOL)) + else if (strcmp (namestring, GCC2_COMPILED_FLAG_SYMBOL) == 0) processing_gcc_compilation = 2; #if 0 |