@@ -20,7 +20,7 @@ if { [skip_ada_tests] } { return -1 }
standard_ada_testfile foo
set have_xfail 0
-if { [is_aarch64_target] } then {
+if {[is_aarch64_target]} {
if { [gcc_major_version] <= 8 } {
set have_xfail 1
}
@@ -28,7 +28,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" }
clean_restart ${testfile}
-if ![runto "foo"] then {
+if {![runto "foo"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "START" ${testdir}/foo_na07_019.adb]
-if ![runto "foo_na07_019.adb:$bp_location" ] then {
+if {![runto "foo_na07_019.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "BREAK" ${testdir}/enum_with_gap_main.adb]
-if ![runto "enum_with_gap_main.adb:$bp_location" ] then {
+if {![runto "enum_with_gap_main.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb]
-if ![runto "foo.adb:$bp_location" ] then {
+if {![runto "foo.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -29,7 +29,7 @@ foreach_with_prefix scenario {all minimal} {
clean_restart ${testfile}-${scenario}
set bp_location [gdb_get_line_number "BREAK" ${testdir}/foo_q418_043.adb]
- if ![runto "foo_q418_043.adb:$bp_location" ] then {
+ if {![runto "foo_q418_043.adb:$bp_location"]} {
perror "Couldn't run ${testfile}-${scenario}"
return
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "START" ${testdir}/bar.adb]
-if ![runto "bar.adb:$bp_location" ] then {
+if {![runto "bar.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -27,7 +27,7 @@ clean_restart ${testfile}
# Start the inferior
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
@@ -68,7 +68,7 @@ gdb_test "cont" \
# Instead, it is returned using the struct convention, and the debugger
# unfortunately cannot find the address of the result. The following
# test is therefore expected to fail for all hppa targets except hppa64.
-if { ! [istarget "hppa*64*-*-*"] } then {
+if {![istarget "hppa*64*-*-*"]} {
setup_xfail "hppa*-*-*"
}
@@ -29,7 +29,7 @@ foreach_with_prefix scenario {all minimal} {
clean_restart ${testfile}-${scenario}
set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
- if ![runto "foo.adb:$bp_location" ] then {
+ if {![runto "foo.adb:$bp_location"]} {
perror "Couldn't run ${testfile}-${scenario}"
return
}
@@ -46,7 +46,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $options] != "" } {
clean_restart ${testfile}
-if ![runto "foo_h731_021"] then {
+if {![runto "foo_h731_021"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -25,7 +25,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
-if ![runto "foo.adb:$bp_location" ] then {
+if {![runto "foo.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -32,7 +32,7 @@ clean_restart ${testfile}
set eol "\[\r\n\]+"
set sp "\[ \t\]*"
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
@@ -60,7 +60,7 @@ gdb_test_multiple "catch exception" $msg {
# - continue, we should see the second failed assertion
# - continue, the program exits.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
@@ -40,7 +40,7 @@ set catch_exception_info \
# 1. Try catching all exceptions. #
####################################
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
@@ -88,7 +88,7 @@ gdb_test "continue" \
# - continue, we should see the unhandled Constrait_Error exception
# - continue, the program exits.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
@@ -148,7 +148,7 @@ gdb_test "continue" \
# at any of the other exceptions that are being raised inside
# the program.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
@@ -67,7 +67,7 @@ clean_restart ${testfile}
# loaded for remote targets.
gdb_load_shlib $sofile
-if {![runto_main]} then {
+if {![runto_main]} {
return 0
}
@@ -25,7 +25,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
-if ![runto "break_me" ] then {
+if {![runto "break_me"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/foo_n612_026.adb]
-if ![runto "foo_n612_026.adb:$bp_location" ] then {
+if {![runto "foo_n612_026.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -28,7 +28,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/main.adb]
-if {![runto "main.adb:$bp_location"]} then {
+if {![runto "main.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
-if ![runto "foo.adb:$bp_location" ] then {
+if {![runto "foo.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "BREAK" ${testdir}/pack.adb]
-if ![runto "pack.adb:$bp_location" ] then {
+if {![runto "pack.adb:$bp_location"]} {
return -1
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
-if ![runto "foo.adb:$bp_location" ] then {
+if {![runto "foo.adb:$bp_location"]} {
return -1
}
@@ -44,7 +44,7 @@ set catchpoint_storage_error_msg \
# Check that runtime supports catchpoint. #
############################################
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
@@ -30,7 +30,7 @@ set any_addr "0x\[0-9a-zA-Z\]+"
set eol "\[\r\n\]+"
set sp "\[ \t\]*"
-if ![runto break_me] then {
+if {![runto break_me]} {
perror "Couldn't run ${testfile}"
return
}
@@ -25,7 +25,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
perror "Couldn't run ${testfile}"
return
}
@@ -27,7 +27,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $flags] != "" } {
clean_restart ${testfile}
set bp_location [gdb_get_line_number "START" ${testdir}/main.adb]
-if ![runto "main.adb:$bp_location" ] then {
+if {![runto "main.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb]
-if ![runto "foo.adb:$bp_location" ] then {
+if {![runto "foo.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -45,7 +45,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/some_c.c]
-if ![runto "some_c.c:$bp_location"] then {
+if {![runto "some_c.c:$bp_location"]} {
return
}
@@ -25,7 +25,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" }
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable debug] != ""} {
clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/local.adb]
-if ![runto "local.adb:$bp_location" ] then {
+if {![runto "local.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -34,7 +34,7 @@ set sp "\[ \t\]*"
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
@@ -34,7 +34,7 @@ set eol "\[\r\n\]+"
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
@@ -33,7 +33,7 @@ set eol "\[\r\n\]+"
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
@@ -34,7 +34,7 @@ set eol "\[\r\n\]+"
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
@@ -38,7 +38,7 @@ mi_gdb_load ${binfile}
# This test won't work properly if system debuginfo is installed.
mi_gdb_test "-gdb-set debug-file-directory \"\"" ".*"
-if ![mi_runto "task_switch.break_me"] then {
+if {![mi_runto "task_switch.break_me"]} {
return 0
}
@@ -39,7 +39,7 @@ mi_gdb_load ${binfile}
# 1. Try catching all exceptions. #
####################################
-if ![mi_runto "task_switch.break_me"] then {
+if {![mi_runto "task_switch.break_me"]} {
return 0
}
@@ -25,7 +25,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable ""] != "" } {
clean_restart ${testfile}
-if ![runto "_ada_foo_qb07_057" ] then {
+if {![runto "_ada_foo_qb07_057"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -29,7 +29,7 @@ foreach_with_prefix scenario {all minimal} {
clean_restart ${testfile}-${scenario}
set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb]
- if ![runto "foo.adb:$bp_location" ] then {
+ if {![runto "foo.adb:$bp_location"]} {
perror "Couldn't run ${testfile}-${scenario}"
return
}
@@ -25,7 +25,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
-if ![runto "foo" ] then {
+if {![runto "foo"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -27,7 +27,7 @@ set has_runtime_debug_info [gnat_runtime_has_debug_info]
clean_restart ${testfile}
-if ![runto "pck.adb:20" ] then {
+if {![runto "pck.adb:20"]} {
return -1
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/bar_o203_012.adb]
-if ![runto "bar_o203_012.adb:$bp_location" ] then {
+if {![runto "bar_o203_012.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
-if ![runto "foo.adb:$bp_location" ] then {
+if {![runto "foo.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -25,7 +25,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
-if ![runto pck.adb:20] then {
+if {![runto pck.adb:20]} {
perror "Couldn't run ${testfile}"
return
}
@@ -29,7 +29,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "START" ${testdir}/storage.adb]
-if ![runto "storage.adb:$bp_location" ] then {
+if {![runto "storage.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/a.adb]
-if ![runto "a.adb:$bp_location" ] then {
+if {![runto "a.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -25,7 +25,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug optimize=-
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
perror "Couldn't run ${testfile}"
return
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "START" ${testdir}/parse.adb]
-if ![runto "parse.adb:$bp_location" ] then {
+if {![runto "parse.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "START" ${testdir}/p.adb]
-if ![runto "p.adb:$bp_location" ] then {
+if {![runto "p.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -30,7 +30,7 @@ clean_restart ${testfile}
# testcase is to generate this core file, so we can then exercise
# task-switching when debugging from core files.
-if { ![runto request_for_crash ]} then {
+if {![runto request_for_crash]} {
untested "couldn't run to Request_For_Crash"
return -1
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/vsizelim.adb]
-if ![runto "vsizelim.adb:$bp_location" ] then {
+if {![runto "vsizelim.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
-if ![runto "foo.adb:$bp_location" ] then {
+if {![runto "foo.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}
@@ -26,7 +26,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb]
-if ![runto "foo.adb:$bp_location" ] then {
+if {![runto "foo.adb:$bp_location"]} {
perror "Couldn't run ${testfile}"
return
}