diff options
author | Kevin Buettner <kevinb@redhat.com> | 2025-04-23 21:39:29 -0700 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2025-04-24 09:54:43 -0700 |
commit | de893f31c1a594d622d32bc19b9b30daea5db96b (patch) | |
tree | f5e2018f5b0c6e7133a1727c967f259f5a65a27c /gdb/python | |
parent | 15b409211de9c1107904dc1c0bd246b61b386c42 (diff) | |
download | binutils-de893f31c1a594d622d32bc19b9b30daea5db96b.zip binutils-de893f31c1a594d622d32bc19b9b30daea5db96b.tar.gz binutils-de893f31c1a594d622d32bc19b9b30daea5db96b.tar.bz2 |
New test - gdb.base/tls-nothreads.exp
This commit introduces a new test, gdb.base/tls-nothreads.exp.
It has a test case, a C file, which has several TLS variables in the
main program, which, once compiled and linked, should end up (in ELF
files) in .tdata and .tbss. The test compiles the program in a number
of different ways, making sure that each variable is accessible
regardless of how it was compiled.
Note that some of the compilation scenarios end up with a statically
linked executable. Prior to this series of commits, accessing TLS
variables from a statically linked program on Linux did not work.
For certain targets (x86_64, aarch64, s390x, riscv, and ppc64),
all on Linux, support has been added to GDB for accessing thread
local storage in statically linked executables. This test is
important for testing those build scenarios.
But it's also important to make sure that GDB's internal TLS support
works for other scenarios too. In order to accomplish that, the
tests are also run in a mode which forces the internal support to
be used.
It also adds a new file, gdb.base/tls-common.exp.tcl, which includes
some common definitions used by the three new TLS tests, including
the one added by this commit. In particular, it sets a TCL variable,
'internal_tls_linux_targets' which list the targets mentioned earlier.
This means that as internal TLS support is added for other targets,
the target should be listed in just one file as opposed to three
(or more if other tests using tls-common.exp.tcl are added).
Tested-By: Luis Machado <luis.machado@arm.com>
Approved-By: Luis Machado <luis.machado@arm.com>
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions