aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-04-12 08:57:07 +0000
committerEli Zaretskii <eliz@gnu.org>2013-04-12 08:57:07 +0000
commit6eaaf48b1c3ff871cdcd180c172a72271fe29588 (patch)
treec1ce5c5514f0ede25a49d6b52eabb57286ca3f73 /gdb/cli
parent3bcd3d1135c711b312567ad14b32dee411ac3fd4 (diff)
downloadgdb-6eaaf48b1c3ff871cdcd180c172a72271fe29588.zip
gdb-6eaaf48b1c3ff871cdcd180c172a72271fe29588.tar.gz
gdb-6eaaf48b1c3ff871cdcd180c172a72271fe29588.tar.bz2
Implement a new command to show GDB build-time configuration parameters.
* top.c (print_gdb_configuration): New function, displays the details about GDB configure-time parameters. (print_gdb_version): Mention "show configuration". * cli/cli-cmds.c (show_configuration): New function. (_initialize_cli_cmds): Add the "show configuration" command. * main.c (captured_main) <print_configuration>: New static var. <long_options>: Use it. If --configuration was given, call print_gdb_configuration. * doc/gdb.texinfo (Mode Options): Document '-configuration'. (Help): Document "show configuration". (Bug Reporting): Add requirements to include the configuration details in bug reports.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-cmds.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index c4721bd..a5b2572 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -314,6 +314,12 @@ show_version (char *args, int from_tty)
printf_filtered ("\n");
}
+static void
+show_configuration (char *args, int from_tty)
+{
+ print_gdb_configuration (gdb_stdout);
+}
+
/* Handle the quit command. */
void
@@ -1756,6 +1762,9 @@ the previous command number shown."),
add_cmd ("version", no_set_class, show_version,
_("Show what version of GDB this is."), &showlist);
+ add_cmd ("configuration", no_set_class, show_configuration,
+ _("Show how GDB was configured at build time."), &showlist);
+
/* If target is open when baud changes, it doesn't take effect until
the next open (I think, not sure). */
add_setshow_zinteger_cmd ("remotebaud", no_class, &baud_rate, _("\