proc continue_to_exit_bp {} {
gdb_breakpoint "_exit" temporary
- gdb_continue_to_breakpoint "_exit" ".*_exit.*"
+ return [gdb_continue_to_breakpoint "_exit" ".*_exit.*"]
}
# If testing single-process, simply detach from the process.
}
# Run to _exit in the child.
- continue_to_exit_bp
+ return_if_fail [continue_to_exit_bp]
do_detach $multi_process $cmd "normal"
}
# them out, and handle the case of the thread disappearing
# while doing that (on targets that need to detach from each
# thread individually).
- continue_to_exit_bp
+ return_if_fail [continue_to_exit_bp]
} else {
# Force software watchpoints.
gdb_test_no_output "set can-use-hw-watchpoints 0"
# As above, but flip order, other wise things take too long.
- continue_to_exit_bp
+ return_if_fail [continue_to_exit_bp]
gdb_test "watch globalvar" "Watchpoint $decimal: globalvar"
if { $multi_process == 0 && $cmd == "continue" } {
}
# Run to _exit in the child.
- continue_to_exit_bp
+ return_if_fail [continue_to_exit_bp]
set childpid [get_integer_valueof "mypid" -1]
if { $childpid == -1 } {
set full_name "continue to breakpoint: $name"
set kfail_pattern "Process record does not support instruction 0xfae64 at.*"
- gdb_test_multiple "continue" $full_name {
+ return [gdb_test_multiple "continue" $full_name {
-re "(?:Breakpoint|Temporary breakpoint) .* (at|in) $location_pattern\r\n$gdb_prompt $" {
pass $full_name
}
-re "(?:$kfail_pattern)\r\n$gdb_prompt $" {
kfail "gdb/25038" $full_name
}
- }
+ }]
}