* Makefile.in (version.c), main.c (print_gdb_version): Use
authorJim Kingdon <jkingdon@engr.sgi.com>
Thu, 27 Jan 1994 20:19:13 +0000 (20:19 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Thu, 27 Jan 1994 20:19:13 +0000 (20:19 +0000)
host_alias and target_alias, not host_canonical and
target_canonical, to print configuration.

gdb/ChangeLog
gdb/Makefile.in
gdb/main.c

index 7bfbdfcec9a11248c6c3b84e0924f21c83292aeb..d5b50067c94534d85047d0880a3cdd9c04d57e7e 100644 (file)
@@ -1,3 +1,9 @@
+Thu Jan 27 15:12:23 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * Makefile.in (version.c), main.c (print_gdb_version): Use
+       host_alias and target_alias, not host_canonical and
+       target_canonical, to print configuration.
+
 Wed Jan 26 10:57:21 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
 
        * parse.c (write_exp_msymbol): Use new type msymbol_addr_type instead
index fdae89e4ce58a46bfdcb27d88ebc1ca0e41a73f2..d8cb06e8194d2f11374962fc021d650d555e331b 100644 (file)
@@ -775,8 +775,8 @@ copying.c: COPYING copying.awk
 
 version.c: Makefile
        echo 'char *version = "$(VERSION)";' >version.c
-       echo 'char *host_canonical = "$(host_canonical)";' >> version.c
-       echo 'char *target_canonical = "$(target_canonical)";' >> version.c
+       echo 'char *host_name = "$(host_alias)";' >> version.c
+       echo 'char *target_name = "$(target_alias)";' >> version.c
 
 # c-exp.tab.c is generated in objdir from c-exp.y if it doesn't exist
 # in srcdir, then compiled in objdir to c-exp.tab.o.
index 8270f124b4152cbfc68d0b14486a8bf1e09a5c27..0a6090e9e9c3d95ee779d9498b94e265d1d3cd72 100644 (file)
@@ -180,11 +180,11 @@ extern char *version;
 
 /* Canonical host name as a string. */
 
-extern char *host_canonical;
+extern char *host_name;
 
 /* Canonical target name as a string. */
 
-extern char *target_canonical;
+extern char *target_name;
 
 extern char lang_frame_mismatch_warn[];                /* language.c */
 
@@ -2183,10 +2183,10 @@ print_gdb_version (stream)
   GDB_FILE *stream;
 {
   fprintf_filtered (stream, "\
-GDB %s (%s", version, host_canonical);
+GDB %s (%s", version, host_name);
 
-  if (strcmp(host_canonical, target_canonical))
-    fprintf_filtered (stream, " --target %s", target_canonical);
+  if (!STREQ (host_name, target_name))
+    fprintf_filtered (stream, " --target %s", target_name);
 
   fprintf_filtered (stream, "), ");
   wrap_here("");
This page took 0.02778 seconds and 4 git commands to generate.