diff options
author | Tom Tromey <tromey@redhat.com> | 2010-09-14 19:08:30 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-09-14 19:08:30 +0000 |
commit | 515ed532307e751b26e34347ee7258f164eb053f (patch) | |
tree | 2f6764bb18b314dcceabbd40073a729536d47eaa /gdb/testsuite/gdb.threads/tls.exp | |
parent | 7ef07ba077cec6568e767adefb995ffbc89970c0 (diff) | |
download | gdb-515ed532307e751b26e34347ee7258f164eb053f.zip gdb-515ed532307e751b26e34347ee7258f164eb053f.tar.gz gdb-515ed532307e751b26e34347ee7258f164eb053f.tar.bz2 |
gdb
PR exp/11803:
* value.c (value_static_field): Use value_of_variable.
gdb/testsuite
PR exp/11803:
* gdb.threads/tls.exp: Use C++.
(check_thread_local): Use K::another_thread_local.
* gdb.threads/tls.c (class K): New.
(another_thread_local): Now a member of K.
(spin): Update. No longer K&R C.
Diffstat (limited to 'gdb/testsuite/gdb.threads/tls.exp')
-rw-r--r-- | gdb/testsuite/gdb.threads/tls.exp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.threads/tls.exp b/gdb/testsuite/gdb.threads/tls.exp index 00991b8..343b985 100644 --- a/gdb/testsuite/gdb.threads/tls.exp +++ b/gdb/testsuite/gdb.threads/tls.exp @@ -27,7 +27,7 @@ if [istarget "*-*-linux"] then { set target_cflags "" } -if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile} ${srcdir}/${subdir}/${srcfile2}" "${binfile}" executable [list debug "incdir=${objdir}"]] != "" } { +if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile} ${srcdir}/${subdir}/${srcfile2}" "${binfile}" executable [list c++ debug "incdir=${objdir}"]] != "" } { return -1 } @@ -75,7 +75,7 @@ proc check_thread_local {number} { "= $expected_value" \ "${number} thread local storage" - gdb_test "p another_thread_local" \ + gdb_test "p K::another_thread_local" \ "= $me_variable" \ "${number} another thread local storage" @@ -83,7 +83,7 @@ proc check_thread_local {number} { ".*a_thread_local.*a thread-local variable at offset.*" \ "${number} info address a_thread_local" - gdb_test "info address another_thread_local" \ + gdb_test "info address K::another_thread_local" \ ".*another_thread_local.*a thread-local variable at offset.*" \ "${number} info address another_thread_local" } |