gdb_test_multiple "step" $testmsg {
-re -wrap "Breakpoint $decimal, ($hex) in foo.*" {
set stop_addr $expect_out(1,string)
- if [eval expr "$foo2_addr == $stop_addr"] then {
+ if {[eval expr "$foo2_addr == $stop_addr"]} {
pass "stopped at bp, 2nd instr"
} else {
fail "stopped at bp, 2nd instr (wrong address)"
set stop_addr_is_stmt [hex_in_list $stop_addr $is_stmt]
if { ! $stop_addr_is_stmt } {
fail "stopped at bp, 2nd instr (missing hex prefix)"
- } elseif [eval expr "$foo2_addr == $stop_addr"] then {
+ } elseif {[eval expr "$foo2_addr == $stop_addr"]} {
pass "stopped at bp, 2nd instr"
} else {
fail "stopped at bp, 2nd instr (wrong address)"
gdb_test_multiple "step" "$test_msg" {
-re "Breakpoint $decimal, ($hex) in foo.*$gdb_prompt $" {
set stop_addr $expect_out(1,string)
- if [eval expr "$foo1_addr == $stop_addr"] then {
+ if {[eval expr "$foo1_addr == $stop_addr"]} {
pass "$test_msg"
} else {
fail "$test_msg (wrong address)"
gdb_test_multiple "step" $testmsg {
-re -wrap "Breakpoint $decimal, ($hex) in foo.*" {
set stop_addr $expect_out(1,string)
- if [eval expr "$foo2_addr == $stop_addr"] then {
+ if {[eval expr "$foo2_addr == $stop_addr"]} {
pass "stopped at bp, 2nd instr"
} else {
fail "stopped at bp, 2nd instr (wrong address)"
set stop_addr_is_stmt [hex_in_list $stop_addr $is_stmt]
if { ! $stop_addr_is_stmt } {
fail "stopped at bp, 2nd instr (missing hex prefix)"
- } elseif [eval expr "$foo2_addr == $stop_addr"] then {
+ } elseif {[eval expr "$foo2_addr == $stop_addr"]} {
pass "stopped at bp, 2nd instr"
} else {
fail "stopped at bp, 2nd instr (wrong address)"
gdb_test_multiple "step" "$test_msg" {
-re "Breakpoint $decimal, ($hex) in foo.*$gdb_prompt $" {
set stop_addr $expect_out(1,string)
- if [eval expr "$foo1_addr == $stop_addr"] then {
+ if {[eval expr "$foo1_addr == $stop_addr"]} {
pass "$test_msg"
} else {
fail "$test_msg (wrong address)"
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
}
-if ![is_x86_like_target] then {
+if {![is_x86_like_target]} {
verbose "Skipping i386 reverse tests."
return
}
}
-if ![is_x86_like_target] then {
+if {![is_x86_like_target]} {
verbose "Skipping i386 reverse tests."
return
}
}
-if ![istarget "*86*-*linux*"] then {
+if {![istarget "*86*-*linux*"]} {
verbose "Skipping i386 reverse tests."
return
}
# This file is part of the gdb testsuite.
-if ![is_x86_like_target] then {
+if {![is_x86_like_target]} {
verbose "Skipping i387 reverse float tests."
return
}
# This file is part of the gdb testsuite.
-if ![is_x86_like_target] then {
+if {![is_x86_like_target]} {
verbose "Skipping i387 reverse float tests."
return
}
[list debug]]} {
return -1
}
-if { ![runto_main] } then {
+if {![runto_main]} {
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
set executable record_test_isa_2_06
set options [list debug]
-if {![istarget "powerpc*"]} then {
+if {![istarget "powerpc*"]} {
verbose "Skipping PowerPC ISA 2.06 instruction record_test_2_06."
return
}
-if {[build_executable "failed to prepare" $executable $srcfile $options] == -1} then {
+if {[build_executable "failed to prepare" $executable $srcfile $options] == -1} {
return -1
}
clean_restart $executable
-if ![runto_main] then {
+if {![runto_main]} {
untested "could not run to main"
return
}
set gen_src record_test_isa_3_1.c
set executable record_test_isa_3_1
-if {![istarget "powerpc*"] || [skip_power_isa_3_1_tests] } then {
+if {![istarget "powerpc*"] || [skip_power_isa_3_1_tests]} {
verbose "Skipping PowerPC ISA 3.1 instruction record_test."
return
}
set options [list additional_flags=-mcpu=power10 debug]
-if {[build_executable "failed to prepare" $executable $srcfile $options] == -1} then {
+if {[build_executable "failed to prepare" $executable $srcfile $options] == -1} {
return -1
}
clean_restart $executable
-if ![runto_main] then {
+if {![runto_main]} {
untested "could not run to main"
return
}
set need_another_continue 1
set missed_handler 0
- if $this_sig_supported then {
+ if {$this_sig_supported} {
if { $thissig == "IO" } {
setup_xfail "i*86-pc-linuxoldld-gnu" "i*86-pc-linuxaout-gnu"
}
}
}
- if $need_another_continue then {
+ if {$need_another_continue} {
if { $thissig == "URG" } {
setup_xfail "i*86-pc-linuxoldld-gnu" "i*86-pc-linuxaout-gnu"
}
}
}
- if { $missed_handler == "0" } then {
+ if {$missed_handler == "0"} {
set testmsg "advance to $nextsig"
gdb_test_multiple "signal 0" $testmsg {
-re "Breakpoint.*gen_$nextsig.*kill.*$gdb_prompt $" {
exp_continue
}
-re "Breakpoint.*kill.*$gdb_prompt " {
- if { $saw_signal } then {
+ if {$saw_signal} {
pass "$testmsg (handled)"
} else {
xfail "$testmsg (handled)"
}
}
-re "No more reverse-execution history.*kill.*$gdb_prompt " {
- if { $saw_signal } then {
+ if {$saw_signal} {
pass "$testmsg (handled)"
} else {
xfail "$testmsg (handled)"
set need_another_continue 1
set missed_handler 0
- if $this_sig_supported then {
+ if {$this_sig_supported} {
if { $thissig == "IO" } {
setup_xfail "i*86-pc-linuxoldld-gnu" "i*86-pc-linuxaout-gnu"
}
}
}
- if $need_another_continue then {
+ if {$need_another_continue} {
if { $thissig == "URG" } {
setup_xfail "i*86-pc-linuxoldld-gnu" "i*86-pc-linuxaout-gnu"
}
}
}
- if { $missed_handler == "0" } then {
+ if {$missed_handler == "0"} {
set testmsg "advance to $nextsig"
gdb_test_multiple "signal 0" $testmsg {
-re "Breakpoint.*gen_$nextsig.*kill.*$gdb_prompt $" {
exp_continue
}
-re "Breakpoint.*kill.*$gdb_prompt " {
- if { $saw_signal } then {
+ if {$saw_signal} {
pass "$testmsg (handled)"
} else {
xfail "$testmsg (handled)"
}
}
-re "No more reverse-execution history.*kill.*$gdb_prompt " {
- if { $saw_signal } then {
+ if {$saw_signal} {
pass "$testmsg (handled)"
} else {
xfail "$testmsg (handled)"
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
untested "could not run to main"
continue
}