@@ -44,11 +44,11 @@ proc bad_dejagnu {} {
return 0
}
if {[bad_dejagnu]} {
unsupported "broken DejaGnu"
- return 0
+ return
}
require can_spawn_for_attach
standard_testfile
@@ -28,11 +28,11 @@ if { [gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executa
}
set corefile [core_find $binfile]
if {$corefile == ""} {
untested "unable to create or find corefile"
- return 0
+ return
}
clean_restart $executable
gdb_test "core-file $corefile" "Core was generated by .*" "load core"
@@ -43,11 +43,11 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile \
}
gdb_locate_shlib $binfile_lib
if {![runto_main]} {
- return 0
+ return
}
# Run until we have two threads.
gdb_breakpoint "breakpt"
gdb_continue_to_breakpoint "first breakpt call"
@@ -13,11 +13,11 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
require isnative allow_shlib_tests
if {![istarget *-linux*]} {
- return 0
+ return
}
load_lib prelink-support.exp
set testfile "dlopen-libpthread"
@@ -45,11 +45,11 @@ proc get_dummy_frame_number { } {
}
clean_restart ${::testfile}
if { ![runto_main] } {
- return 0
+ return
}
gdb_test "break all_threads_running" \
"Breakpoint 2 at .*: file .*${srcfile}, line .*" \
"breakpoint on all_threads_running"
@@ -29,11 +29,11 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab
}
clean_restart ${::testfile}
if { ![runto_main] } {
- return 0
+ return
}
gdb_test "break all_threads_running" \
"Breakpoint 2 at .*: file .*${srcfile}, line .*" \
"breakpoint on all_threads_running"
@@ -26,11 +26,11 @@ if {[prepare_for_testing "failed to prepare" \
$testfile $srcfile {c++ debug pthreads}] == -1} {
return
}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint $linenum
gdb_continue_to_breakpoint "start line"
@@ -55,11 +55,11 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab
}
clean_restart ${::testfile}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint [gdb_get_line_number "insert breakpoint here"]
gdb_continue_to_breakpoint "continue to first breakpoint hit"
@@ -24,11 +24,11 @@
# expected to be able to reproduce the error reliably. Multiple
# executions (or increasing the number of iterations) might be
# required to reproduce the error with a misbehaving GDB.
if { ![istarget "*-*-linux*"] } {
- return 0
+ return
}
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug pthreads}] == -1} {
@@ -49,11 +49,11 @@ gdb_test_multiple "bt" "determine thread functions" {
}
# No point in continuing if we couldn't figure out which thread is which.
if { $sigusr1_thread == 0 } {
# FAIL already recorded.
- return 0
+ return
}
# Advance each thread to where we want them one at a time.
gdb_test_no_output "set scheduler-locking on"
gdb_test_no_output "set var ready = 1"
@@ -16,11 +16,11 @@
# Test that disconnecting and reconnecting doesn't lose signals.
set gdbserver_reconnect_p 1
if { [info proc gdb_reconnect] == "" } {
unsupported "requires gdbserver reconnect"
- return 0
+ return
}
standard_testfile
set executable ${testfile}
@@ -33,11 +33,11 @@ if { [gdb_compile_pthreads \
}
clean_restart $executable
if {![runto_main]} {
- return 0
+ return
}
gdb_test "continue" "signal SIGUSR1.*" "continue to signal"
# Check that it's thread 2 that is selected.
@@ -65,11 +65,11 @@ set test "reconnect after signal"
set res [gdb_reconnect]
if { [lindex $res 0] == 0 } {
pass $test
} else {
fail $test
- return 0
+ return
}
# Check that thread 2 is re-selected.
gdb_test "info threads" "\\* 2 .*" "thread 2 is selected on reconnect"
@@ -27,11 +27,11 @@ if {[prepare_for_testing "failed to prepare" \
"${testfile}" "${srcfile}" {debug pthreads}]} {
return
}
if {![runto_main]} {
- return 0
+ return
}
# Have SIGSTOP sent to the inferior.
gdb_test "handle SIGSTOP nostop noprint pass" \
[multi_line \
@@ -29,11 +29,11 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab
}
clean_restart ${::testfile}
if { ![runto_main] } {
- return 0
+ return
}
gdb_test "break all_threads_running" \
"Breakpoint 2 at .*: file .*${srcfile}, line .*" \
"breakpoint on all_threads_running"
@@ -30,11 +30,11 @@ clean_restart ${::testfile}
#
# Run to `main' where we begin our tests.
#
if {![runto_main]} {
- return 0
+ return
}
# Break after all threads have been started.
set break_line [gdb_get_line_number "Break here"]
gdb_test "b $break_line" ".*"
@@ -20,10 +20,10 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab
return
}
clean_restart ${::testfile}
if {![runto_main]} {
- return 0
+ return
}
# Formerly: Cannot access memory at address 0xffffef7c0698
gdb_test "p (int) thread_local_var" " = 42" "thread local storage"
@@ -31,11 +31,11 @@ if { [gdb_compile_shlib_pthreads ${srcdir}/${subdir}/${srcfile_lib} ${binfile_li
clean_restart ${::testfile}
gdb_load_shlib ${binfile_lib}
if {![runto_main]} {
- return 0
+ return
}
gdb_test "print i_tls" "2" "print thread local storage variable"
gdb_test "ptype i_tls" "int" "ptype of thread local storage variable"
@@ -30,11 +30,11 @@ if { [gdb_compile_shlib_pthreads ${srcdir}/${subdir}/${srcfile_lib} ${binfile_li
clean_restart ${::testfile}
gdb_load_shlib ${binfile_lib}
if {![runto_main]} {
- return 0
+ return
}
gdb_test "print so_extern" "0x0" "print thread local storage variable"
gdb_test "ptype so_extern" "void \\*" "ptype of thread local storage variable"
@@ -26,11 +26,11 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${objfile} object {debug}] != "
}
clean_restart ${executable}
if {![runto_main]} {
- return 0
+ return
}
# FAIL was: type = <thread local variable, no debug info>
gdb_test "whatis tls_var" {type = const char \*}
@@ -25,11 +25,11 @@
# could be assigned during continuation of a thread with pending SIGTRAP to the
# different/new watchpoint, just based on the watchpoint/debug register number.
require allow_hw_watchpoint_access_tests allow_hw_watchpoint_multi_tests
if {![istarget *-*-linux*]} {
- return 0
+ return
}
standard_testfile
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" ${binfile} executable [list debug additional_flags=-lrt]] != "" } {
return
@@ -37,11 +37,11 @@ gdb_test_no_output "set can-use-hw-watchpoints 1" ""
#
# Run to `main' where we begin our tests.
#
if {![runto_main]} {
- return 0
+ return
}
set args_0 0
set args_1 0
@@ -38,11 +38,11 @@ gdb_test_no_output "set can-use-hw-watchpoints 1" ""
#
# Run to `main' where we begin our tests.
#
if {![runto_main]} {
- return 0
+ return
}
gdb_test "break thread_started" \
"Breakpoint 2 at .*: file .*${srcfile}, line .*" \
"breakpoint on thread_started"
@@ -39,11 +39,11 @@ clean_restart ${::testfile}
# Force hardware watchpoints to be used.
gdb_test_no_output "set can-use-hw-watchpoints 1" ""
# Run to `main' where we begin our tests.
if {![runto_main]} {
- return 0
+ return
}
# Set some default values.
set hwatch_count 0
set count 0