aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2024-04-11 13:43:52 +0200
committerTom de Vries <tdevries@suse.de>2024-04-11 13:43:52 +0200
commit31c21e2c13d85793b525f74aa911eb28700ed89c (patch)
treeb5876e7f5eaf77d38a9d193f167e6ab08d189607 /binutils
parentcafca5eaa068eaaa3e3a2ffab356efb4714c2968 (diff)
downloadgdb-31c21e2c13d85793b525f74aa911eb28700ed89c.zip
gdb-31c21e2c13d85793b525f74aa911eb28700ed89c.tar.gz
gdb-31c21e2c13d85793b525f74aa911eb28700ed89c.tar.bz2
[gdb/testsuite] Fix gdb.threads/access-mem-running-thread-exit.exp with clang
When running test-case gdb.threads/access-mem-running-thread-exit.exp with clang, we run into: ... (gdb) print global_var = 555^M No symbol "global_var" in current context.^M (gdb) FAIL: gdb.threads/access-mem-running-thread-exit.exp: all-stop: \ access mem (write to global_var, inf=2, iter=1) ... The problem is that clang removes the unused variable. Fix this in the same way as done in commit b4f767131f7 ("Fix gdb.base/align-*.exp and Clang + LTO and AIX GCC"), by incrementing the variable. Tested on x86_64-linux with gcc and clang.
Diffstat (limited to 'binutils')
0 files changed, 0 insertions, 0 deletions