]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/testsuite: Reduce gdb.threads/threadcrash.exp reliance on libc symbols
authorGuinevere Larsen <blarsen@redhat.com>
Mon, 11 Mar 2024 09:57:32 +0000 (10:57 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 11 Mar 2024 09:57:32 +0000 (10:57 +0100)
commitf215d2d8ad7bc1f80e68a962196f0e6dc02951c9
tree1078492d15b188b1a67fc436d9b3be0b36956a28
parent623840fc07dd8f3b21276d018d442cdf60292e73
gdb/testsuite: Reduce gdb.threads/threadcrash.exp reliance on libc symbols

The test gdb.threads/threadcrash.exp demanded GDB to fully unwind and
print the names of all functions. However, some of the functions are
from the libc library, and so the test implicitly demanded libc symbols
to be available, and would fail otherwise, as was raised in PR
gdb/31293.

This commit changes it so we only explicitly check for functions that
are not provided by threadcrash.c if they are indeed available.

Tested on arm-linux and x86_64-linux.

Approved-By: Tom de Vries <tdevries@suse.de>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31293
gdb/testsuite/gdb.threads/threadcrash.exp