public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] [gdb/testsuite] Call ldd --version in gdb.testsuite/dump-system-info.exp
@ 2024-01-17 17:52 Tom de Vries
  2024-01-17 19:10 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Tom de Vries @ 2024-01-17 17:52 UTC (permalink / raw)
  To: gdb-patches

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
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
...

Tested on x86_64-linux.
---
 gdb/testsuite/gdb.testsuite/dump-system-info.exp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gdb/testsuite/gdb.testsuite/dump-system-info.exp b/gdb/testsuite/gdb.testsuite/dump-system-info.exp
index 72f90f0cf5d..353f3661916 100644
--- a/gdb/testsuite/gdb.testsuite/dump-system-info.exp
+++ b/gdb/testsuite/gdb.testsuite/dump-system-info.exp
@@ -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"

base-commit: 16666ccc91295d1568c5c2cb0e7600694840dfd9
-- 
2.35.3


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] [gdb/testsuite] Call ldd --version in gdb.testsuite/dump-system-info.exp
  2024-01-17 17:52 [PATCH] [gdb/testsuite] Call ldd --version in gdb.testsuite/dump-system-info.exp Tom de Vries
@ 2024-01-17 19:10 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2024-01-17 19:10 UTC (permalink / raw)
  To: Tom de Vries; +Cc: gdb-patches

>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:

Tom> Once in a while I'm looking at the gdb.log of an entire testsuite run, and I'm
Tom> trying to establish what glibc version is used.  Sometimes this is possible,
Tom> sometimes not.

Tom> Make this easy by calling ldd --version in test-case
Tom> gdb.testsuite/dump-system-info.exp, which for instance on openSUSE Leap 15.4

Seems fine to me.
Approved-By: Tom Tromey <tom@tromey.com>

Tom

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-17 19:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-17 17:52 [PATCH] [gdb/testsuite] Call ldd --version in gdb.testsuite/dump-system-info.exp Tom de Vries
2024-01-17 19:10 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).