if {[bad_dejagnu]} {
unsupported "broken DejaGnu"
- return 0
+ return
}
require can_spawn_for_attach
set corefile [core_find $binfile]
if {$corefile == ""} {
untested "unable to create or find corefile"
- return 0
+ return
}
clean_restart $executable
gdb_locate_shlib $binfile_lib
if {![runto_main]} {
- return 0
+ return
}
# Run until we have two threads.
require isnative allow_shlib_tests
if {![istarget *-linux*]} {
- return 0
+ return
}
load_lib prelink-support.exp
clean_restart ${::testfile}
if { ![runto_main] } {
- return 0
+ return
}
gdb_test "break all_threads_running" \
clean_restart ${::testfile}
if { ![runto_main] } {
- return 0
+ return
}
gdb_test "break all_threads_running" \
}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint $linenum
clean_restart ${::testfile}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint [gdb_get_line_number "insert breakpoint here"]
# required to reproduce the error with a misbehaving GDB.
if { ![istarget "*-*-linux*"] } {
- return 0
+ return
}
standard_testfile
# 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.
set gdbserver_reconnect_p 1
if { [info proc gdb_reconnect] == "" } {
unsupported "requires gdbserver reconnect"
- return 0
+ return
}
standard_testfile
clean_restart $executable
if {![runto_main]} {
- return 0
+ return
}
gdb_test "continue" "signal SIGUSR1.*" "continue to signal"
pass $test
} else {
fail $test
- return 0
+ return
}
# Check that thread 2 is re-selected.
}
if {![runto_main]} {
- return 0
+ return
}
# Have SIGSTOP sent to the inferior.
clean_restart ${::testfile}
if { ![runto_main] } {
- return 0
+ return
}
gdb_test "break all_threads_running" \
#
if {![runto_main]} {
- return 0
+ return
}
# Break after all threads have been started.
clean_restart ${::testfile}
if {![runto_main]} {
- return 0
+ return
}
# Formerly: Cannot access memory at address 0xffffef7c0698
gdb_load_shlib ${binfile_lib}
if {![runto_main]} {
- return 0
+ return
}
gdb_test "print i_tls" "2" "print thread local storage variable"
gdb_load_shlib ${binfile_lib}
if {![runto_main]} {
- return 0
+ return
}
gdb_test "print so_extern" "0x0" "print thread local storage variable"
clean_restart ${executable}
if {![runto_main]} {
- return 0
+ return
}
# FAIL was: type = <thread local variable, no debug info>
require allow_hw_watchpoint_access_tests allow_hw_watchpoint_multi_tests
if {![istarget *-*-linux*]} {
- return 0
+ return
}
standard_testfile
#
if {![runto_main]} {
- return 0
+ return
}
set args_0 0
#
if {![runto_main]} {
- return 0
+ return
}
gdb_test "break thread_started" \
# Run to `main' where we begin our tests.
if {![runto_main]} {
- return 0
+ return
}
# Set some default values.