aboutsummaryrefslogtreecommitdiff
path: root/gdb/main.c
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1993-06-11 22:23:17 +0000
committerK. Richard Pixley <rich@cygnus>1993-06-11 22:23:17 +0000
commit57cb418a935f699a59f534e9d92223a9f1792f9d (patch)
tree9eae71739b1141b201a76a6eebefb7f30ee83605 /gdb/main.c
parentaf08a43ac4d68eef44869b915012fb19c2e9cbd1 (diff)
downloadgdb-57cb418a935f699a59f534e9d92223a9f1792f9d.zip
gdb-57cb418a935f699a59f534e9d92223a9f1792f9d.tar.gz
gdb-57cb418a935f699a59f534e9d92223a9f1792f9d.tar.bz2
revised format for config info
Diffstat (limited to 'gdb/main.c')
-rw-r--r--gdb/main.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/gdb/main.c b/gdb/main.c
index 9706105..9c274bb 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -178,6 +178,14 @@ static int inhibit_gdbinit = 0;
extern char *version;
+/* Canonical host name as a string. */
+
+extern char *host_canonical;
+
+/* Canonical target name as a string. */
+
+extern char *target_canonical;
+
/* Message to be printed before the error message, when an error occurs. */
extern char *error_pre_print;
@@ -291,7 +299,6 @@ static char dirbuf[1024];
void (*window_hook) PARAMS ((FILE *, char *));
-extern int frame_file_full_name;
extern int mapped_symbol_files;
extern int readnow_symbol_files;
@@ -1894,8 +1901,14 @@ print_gdb_version (stream)
FILE *stream;
{
fprintf_filtered (stream, "\
-GDB %s, Copyright 1993 Free Software Foundation, Inc.",
- version);
+GDB %s (%s", version, host_canonical);
+
+ if (strcmp(host_canonical, target_canonical))
+ fprintf_filtered (stream, " --target %s", target_canonical);
+
+ fprintf_filtered (stream, "), ");
+ wrap_here("");
+ fprintf_filtered (stream, "Copyright 1993 Free Software Foundation, Inc.");
}
/* ARGSUSED */