]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/readline: add readline library version to 'show configuration'
authorAndrew Burgess <aburgess@redhat.com>
Wed, 30 Oct 2024 11:44:23 +0000 (11:44 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 12 Nov 2024 13:58:19 +0000 (13:58 +0000)
commitb0c6153ccfbbcf6c57f7eae2efbdea8019e0cba2
tree7694128d95cfbb71a42747ba3a8be4c1418fa502
parent1048062a3f853cea765416ca819cee441e58ef40
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.
gdb/NEWS
gdb/doc/gdb.texinfo
gdb/testsuite/gdb.base/maint.exp
gdb/top.c