Implement a new command to show GDB build-time configuration parameters.
authorEli Zaretskii <eliz@gnu.org>
Fri, 12 Apr 2013 08:57:07 +0000 (08:57 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 12 Apr 2013 08:57:07 +0000 (08:57 +0000)
commit6eaaf48b1c3ff871cdcd180c172a72271fe29588
treec1ce5c5514f0ede25a49d6b52eabb57286ca3f73
parent3bcd3d1135c711b312567ad14b32dee411ac3fd4
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.
gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/main.c
gdb/top.c
gdb/top.h