This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Use GDB_TM_FILE in gdbarch.h
- From: Andrew Cagney <cagney at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 02 Sep 2004 10:31:13 -0400
- Subject: [commit] Use GDB_TM_FILE in gdbarch.h
Rather than test for GDB_MULTI_ARCH (which is defined according to
GDB_TM_FILE), this changes gdbarch.h to test GDB_TM_FILE directly.
committed,
Andrew
2004-09-02 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
and GDB_TM_FILE. Check for GDB_TM_FILE instead of
GDB_MULTI_ARCH_PARTIAL.
* gdbarch.h: Re-generate.
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.345
diff -p -u -r1.345 gdbarch.sh
--- gdbarch.sh 8 Aug 2004 20:50:57 -0000 1.345
+++ gdbarch.sh 2 Sep 2004 14:26:38 -0000
@@ -775,13 +775,6 @@ struct target_ops;
struct obstack;
extern struct gdbarch *current_gdbarch;
-
-/* If any of the following are defined, the target wasn't correctly
- converted. */
-
-#if (GDB_MULTI_ARCH >= GDB_MULTI_ARCH_PURE) && defined (GDB_TM_FILE)
-#error "GDB_TM_FILE: Pure multi-arch targets do not have a tm.h file."
-#endif
EOF
# function typedef's
@@ -797,7 +790,7 @@ do
printf "/* set_gdbarch_${function}() - not applicable - pre-initialized. */\n"
if test -n "${macro}"
then
- printf "#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (${macro})\n"
+ printf "#if !defined (GDB_TM_FILE) && defined (${macro})\n"
printf "#error \"Non multi-arch definition of ${macro}\"\n"
printf "#endif\n"
printf "#if !defined (${macro})\n"
@@ -837,7 +830,7 @@ do
printf "extern int gdbarch_${function}_p (struct gdbarch *gdbarch);\n"
if test -n "${macro}"
then
- printf "#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (${macro}_P)\n"
+ printf "#if !defined (GDB_TM_FILE) && defined (${macro}_P)\n"
printf "#error \"Non multi-arch definition of ${macro}\"\n"
printf "#endif\n"
printf "#if !defined (${macro}_P)\n"
@@ -852,7 +845,7 @@ do
printf "extern void set_gdbarch_${function} (struct gdbarch *gdbarch, ${returntype} ${function});\n"
if test -n "${macro}"
then
- printf "#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (${macro})\n"
+ printf "#if !defined (GDB_TM_FILE) && defined (${macro})\n"
printf "#error \"Non multi-arch definition of ${macro}\"\n"
printf "#endif\n"
printf "#if !defined (${macro})\n"
@@ -881,7 +874,7 @@ do
printf "extern void set_gdbarch_${function} (struct gdbarch *gdbarch, gdbarch_${function}_ftype *${function});\n"
if test -n "${macro}"
then
- printf "#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (${macro})\n"
+ printf "#if !defined (GDB_TM_FILE) && defined (${macro})\n"
printf "#error \"Non multi-arch definition of ${macro}\"\n"
printf "#endif\n"
if [ "x${actual}" = "x" ]