@@ -36,7 +36,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -31,7 +31,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
continue
}
@@ -32,7 +32,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
proc test_breakpoint {name} {
# Restart the program every time, so that a single failure doesn't
# lead to a cascade.
- if ![runto_main] then {
+ if {![runto_main]} {
perror "couldn't run to main when testing ${name}"
return -code continue
} else {
@@ -25,7 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -33,7 +33,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -181,7 +181,7 @@ if {[prepare_for_testing "failed to prepare" ${testfile}03 $srcfile2 \
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -34,7 +34,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
gdb_test_no_output "set print object off"
gdb_test_no_output "set print symbol off"
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
@@ -651,7 +651,7 @@ proc do_tests {} {
gdb_test_no_output "set language c++" ""
gdb_test_no_output "set width 0" ""
- if ![runto_main ] then {
+ if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -21,7 +21,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
@@ -30,7 +30,7 @@ if {[prepare_for_testing "failed to prepare" $testfile \
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -45,7 +45,7 @@ gdb_test "print i" "\\$\[0-9\]+ = 4"
# TODO: this needs more work before actually deploying it.
# So bail out here.
-if { [ test_compiler_info gcc-*] } then { return }
+if {[test_compiler_info gcc-*]} { return }
gdb_test_multiple "print add<int>(2,2)" "print add<int>(2,2)" {
-re "\\$\[0-9\]+ = 4\r\n$gdb_prompt $" {
@@ -55,7 +55,7 @@ with_test_prefix "before run" {
# Set it up at a breakpoint so we can play with the variable values.
-if ![runto 'marker1'] then {
+if {![runto 'marker1']} {
perror "couldn't run to marker1"
return
}
@@ -27,7 +27,7 @@ if {[prepare_for_testing "failed to prepare" $testfile \
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -21,7 +21,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
@@ -29,7 +29,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto 'marker'] then {
+if {![runto 'marker']} {
return -1
}
@@ -21,7 +21,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
@@ -22,7 +22,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
@@ -33,7 +33,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
@@ -38,7 +38,7 @@ clean_restart ${binfile}
gdb_load_shlib ${sofile}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return -1
}
@@ -51,7 +51,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
@@ -96,7 +96,7 @@ gdb_test "p exceptions.throw_function()" \
"call a function that raises an exception with unwinding off.."
# Restart the inferior back at main.
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
@@ -677,7 +677,7 @@ proc test_print_mvi_classes { } {
proc do_tests { } {
gdb_test_no_output "set width 0"
- if { ![runto_main] } then {
+ if {![runto_main]} {
perror "couldn't run to main"
return
}
@@ -688,7 +688,7 @@ proc do_tests { } {
test_ptype_vi
test_ptype_mvi
- if { ![runto 'inheritance2'] } then {
+ if {![runto 'inheritance2']} {
perror "couldn't run to inheritance2"
return
}
@@ -22,7 +22,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
@@ -149,7 +149,7 @@ proc do_test {lang} {
return -1
}
- if ![runto_main] then {
+ if {![runto_main]} {
return
}
@@ -38,12 +38,12 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
#
# set it up at a breakpoint so we can play with the variable values
#
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
-if ![runto 'marker1'] then {
+if {![runto 'marker1']} {
perror "couldn't run to marker1"
return
}
@@ -30,7 +30,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -38,7 +38,7 @@ if {[prepare_for_testing "failed to prepare" $testfile \
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -31,7 +31,7 @@ if {[test_compiler_info {clang-*-*} c++]} {
set using_clang false
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -21,7 +21,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -30,7 +30,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -24,7 +24,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
@@ -43,7 +43,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
#
# set it up at a breakpoint so we can play with the variable values
#
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -25,7 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
# in a namespace inner to the one which has
# been imported.
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
@@ -46,12 +46,12 @@ gdb_test "show lang" "auto; currently c\\+\\+.*"
#
# set it up at a breakpoint so we can play with the variable values
#
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
-if ![runto 'marker1'] then {
+if {![runto 'marker1']} {
perror "couldn't run to marker1"
return
}
@@ -192,7 +192,7 @@ gdb_test_multiple $test $test {
# to print out stuff from within a function defined within a
# namespace.
-if ![runto "C::D::marker2"] then {
+if {![runto "C::D::marker2"]} {
perror "couldn't run to marker2"
return
}
@@ -22,7 +22,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
@@ -22,7 +22,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
@@ -27,7 +27,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
# test printing of namespace imported within
# the function.
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
@@ -20,7 +20,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}
}
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
@@ -20,7 +20,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}
}
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
@@ -20,7 +20,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
@@ -22,7 +22,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
continue
}
@@ -22,7 +22,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
############################################
# Test printing of namespace imported within the function.
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
continue
}
@@ -62,7 +62,7 @@ gdb_continue_to_breakpoint "marker3"
# the global scope instead of the corresponding
# function scope. These wrong import statements throw
# this test off. This is fixed in gcc-4-4.
-if [test_compiler_info gcc-4-3-*] then { setup_xfail *-*-* }
+if {[test_compiler_info gcc-4-3-*]} { setup_xfail *-*-* }
gdb_test "print _a" "No symbol \"_a\" in current context." \
"Print _a without import at marker3"
@@ -22,7 +22,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
@@ -21,7 +21,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
@@ -34,7 +34,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
# Set it up at a breakpoint so we can play with the variable values.
-if ![runto 'marker1'] then {
+if {![runto 'marker1']} {
perror "couldn't run to marker1"
continue
}
@@ -359,7 +359,7 @@ with_test_prefix "list all overloads" {
gdb_test "list bar" "${h1_re}${lines1}\r\n${h2_re}${lines2}"
}
-if ![runto 'XXX::marker2'] then {
+if {![runto 'XXX::marker2']} {
perror "couldn't run to XXX::marker2"
continue
}
@@ -30,7 +30,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -29,7 +29,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -38,7 +38,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -19,7 +19,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
return
}
@@ -42,7 +42,7 @@ if { [gdb_compile "${tfx}.o ${tfy}.o" ${binfile} executable {debug c++}] != ""
clean_restart $binfile
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -21,7 +21,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
continue
}
@@ -25,7 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -25,7 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile $flags]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
return
}
@@ -23,7 +23,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -31,7 +31,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -25,7 +25,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -31,12 +31,12 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
#
# set it up at a breakpoint so we can play with the variable values
#
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
-if ![runto 'marker1'] then {
+if {![runto 'marker1']} {
perror "couldn't run to marker1"
return
}
@@ -57,12 +57,12 @@ proc gdb_start_again {} {
#
# set it up at a breakpoint so we can play with the variable values
#
- if ![runto_main] then {
+ if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
- if ![runto 'marker1'] then {
+ if {![runto 'marker1']} {
perror "couldn't run to marker1"
return
}
@@ -128,7 +128,7 @@ gdb_test "print ras\[2\]" ".\[0-9\]* = 2" "print value of ras\[2\]"
gdb_test "print ras\[3\]" ".\[0-9\]* = 3" "print value of ras\[3\]"
-if ![runto 'f'] then {
+if {![runto 'f']} {
perror "couldn't run to f"
return
}
@@ -39,7 +39,7 @@ if {[prepare_for_testing "failed to prepare" $testfile \
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -61,7 +61,7 @@ gdb_test "print rrat\[2\]" ".$decimal = 2" "print value of rrat\[2\]"
gdb_test "print rrat\[3\]" ".$decimal = 3" "print value of rrat\[3\]"
-if {![runto 'f']} then {
+if {![runto 'f']} {
perror "couldn't run to f"
return
}
@@ -23,7 +23,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
@@ -21,7 +21,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} {debug c++}
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
@@ -30,7 +30,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -27,7 +27,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -23,7 +23,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if {![runto_main]} then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -23,7 +23,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if {![runto_main]} then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
@@ -273,7 +273,7 @@ proc do_tests {} {
gdb_test_no_output "set language c++" ""
gdb_test_no_output "set width 0" ""
- if ![runto_main] then {
+ if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -28,7 +28,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
@@ -21,7 +21,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
@@ -47,7 +47,7 @@ proc wide_char_types_program {lang} {
return -1
}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
do_test_wide_char $lang "u16" "u32" "wchar"