2004-09-02 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Thu, 2 Sep 2004 17:22:08 +0000 (17:22 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 2 Sep 2004 17:22:08 +0000 (17:22 +0000)
* gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
GDB_TM_FILE and GDB_XM_FILE.
* gdbarch.c: Re-generate.
* configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
quotes in macro definition.
* configure.in: Re-generate.

gdb/ChangeLog
gdb/configure
gdb/configure.in
gdb/gdbarch.c
gdb/gdbarch.sh

index d064ea1cf8286949c37c2cbb548a708e353f5d94..7914fd4c1c7e6defac5c9e95bcd4d43cc232a6e9 100644 (file)
@@ -1,5 +1,12 @@
 2004-09-02  Andrew Cagney  <cagney@gnu.org>
 
+       * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
+       GDB_TM_FILE and GDB_XM_FILE.
+       * gdbarch.c: Re-generate.       
+       * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
+       quotes in macro definition.
+       * configure.in: Re-generate.
+
        * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
        validating architecture methods.
        * gdbarch.c: Re-generate.
index 3c5df37b1630ff06083439ddc61c0cb1a821d942..d173c86aaed05e4e4d37122c6ca028bd0a012ac2 100755 (executable)
@@ -11036,7 +11036,7 @@ if test "${hostfile}" != ""; then
     files="${files} ${GDB_XM_FILE}"
     links="${links} xm.h"
     cat >> confdefs.h <<EOF
-#define GDB_XM_FILE ${GDB_XM_FILE}
+#define GDB_XM_FILE "${GDB_XM_FILE}"
 EOF
 
 fi
@@ -11050,7 +11050,7 @@ if test "${targetfile}" != ""; then
     files="${files} ${GDB_TM_FILE}"
     links="${links} tm.h"
     cat >> confdefs.h <<EOF
-#define GDB_TM_FILE ${GDB_TM_FILE}
+#define GDB_TM_FILE "${GDB_TM_FILE}"
 EOF
 
 fi
@@ -11064,7 +11064,7 @@ if test "${nativefile}" != ""; then
     files="${files} ${GDB_NM_FILE}"
     links="${links} nm.h"
     cat >> confdefs.h <<EOF
-#define GDB_NM_FILE ${GDB_NM_FILE}
+#define GDB_NM_FILE "${GDB_NM_FILE}"
 EOF
 
 fi
@@ -11150,7 +11150,7 @@ else
   if { (eval echo configure:11151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     for file in conftest.*; do
       case $file in
-      *.c | *.C | *.o | *.obj | *.ilk | *.pdb) ;;
+      *.c | *.o | *.obj | *.ilk | *.pdb) ;;
       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
       esac
     done
index da0ad487189c189f1f01e48e2ccf9bcbdd4ec451..e527648ff74682a0e3e2c53388d1beb035d15520 100644 (file)
@@ -1523,7 +1523,7 @@ if test "${hostfile}" != ""; then
     GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}"
     files="${files} ${GDB_XM_FILE}"
     links="${links} xm.h"
-    AC_DEFINE_UNQUOTED(GDB_XM_FILE, ${GDB_XM_FILE})
+    AC_DEFINE_UNQUOTED(GDB_XM_FILE, "${GDB_XM_FILE}")
 fi
 AC_SUBST(xm_h)
 
@@ -1534,7 +1534,7 @@ if test "${targetfile}" != ""; then
     GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}"
     files="${files} ${GDB_TM_FILE}"
     links="${links} tm.h"
-    AC_DEFINE_UNQUOTED(GDB_TM_FILE, ${GDB_TM_FILE})
+    AC_DEFINE_UNQUOTED(GDB_TM_FILE, "${GDB_TM_FILE}")
 fi
 AC_SUBST(tm_h)
 
@@ -1545,7 +1545,7 @@ if test "${nativefile}" != ""; then
     GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}"
     files="${files} ${GDB_NM_FILE}"
     links="${links} nm.h"
-    AC_DEFINE_UNQUOTED(GDB_NM_FILE, ${GDB_NM_FILE})
+    AC_DEFINE_UNQUOTED(GDB_NM_FILE, "${GDB_NM_FILE}")
 fi
 AC_SUBST(nm_h)
 
index fdf7bb29639edd753d58f2896799eec90aa3d24e..7eb4aeb14be4a2eab254481cb4b7e9448afb41bf 100644 (file)
@@ -631,9 +631,27 @@ verify_gdbarch (struct gdbarch *current_gdbarch)
 void
 gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file)
 {
+  const char *gdb_xm_file = "<not-defined>";
+  const char *gdb_nm_file = "<not-defined>";
+  const char *gdb_tm_file = "<not-defined>";
+#if defined (GDB_XM_FILE)
+  gdb_xm_file = GDB_XM_FILE;
+#endif
+  fprintf_unfiltered (file,
+                      "gdbarch_dump: GDB_XM_FILE = %s\n",
+                      gdb_xm_file);
+#if defined (GDB_NM_FILE)
+  gdb_nm_file = GDB_NM_FILE;
+#endif
+  fprintf_unfiltered (file,
+                      "gdbarch_dump: GDB_NM_FILE = %s\n",
+                      gdb_nm_file);
+#if defined (GDB_TM_FILE)
+  gdb_tm_file = GDB_TM_FILE;
+#endif
   fprintf_unfiltered (file,
-                      "gdbarch_dump: GDB_MULTI_ARCH = %d\n",
-                      GDB_MULTI_ARCH);
+                      "gdbarch_dump: GDB_TM_FILE = %s\n",
+                      gdb_tm_file);
 #ifdef TARGET_ADDR_BIT
   fprintf_unfiltered (file,
                       "gdbarch_dump: TARGET_ADDR_BIT # %s\n",
index 298faf03cacc4496b63f7d37d2f802586410dc39..3ffb85e24dabffb090b26fb567058e71b9b8a09f 100755 (executable)
@@ -1486,9 +1486,27 @@ cat <<EOF
 void
 gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file)
 {
+  const char *gdb_xm_file = "<not-defined>";
+  const char *gdb_nm_file = "<not-defined>";
+  const char *gdb_tm_file = "<not-defined>";
+#if defined (GDB_XM_FILE)
+  gdb_xm_file = GDB_XM_FILE;
+#endif
+  fprintf_unfiltered (file,
+                      "gdbarch_dump: GDB_XM_FILE = %s\\n",
+                      gdb_xm_file);
+#if defined (GDB_NM_FILE)
+  gdb_nm_file = GDB_NM_FILE;
+#endif
+  fprintf_unfiltered (file,
+                      "gdbarch_dump: GDB_NM_FILE = %s\\n",
+                      gdb_nm_file);
+#if defined (GDB_TM_FILE)
+  gdb_tm_file = GDB_TM_FILE;
+#endif
   fprintf_unfiltered (file,
-                      "gdbarch_dump: GDB_MULTI_ARCH = %d\\n",
-                      GDB_MULTI_ARCH);
+                      "gdbarch_dump: GDB_TM_FILE = %s\\n",
+                      gdb_tm_file);
 EOF
 function_list | sort -t: -k 4 | while do_read
 do