# Start the inferior
if {![runto_main]} {
- return 0
+ return
}
# Create a breakpoint in each function from which we want to test
clean_restart ${testfile}
if {![runto_main]} {
- return 0
+ return
}
# Check that inserting breakpoint on read_small inlined function inserts
# - continue, the program exits.
if {![runto_main]} {
- return 0
+ return
}
gdb_test "catch assert if Global_Var = 2" \
####################################
if {![runto_main]} {
- return 0
+ return
}
gdb_test "catch exception" \
# - continue, the program exits.
if {![runto_main]} {
- return 0
+ return
}
gdb_test "catch exception Program_Error" \
# the program.
if {![runto_main]} {
- return 0
+ return
}
gdb_test "tcatch exception" \
gdb_load_shlib $sofile
if {![runto_main]} {
- return 0
+ return
}
gdb_test "catch exception some_kind_of_error" \
"Catchpoint $decimal, exception at $hex in foo \\\(\\\).*at .*foo.adb:$decimal$eol$decimal$sp$when Storage_Error =>"
if {![runto_main]} {
- return 0
+ return
}
############################################
}
if { $supported == 0 } {
- return 0
+ return
}
gdb_test "p get(\"Hello world!\")" \
clean_restart ${testfile}
if {![runto_main]} {
- return 0
+ return
}
gdb_test "info exceptions" \
# - continue, the program exits.
if {[mi_runto_main] < 0} {
- return 0
+ return
}
mi_gdb_test "-catch-assert -c \"Global_Var = 2\"" \
with_test_prefix "scenario 1" {
if {[mi_runto_main] < 0} {
- return 0
+ return
}
}
with_test_prefix "scenario 2" {
mi_delete_breakpoints
if {[mi_runto_main] < 0} {
- return 0
+ return
}
}
with_test_prefix "scenario 1" {
if {[mi_runto_main] < 0} {
- return 0
+ return
}
}
with_test_prefix "scenario 2" {
mi_delete_breakpoints
if {[mi_runto_main] < 0} {
- return 0
+ return
}
}
mi_clean_restart $::testfile
if {[mi_runto_main] < 0} {
- return 0
+ return
}
set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
mi_clean_restart $::testfile
if {[mi_runto_main] < 0} {
- return 0
+ return
}
mi_delete_breakpoints
mi_clean_restart $::testfile
if {[mi_runto_main] < 0} {
- return 0
+ return
}
set bp_location [gdb_get_line_number "BREAK" ${testdir}/foo.adb]
mi_clean_restart $::testfile
if {[mi_runto_main] < 0} {
- return 0
+ return
}
mi_delete_breakpoints
mi_clean_restart $::testfile
if {[mi_runto_main] < 0} {
- return 0
+ return
}
# Continue until STOP_1, and create a varobj for variables "A" and "B".
mi_clean_restart $::testfile-$scenario
if {[mi_runto_main] < 0} {
- return 0
+ return
}
set bp_location [gdb_get_line_number "STOP" ${testdir}/bar.adb]
mi_gdb_test "-gdb-set debug-file-directory \"\"" ".*"
if {![mi_runto "task_switch.break_me"]} {
- return 0
+ return
}
# Verify that "-stack-list-arguments" does not cause the debugger to
####################################
if {![mi_runto "task_switch.break_me"]} {
- return 0
+ return
}
set ada_task_info_hdr \
mi_clean_restart $::testfile
if {[mi_runto_main] < 0} {
- return 0
+ return
}
set bp_location [gdb_get_line_number "STOP" ${testdir}/mi_access.adb]
mi_clean_restart $::testfile-$scenario
if {[mi_runto_main] < 0} {
- return 0
+ return
}
set bp_location [gdb_get_line_number "STOP" ${testdir}/bar.adb]
mi_clean_restart $::testfile-$scenario
if {[mi_runto_main] < 0} {
- return 0
+ return
}
set bp_location [gdb_get_line_number "STOP" ${testdir}/bar.adb]
mi_clean_restart $::testfile-$scenario
if {[mi_runto_main] < 0} {
- return 0
+ return
}
set bp_location [gdb_get_line_number "STOP" ${testdir}/pkg.adb]
-re " = false\r\n$gdb_prompt $" {
kfail ada/12607 $test
untested ${testdir}.exp
- return 0
+ return
}
-re " = true\r\n$gdb_prompt $" {
pass $test