]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: check that "info shared" and "info linker-namespaces" before running...
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 16 Jun 2025 19:32:59 +0000 (15:32 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 26 Jun 2025 18:08:31 +0000 (14:08 -0400)
commitf9fca5aa58340fe3cedb3fdb742030690403a518
tree5ba97a08a4df047d126360ed808de393c6522d4b
parent221efb6f54a8568d39be370901821d855aba2e83
gdb/testsuite: check that "info shared" and "info linker-namespaces" before running don't crash

While writing my solib_ops C++ification series, I broke this, and it
didn't seem to be caught by the testsuite.  Add a test for those.

The exact message for "info linker-namespaces" varies depending on the
solib_ops of the target architecture (whether ops->num_active_namespaces
is nullptr or not).  For now, just accept any message (a crash will
still be caught).  A later patch in this series will make the message
consistent and update this test.

Change-Id: I6bce2ff317447bbf321fc9cbd2d42c3dcea0c683
Approved-By: Pedro Alves <pedro@palves.net>
gdb/testsuite/gdb.base/dlmopen-ns-ids.exp
gdb/testsuite/gdb.base/info-shared.exp