mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 03:41:58 +08:00
* Makefile.in (version.c), main.c (print_gdb_version): Use
host_alias and target_alias, not host_canonical and target_canonical, to print configuration.
This commit is contained in:
@ -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)
|
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
|
* parse.c (write_exp_msymbol): Use new type msymbol_addr_type instead
|
||||||
|
@ -775,8 +775,8 @@ copying.c: COPYING copying.awk
|
|||||||
|
|
||||||
version.c: Makefile
|
version.c: Makefile
|
||||||
echo 'char *version = "$(VERSION)";' >version.c
|
echo 'char *version = "$(VERSION)";' >version.c
|
||||||
echo 'char *host_canonical = "$(host_canonical)";' >> version.c
|
echo 'char *host_name = "$(host_alias)";' >> version.c
|
||||||
echo 'char *target_canonical = "$(target_canonical)";' >> 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
|
# 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.
|
# in srcdir, then compiled in objdir to c-exp.tab.o.
|
||||||
|
10
gdb/main.c
10
gdb/main.c
@ -180,11 +180,11 @@ extern char *version;
|
|||||||
|
|
||||||
/* Canonical host name as a string. */
|
/* Canonical host name as a string. */
|
||||||
|
|
||||||
extern char *host_canonical;
|
extern char *host_name;
|
||||||
|
|
||||||
/* Canonical target name as a string. */
|
/* Canonical target name as a string. */
|
||||||
|
|
||||||
extern char *target_canonical;
|
extern char *target_name;
|
||||||
|
|
||||||
extern char lang_frame_mismatch_warn[]; /* language.c */
|
extern char lang_frame_mismatch_warn[]; /* language.c */
|
||||||
|
|
||||||
@ -2183,10 +2183,10 @@ print_gdb_version (stream)
|
|||||||
GDB_FILE *stream;
|
GDB_FILE *stream;
|
||||||
{
|
{
|
||||||
fprintf_filtered (stream, "\
|
fprintf_filtered (stream, "\
|
||||||
GDB %s (%s", version, host_canonical);
|
GDB %s (%s", version, host_name);
|
||||||
|
|
||||||
if (strcmp(host_canonical, target_canonical))
|
if (!STREQ (host_name, target_name))
|
||||||
fprintf_filtered (stream, " --target %s", target_canonical);
|
fprintf_filtered (stream, " --target %s", target_name);
|
||||||
|
|
||||||
fprintf_filtered (stream, "), ");
|
fprintf_filtered (stream, "), ");
|
||||||
wrap_here("");
|
wrap_here("");
|
||||||
|
Reference in New Issue
Block a user