From babd2ee15db7700945f6d10c5f1f7759a79ad2f6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 3 Jan 2021 03:06:28 -0500 Subject: sim: common: version: add build & homepage info when interactive This mirrors gdb behavior of dumping extra info when being run in interactive mode. It also gives us an excuse to use the otherwise unused sim_print_config. --- sim/common/sim-options.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'sim/common/sim-options.c') diff --git a/sim/common/sim-options.c b/sim/common/sim-options.c index 1d8abda..e0de39a 100644 --- a/sim/common/sim-options.c +++ b/sim/common/sim-options.c @@ -835,6 +835,21 @@ sim_print_version (SIM_DESC sd, int is_command) License GPLv3+: GNU GPL version 3 or later \ \nThis is free software: you are free to change and redistribute it.\n\ There is NO WARRANTY, to the extent permitted by law.\n"); + + if (!is_command) + return; + + sim_io_printf (sd, "This SIM was configured as:\n"); + sim_config_print (sd); + + if (REPORT_BUGS_TO[0]) + { + sim_io_printf (sd, "For bug reporting instructions, please see:\n\ + %s.\n", + REPORT_BUGS_TO); + } + sim_io_printf (sd, "Find the SIM homepage & other documentation resources \ +online at:\n .\n"); } /* Utility of sim_args_command to find the closest match for a command. -- cgit v1.1