diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-04-12 08:57:07 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-04-12 08:57:07 +0000 |
commit | 6eaaf48b1c3ff871cdcd180c172a72271fe29588 (patch) | |
tree | c1ce5c5514f0ede25a49d6b52eabb57286ca3f73 /gdb/doc | |
parent | 3bcd3d1135c711b312567ad14b32dee411ac3fd4 (diff) | |
download | gdb-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/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 23 |
2 files changed, 29 insertions, 1 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index d62a5a6..186e3d7 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,10 @@ +2013-04-12 Eli Zaretskii <eliz@gnu.org> + + * gdb.texinfo (Mode Options): Document '-configuration'. + (Help): Document "show configuration". + (Bug Reporting): Add requirements to include the configuration + details in bug reports. + 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com> * Makefile.in (MAN1S): Add gcore.1. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 97d88ec..fa37b82 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -1268,6 +1268,12 @@ memory usage after it completes each command and returns to the prompt. This option causes @value{GDBN} to print its version number and no-warranty blurb, and exit. +@item -configuration +@cindex @code{--configuration} +This option causes @value{GDBN} to print details about its build-time +configuration parameters, and then exit. These details can be +important when reporting @value{GDBN} bugs (@pxref{GDB Bugs}). + @end table @node Startup @@ -1841,7 +1847,7 @@ values, you can use @code{show} with no arguments; you may also use @end table @c @end group -Here are three miscellaneous @code{show} subcommands, all of which are +Here are several miscellaneous @code{show} subcommands, all of which are exceptional in lacking corresponding @code{set} commands: @table @code @@ -1872,6 +1878,15 @@ Display information about permission for copying @value{GDBN}. Display the @sc{gnu} ``NO WARRANTY'' statement, or a warranty, if your version of @value{GDBN} comes with one. +@kindex show configuration +@item show configuration +Display detailed information about the way @value{GDBN} was configured +when it was built. This displays the optional arguments passed to the +@file{configure} script and also configuration parameters detected +automatically by @command{configure}. When reporting a @value{GDBN} +bug (@pxref{GDB Bugs}), it is important to include this information in +your report. + @end table @node Running @@ -34617,6 +34632,12 @@ The type of machine you are using, and the operating system name and version number. @item +The details of the @value{GDBN} build-time configuration. +@value{GDBN} shows these details if you invoke it with the +@option{--configuration} command-line option, or if you type +@code{show configuration} at @value{GDBN}'s prompt. + +@item What compiler (and its version) was used to compile @value{GDBN}---e.g.@: ``@value{GCC}--2.8.1''. |