- fail "stepi: finish call"
- }
- -re ".*${decimal}.*callee.*NEXTI.*$gdb_prompt $" {
- pass "stepi: finish call"
- }
- -re ".*${decimal}.*callee.*STEPI.*$gdb_prompt $" {
- # On PA64, we end up at a different instruction than PA32.
- # On IA-64, we end up on callee instead of on the following line due
- # to the restoration of the global pointer.
- # Similarly on MIPS PIC targets.
- if { [istarget "hppa2.0w-hp-hpux*"] || [istarget "ia64-*-*"] || [istarget "mips*-*-*"] } {
- pass "stepi: finish call 2"
- test_i "stepi: past call" "stepi" \
- ".*${decimal}.*callee.*STEPI" ".*${decimal}.*callee.*NEXTI"
- } else {
- fail "stepi: finish call 2"
- return
+ -re ".*${decimal}.*callee.*STEPI.*$gdb_prompt $" {
+ # On PA64, we end up at a different instruction than PA32.
+ # On IA-64, we end up on callee instead of on the following line due
+ # to the restoration of the global pointer.
+ # Similarly on MIPS PIC targets.
+ if { [istarget "hppa2.0w-hp-hpux*"] || [istarget "ia64-*-*"] || [istarget "mips*-*-*"] } {
+ test_i "$test" "stepi" \
+ ".*${decimal}.*callee.*STEPI" ".*${decimal}.*callee.*NEXTI"
+ } else {
+ fail "$test"
+ }