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
}
clean_restart ${testfile}
-if ![runto "foo"] then {
+if {![runto "foo"]} {
perror "Couldn't run ${testfile}"
return
}
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
}
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
}
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
}
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
}
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
}
# Start the inferior
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# 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*-*-*"
}
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
}
clean_restart ${testfile}
-if ![runto "foo_h731_021"] then {
+if {![runto "foo_h731_021"]} {
perror "Couldn't run ${testfile}"
return
}
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
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
}
set eol "\[\r\n\]+"
set sp "\[ \t\]*"
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# - continue, we should see the second failed assertion
# - continue, the program exits.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# 1. Try catching all exceptions. #
####################################
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# - continue, we should see the unhandled Constrait_Error exception
# - continue, the program exits.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# at any of the other exceptions that are being raised inside
# the program.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# loaded for remote targets.
gdb_load_shlib $sofile
-if {![runto_main]} then {
+if {![runto_main]} {
return 0
}
clean_restart ${testfile}
-if ![runto "break_me" ] then {
+if {![runto "break_me"]} {
perror "Couldn't run ${testfile}"
return
}
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
}
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
}
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
}
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
}
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
}
# Check that runtime supports catchpoint. #
############################################
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
set eol "\[\r\n\]+"
set sp "\[ \t\]*"
-if ![runto break_me] then {
+if {![runto break_me]} {
perror "Couldn't run ${testfile}"
return
}
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
perror "Couldn't run ${testfile}"
return
}
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
}
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
}
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
}
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
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
}
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# 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
}
# 1. Try catching all exceptions. #
####################################
-if ![mi_runto "task_switch.break_me"] then {
+if {![mi_runto "task_switch.break_me"]} {
return 0
}
clean_restart ${testfile}
-if ![runto "_ada_foo_qb07_057" ] then {
+if {![runto "_ada_foo_qb07_057"]} {
perror "Couldn't run ${testfile}"
return
}
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
}
clean_restart ${testfile}
-if ![runto "foo" ] then {
+if {![runto "foo"]} {
perror "Couldn't run ${testfile}"
return
}
clean_restart ${testfile}
-if ![runto "pck.adb:20" ] then {
+if {![runto "pck.adb:20"]} {
return -1
}
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
}
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
}
clean_restart ${testfile}
-if ![runto pck.adb:20] then {
+if {![runto pck.adb:20]} {
perror "Couldn't run ${testfile}"
return
}
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
}
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
}
clean_restart ${testfile}
-if ![runto_main] then {
+if {![runto_main]} {
perror "Couldn't run ${testfile}"
return
}
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
}
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
}
# 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
}
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
}
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
}
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
}