return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
continue
}
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 {
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
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
}
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
}
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
# 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 $" {
# 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
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
return -1
}
-if ![runto 'marker'] then {
+if {![runto 'marker']} {
return -1
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
gdb_load_shlib ${sofile}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return -1
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
"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
}
proc do_tests { } {
gdb_test_no_output "set width 0"
- if { ![runto_main] } then {
+ if {![runto_main]} {
perror "couldn't run to main"
return
}
test_ptype_vi
test_ptype_mvi
- if { ![runto 'inheritance2'] } then {
+ if {![runto 'inheritance2']} {
perror "couldn't run to inheritance2"
return
}
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
return -1
}
- if ![runto_main] then {
+ if {![runto_main]} {
return
}
#
# 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
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
set using_clang false
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
#
# 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
}
# 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
}
#
# 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
}
# 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
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
# test printing of namespace imported within
# the function.
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
}
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
}
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
continue
}
############################################
# Test printing of namespace imported within the function.
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
continue
}
# 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"
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
# 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
}
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
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
return
}
clean_restart $binfile
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
continue
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
#
# 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
}
#
# 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
}
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
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
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
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
############################################
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint main"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if {![runto_main]} then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if {![runto_main]} then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
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
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
return -1
}
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to main"
return
}
return -1
}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
do_test_wide_char $lang "u16" "u32" "wchar"