diff options
author | Andrew Burgess <aburgess@redhat.com> | 2024-10-30 11:44:23 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2024-11-12 13:58:19 +0000 |
commit | b0c6153ccfbbcf6c57f7eae2efbdea8019e0cba2 (patch) | |
tree | 7694128d95cfbb71a42747ba3a8be4c1418fa502 /gdb/doc | |
parent | 1048062a3f853cea765416ca819cee441e58ef40 (diff) | |
download | gdb-b0c6153ccfbbcf6c57f7eae2efbdea8019e0cba2.zip gdb-b0c6153ccfbbcf6c57f7eae2efbdea8019e0cba2.tar.gz gdb-b0c6153ccfbbcf6c57f7eae2efbdea8019e0cba2.tar.bz2 |
gdb/readline: add readline library version to 'show configuration'
When debugging readline issues I'd like an easy way to know (for sure)
what version of readline GDB is using. This could also be useful when
writing readline tests, knowing the precise readline version will
allow us to know if we expect a test to pass or not.
Add the readline library version to the output of the 'show
configuration' command. Also include a suffix indicating if we are
using the system readline, or the statically linked in readline.
The information about static readline vs shared readline can be
figured out from the configure command output, but having it repeated
in the readline version line makes it super easy to grok within tests,
and it's super cheap, so I don't see this as a problem.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/gdb.texinfo | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 53f41e6..99720f1 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -2491,6 +2491,7 @@ 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. +@anchor{show configuration} @kindex show configuration @item show configuration Display detailed information about the way @value{GDBN} was configured @@ -2500,6 +2501,11 @@ automatically by @command{configure}. When reporting a @value{GDBN} bug (@pxref{GDB Bugs}), it is important to include this information in your report. +This commands also displays the version number of the Readline library +that @value{GDBN} is using. After the version number will appear +either @samp{(system)} indicating @value{GDBN} is using the shared +system Readline library, or @samp{(internal)} indicating @value{GDBN} +is using a statically linked in version of the Readline library. @end table @node Running @@ -27534,6 +27540,10 @@ This command accepts the current line for execution and fetches the next line relative to the current line from the history for editing. Any argument is ignored. +It is possible to discover which version of Readline @value{GDBN} is +using with the @kbd{show configuration} command (@pxref{show +configuration}). + @node Command History @section Command History @cindex command history |