]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/testsuite] Call ldd --version in gdb.testsuite/dump-system-info.exp
authorTom de Vries <tdevries@suse.de>
Thu, 18 Jan 2024 10:14:19 +0000 (11:14 +0100)
committerTom de Vries <tdevries@suse.de>
Thu, 18 Jan 2024 10:14:19 +0000 (11:14 +0100)
Once in a while I'm looking at the gdb.log of an entire testsuite run, and I'm
trying to establish what glibc version is used.  Sometimes this is possible,
sometimes not.

Make this easy by calling ldd --version in test-case
gdb.testsuite/dump-system-info.exp, which for instance on openSUSE Leap 15.4
gives:
...
$ ldd --version
ldd (GNU libc) 2.31
  ...
$
...

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
gdb/testsuite/gdb.testsuite/dump-system-info.exp

index 72f90f0cf5d8bbfc4d5d5cd607bddfdeeba9d6e0..353f36619165faf98e26838d087a172cd20686a7 100644 (file)
@@ -36,3 +36,4 @@ proc dump_info {cmd {what ""}} {
 dump_info "cat /proc/cpuinfo" "Cpuinfo"
 dump_info "uname -a"
 dump_info "lsb_release -a"
+dump_info "ldd --version"