This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Fix v850, mcore and mn10200 builds
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 01 May 2002 17:25:23 -0400
- Subject: [patch] Fix v850, mcore and mn10200 builds
FYI,
(the non-multi-arch targets hit) The attached fixes a -Werror problem
with v850, mcore and mn10200. A prototype for entry_point_address()
wasn't visible and that in turn required a few other declarations :-(
Committed.
enjoy,
Andrew
2002-05-01 Andrew Cagney <cagney@redhat.com>
* config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
* config/mcore/tm-mcore.h: Ditto. Update copyright.
* config/v850/tm-v850.h: Ditto. Update copyright.
Index: config/mcore/tm-mcore.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mcore/tm-mcore.h,v
retrieving revision 1.10
diff -u -r1.10 tm-mcore.h
--- config/mcore/tm-mcore.h 18 Apr 2002 18:09:09 -0000 1.10
+++ config/mcore/tm-mcore.h 1 May 2002 20:45:41 -0000
@@ -20,6 +20,8 @@
Boston, MA 02111-1307, USA. */
#include "regcache.h"
+#include "symtab.h" /* For namespace_enum. */
+#include "symfile.h" /* For entry_point_address(). */
/* All registers are 32 bits */
#define REGISTER_SIZE 4
Index: config/mn10200/tm-mn10200.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mn10200/tm-mn10200.h,v
retrieving revision 1.7
diff -u -r1.7 tm-mn10200.h
--- config/mn10200/tm-mn10200.h 29 Jan 2002 04:42:42 -0000 1.7
+++ config/mn10200/tm-mn10200.h 1 May 2002 20:45:41 -0000
@@ -1,5 +1,7 @@
/* Parameters for execution on a Matsushita mn10200 processor.
- Copyright 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+
+ Copyright 1997, 1998, 1999, 2000, 2001, 2002 Free Software
+ Foundation, Inc.
Contributed by Geoffrey Noer <noer@cygnus.com>
@@ -24,6 +26,8 @@
declared in "regcache.h". The ``correct fix'' is to convert those
macros into functions. */
#include "regcache.h"
+#include "symtab.h" /* For namespace_enum. */
+#include "symfile.h" /* For entry_point_address(). */
/* ints are only 16bits on the mn10200. */
#undef TARGET_INT_BIT
Index: config/v850/tm-v850.h
===================================================================
RCS file: /cvs/src/src/gdb/config/v850/tm-v850.h,v
retrieving revision 1.8
diff -u -r1.8 tm-v850.h
--- config/v850/tm-v850.h 6 Apr 2002 00:02:51 -0000 1.8
+++ config/v850/tm-v850.h 1 May 2002 20:45:41 -0000
@@ -1,6 +1,7 @@
/* Parameters for execution on an NEC V850 processor.
- Copyright 1996, 1997, 1998, 1999, 2000
- Free Software Foundation, Inc.
+
+ Copyright 1996, 1997, 1998, 1999, 2000, 2002 Free Software
+ Foundation, Inc.
This file is part of GDB.
@@ -20,6 +21,8 @@
Boston, MA 02111-1307, USA. */
#include "regcache.h"
+#include "symtab.h" /* For namespace_enum. */
+#include "symfile.h" /* For entry_point_address(). */
#define NUM_REGS 66