aboutsummaryrefslogtreecommitdiff
path: root/gdb/mipsread.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-06-17 05:23:00 +0000
committerFred Fish <fnf@specifix.com>1992-06-17 05:23:00 +0000
commitfa0bcaa3a526dfdc149c6e04b3b97775f1170c08 (patch)
tree823f8c4ff6d178093cfc85a4a7837ed9255be493 /gdb/mipsread.c
parent0cfe5e69da3d40156b85fd4b848017b5c0a74f46 (diff)
downloadgdb-fa0bcaa3a526dfdc149c6e04b3b97775f1170c08.zip
gdb-fa0bcaa3a526dfdc149c6e04b3b97775f1170c08.tar.gz
gdb-fa0bcaa3a526dfdc149c6e04b3b97775f1170c08.tar.bz2
* mipsread.c: Undo ill effects from including <strings.h>,
which #defines index to be strchr. Unfortunately, index is a member of a symbol table structure that can't be changed. * mipsread.c: tm-mips.h includes coff/symconst.h and coff/sym.h, remove redundant #include's.
Diffstat (limited to 'gdb/mipsread.c')
-rw-r--r--gdb/mipsread.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/mipsread.c b/gdb/mipsread.c
index bd4bd68..89fe050 100644
--- a/gdb/mipsread.c
+++ b/gdb/mipsread.c
@@ -69,9 +69,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/stat.h>
#include <strings.h>
+/* Undo brain-damage in some <strings.h> that '#define index strchr'.
+ Note that tm-mips.h includes coff/sym.h, which has a structure with a
+ member named 'index'. */
+#undef index
+
#include "coff/mips.h" /* COFF-like aspects of ecoff files */
-#include "coff/sym.h" /* Symbol structures in ecoff files */
-#include "coff/symconst.h" /* Manifest constants in ecoff sym structures */
#include "coff/ecoff-ext.h" /* External forms of ecoff sym structures */
#include "libaout.h" /* FIXME Secret internal BFD stuff for a.out */