@@ -34,16 +34,16 @@ load_lib gdbserver-support.exp
require allow_gdbserver_tests
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile] == -1} {
- return -1
+ return
}
# Split out BINFILE.debug. Remove debug from BINFILE.
if {[gdb_gnu_strip_debug $binfile] != 0} {
- return -1
+ return
}
# Get the '.build-id/xx/xxx...xxx' part of the filename.
set build_id_filename [build_id_debug_filename_get $binfile]
@@ -24,11 +24,11 @@ require allow_gdbserver_tests
standard_testfile
set executable ${testfile}
if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
proc do_test {nonstop} {
global binfile
global gdb_prompt
@@ -26,11 +26,11 @@ load_lib gdbserver-support.exp
standard_testfile
require allow_gdbserver_tests
if { [build_executable "failed to prepare" $testfile $srcfile debug] } {
- return -1
+ return
}
# Test connecting GDB to GDBserver without loading a symbol file.
#
# SYSROOT is the desired sysroot string
@@ -21,11 +21,11 @@ load_lib gdbserver-support.exp
require allow_gdbserver_tests
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
# Test spawning gdbserver with a program, connect to it and run to
# main, with both multiprocess extensions on and off.
proc do_test {multiprocess} {
@@ -25,11 +25,11 @@ standard_testfile
require allow_gdbserver_tests
require can_spawn_for_attach
if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
# Run the test. TARGET_NON_STOP and TARGET_ASYNC should be 'on'
# or 'off'. TO_DISABLE should be either the empty string, or
# something that can be passed to gdbserver's --disable-packet command
@@ -22,11 +22,11 @@ load_lib gdbserver-support.exp
standard_testfile server.c
require allow_gdbserver_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
# allow_xml_test must be called while gdb is not running.
set do_xml_test [allow_xml_test]
@@ -20,11 +20,11 @@ load_lib gdbserver-support.exp
standard_testfile wrapper.c
require allow_gdbserver_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
save_vars { GDBFLAGS } {
# If GDB and GDBserver are both running locally, set the sysroot to avoid
# reading files via the remote protocol.
@@ -46,11 +46,11 @@ if { [info proc gdb_reconnect] == "" } {
}
standard_testfile
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
# Core of the test. DO_KILL_P controls whether we kill one of the
# inferiors before reconnecting. And FOLLOW_CHILD_P controls whether
# we follow the child or the parent at the fork.
@@ -21,11 +21,11 @@ load_lib gdbserver-support.exp
standard_testfile server.c
require allow_gdbserver_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
# Make sure we're disconnected, in case we're testing with an
# extended-remote board, therefore already connected.
gdb_test "disconnect" ".*"
@@ -33,11 +33,11 @@ if { $gdbserver == "" } {
return
}
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile]} {
- return -1
+ return
}
# EXTENDED_P is a boolean, when true gdbserver is started with --multi, and
# GDB connects using extended-remote protocol. Otherwise, no --multi flag
# is passed, and GDB connects with the remote protocol.
@@ -22,11 +22,11 @@ load_lib gdbserver-support.exp
standard_testfile server.c
require allow_gdbserver_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
save_vars { GDBFLAGS } {
# If GDB and GDBserver are both running locally, set the sysroot to avoid
# reading files via the remote protocol.
@@ -26,11 +26,11 @@ standard_testfile
set unresolvable_thread_db_path "/foo/bar"
require allow_gdbserver_tests
if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- return -1
+ return
}
save_vars { GDBFLAGS } {
# If GDB and GDBserver are both running locally, set the sysroot to avoid
# reading files via the remote protocol.
@@ -22,11 +22,11 @@ require allow_gdbserver_tests
standard_testfile .S
if { [prepare_for_testing ${testfile}.exp $testfile \
$srcfile {debug additional_flags=-nostdlib} ] } {
- return -1
+ return
}
clean_restart
gdb_test_no_output "set remote exec-file $binfile" \
@@ -30,16 +30,16 @@ require {!is_remote host}
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile \
{debug build-id}] == -1} {
- return -1
+ return
}
# Split out BINFILE.debug. Remove debug from BINFILE.
if {[gdb_gnu_strip_debug $binfile] != 0} {
- return -1
+ return
}
# Get the '.build-id/xx/xxx...xxx' part of the filename.
set build_id_filename [build_id_debug_filename_get $binfile]
@@ -18,11 +18,11 @@ load_lib gdbserver-support.exp
require allow_gdbserver_tests
standard_testfile normal.c
if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
set target_binfile [gdb_remote_download target $binfile]
# Test running GDB without providing a local binary for it. In order
@@ -26,11 +26,11 @@ require allow_gdbserver_tests
# We want to have control over where we start gdbserver.
require {!is_remote target}
if { [prepare_for_testing "failed to prepare" $testfile $srcfile debug] } {
- return -1
+ return
}
# Make sure we're disconnected, in case we're testing with an
# extended-remote board, therefore already connected.
gdb_test "disconnect" ".*"
@@ -20,11 +20,11 @@ load_lib gdbserver-support.exp
# are present.
require allow_gdbserver_tests allow_shlib_tests
standard_testfile server.c
if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
- return -1
+ return
}
# Make sure we're disconnected, in case we're testing with an
# extended-remote board, therefore already connected.
gdb_test "disconnect" ".*"
@@ -25,11 +25,11 @@ standard_testfile multi-ui-errors.c
require allow_gdbserver_tests allow_python_tests
if {[build_executable "failed to prepare" ${testfile} \
${srcfile}] == -1} {
- return -1
+ return
}
set target_binfile [gdb_remote_download target $binfile]
set host_binfile [gdb_remote_download host $binfile]
@@ -23,11 +23,11 @@ load_lib gdbserver-support.exp
standard_testfile
require allow_gdbserver_tests
if { [build_executable "failed to prepare" ${testfile}] } {
- return -1
+ return
}
# Spawn GDBserver, run to main, extract GDBserver's PID and save it in
# the SERVER_PID global.
@@ -22,11 +22,11 @@ load_lib gdbserver-support.exp
standard_testfile server.c
require allow_gdbserver_tests
if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
# Make sure we're disconnected, in case we're testing with an
# extended-remote board, therefore already connected.
gdb_test "disconnect" ".*"
@@ -40,11 +40,11 @@ if { $gdbserver == "" } {
standard_testfile normal.c
set executable ${testfile}
if {[build_executable "failed to prepare" $testfile $srcfile debug]} {
- return -1
+ return
}
# Start GDB using remote type TARGET, which should be either "remote"
# or "extended-remote". Check the output of 'info connections', and
# the contents of the gdb.TargetConnection.details string.
@@ -22,11 +22,11 @@ load_lib gdbserver-support.exp
standard_testfile server.c
require allow_gdbserver_tests
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
- return -1
+ return
}
save_vars { GDBFLAGS } {
# If GDB and GDBserver are both running locally, set the sysroot to avoid
# reading files via the remote protocol.
@@ -30,11 +30,11 @@ set srclibfile ${testfile}-lib.c
set binlibfile [standard_output_file ${testfile}.so]
if { [gdb_compile_shlib "${srcdir}/${subdir}/${srclibfile}" "${binlibfile}" {debug}] != ""
|| [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable "shlib=${binlibfile} build-id"] != "" } {
untested "failed to compile"
- return -1
+ return
}
set interp_system [section_get ${binfile} .interp]
verbose -log "system interpreter is: $interp_system"
@@ -32,11 +32,11 @@ load_lib gdbserver-support.exp
require allow_gdbserver_tests
standard_testfile
if { [build_executable "failed to prepare" $testfile $srcfile {debug pthreads}] == -1 } {
- return -1
+ return
}
set target_binfile [gdb_remote_download target $binfile]
# Run the tests with different features of GDBserver disabled.
@@ -24,11 +24,11 @@ load_lib gdbserver-support.exp
require allow_gdbserver_tests
standard_testfile
if { [build_executable "failed to prepare" $testfile $srcfile] == -1 } {
- return -1
+ return
}
set target_binfile [gdb_remote_download target $binfile]
# Run the tests with different features of GDBserver disabled.
@@ -22,11 +22,11 @@ load_lib gdbserver-support.exp
require allow_gdbserver_tests
standard_testfile
if {[build_executable "failed to prepare" $testfile $srcfile "additional_flags=--no-builtin"] == -1} {
- return -1
+ return
}
set target_binfile [gdb_remote_download target $binfile]
set host_binfile [gdb_remote_download host $binfile]
@@ -24,11 +24,11 @@ load_lib gdbserver-support.exp
require allow_gdbserver_tests !use_gdb_stub
standard_testfile
if { [build_executable "failed to prepare" $testfile $srcfile debug] } {
- return -1
+ return
}
clean_restart
# Some boards specifically set the sysroot to the empty string to
@@ -221,11 +221,11 @@ if { [allow_python_tests] } {
sleep 1
set res [remote_exec target "touch $target_exec"]
set status [lindex $res 0]
if { $status != 0 } {
fail "touching executable on target"
- return -1
+ return
}
# Start the inferior again, we expect to see the symbols being re-read
# from the remote file.
start_inferior "start inferior a third time" true
@@ -21,11 +21,11 @@ standard_testfile
require allow_gdbserver_tests
if { [build_executable "failed to prepare" $::testfile $::srcfile \
{debug}] } {
- return -1
+ return
}
# Don't use $binfile arg, to make sure we use the remote file target:$binfile.
clean_restart
@@ -24,11 +24,11 @@ standard_testfile
require allow_gdbserver_tests
if { [istarget *-*-mingw*]
|| [istarget *-*-cygwin*] } {
unsupported "gdbserver does not support --wrapper on this target (PR server/15967)"
- return -1
+ return
}
save_vars { GDBFLAGS } {
# If GDB and GDBserver are both running locally, set the sysroot to avoid
# reading files via the remote protocol.