aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-27 20:19:13 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-27 20:19:13 +0000
commita28d16d3802d751d84566e47fb3b0ffbb28ecf1c (patch)
treeca1269ed409c07e4ed3e554e74105243330e65fd /gdb/main.c
parentc315696657d36cfab52129f14ff12436c8aa861d (diff)
downloadgdb-a28d16d3802d751d84566e47fb3b0ffbb28ecf1c.zip
gdb-a28d16d3802d751d84566e47fb3b0ffbb28ecf1c.tar.gz
gdb-a28d16d3802d751d84566e47fb3b0ffbb28ecf1c.tar.bz2
* Makefile.in (version.c), main.c (print_gdb_version): Use
host_alias and target_alias, not host_canonical and target_canonical, to print configuration.
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/main.c b/gdb/main.c
index 8270f12..0a6090e 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -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("");