# tls.exp -- Expect script to test thread-local storage
-# Copyright (C) 1992, 2003, 2007, 2008, 2009, 2010
+# Copyright (C) 1992, 2003, 2007, 2008, 2009, 2010, 2011
# Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
unsupported "continue to first thread: system does not support TLS"
return -1
}
- -re ".*Program exited normally.*$gdb_prompt $" {
+ -re ".*$inferior_exited_re normally.*$gdb_prompt $" {
fail "continue to first thread: program runaway"
}
-re ".*Pass 0 done.*Pass 1 done.*$gdb_prompt $" {
set no_of_threads 0
send_gdb "info thread\n"
gdb_expect {
- -re "^info thread\[ \t\r\n\]+ *Id .*Frame\[ \t\r\n\]|(\[0-9\]+) *Thread.*$gdb_prompt $" {
+ -re "^info thread\[ \t\r\n\]+ *Id .*Frame\[ \t\r\n\]+(\[0-9\]+) *Thread.*$gdb_prompt $" {
set no_of_threads $expect_out(1,string)
pass "get number of threads"
}
gdb_test "info address a_global" \
".*a_global.*static storage at address.*" "info address a_global"
-gdb_test "info address me" ".*me.*is a complex DWARF expression:.*" \
+gdb_test "info address me" ".*me.*is a (complex DWARF expression:|variable).*" \
"info address me"