# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
clean_restart ${binfile}
- if { ![runto_main] } then {
+ if {![runto_main]} {
untested "couldn't run to breakpoint"
return -1
}
# Start by testing the "run" command, it can't leverage start_test
with_test_prefix "run to frame" {
- if { ![runto_main] } then {
+ if {![runto_main]} {
untested "couldn't run to main"
}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-if ![runto_main ] then {
+if {![runto_main]} {
return -1
}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# We should start with no breakpoints.
gdb_test "python print (gdb.breakpoints())" "\\(\\)"
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
# Start with a fresh gdb.
clean_restart ${testfile}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
# Start with a fresh gdb.
clean_restart ${testfile}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
# Start with a fresh gdb.
clean_restart ${testfile}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
# Start with a fresh gdb.
clean_restart ${testfile}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
if {$skip_hw_watchpoint_tests_p} {
gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
delete_breakpoints
if {$skip_hw_watchpoint_tests_p} {
gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
delete_breakpoints
# Start with a fresh gdb.
clean_restart ${testfile}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
delete_breakpoints
# Start with a fresh gdb.
clean_restart ${testfile}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
set one_location_re "Breakpoint $decimal at $hex:.*line $decimal."
set two_location_re "Breakpoint $decimal at $hex:.*2 locations."
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
return -1
}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
# Start with a fresh gdb.
clean_restart ${testfile}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
# Start with a fresh gdb.
clean_restart ${testfile}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
delete_breakpoints
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-if ![runto_main] then {
+if {![runto_main]} {
fail "can't run to main"
return 0
}
with_test_prefix "gdb exiting: error" {
clean_restart ${testfile}
- if ![runto_main] then {
+ if {![runto_main]} {
fail "cannot run to main."
return 0
}
clean_restart ${testfile}
gdb_load_shlib ${lib_sl}
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
"import python scripts"
set cond_line [gdb_get_line_number "Condition Break."]
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
gdb_test "source $python_file" "Python script imported.*" \
"import python scripts"
- if ![runto call_longjmp_1] then {
+ if {![runto call_longjmp_1]} {
return
}
"import python scripts"
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
gdb_test "source $python_file" "Python script imported.*" \
"import python scripts"
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
gdb_test "source $python_file" "Python script imported.*" \
"import python scripts"
- if ![runto_main] then {
+ if {![runto_main]} {
return 0
}
#
with_test_prefix "inferior exit" {
- if ![runto "test_exec_exit"] then {
+ if {![runto "test_exec_exit"]} {
return 0
}
#
with_test_prefix "inferior exec" {
- if ![runto "test_exec_exit"] then {
+ if {![runto "test_exec_exit"]} {
return 0
}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${exefile}
- if ![runto_main] then {
+ if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# The following tests require execution.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
gdb_test "info auto-load python-scripts" "Yes.*${testfile}-gdb.py.*" \
"Test auto-load had loaded python scripts"
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
gdb_test "info auto-load python-scripts" "Yes.*${testfile}-gdb.py.*" \
"Test auto-load had loaded python scripts"
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
# Verify gdb loaded the script.
gdb_test "info auto-load python-scripts" "Yes.*${testfile}-gdb.py.*" \
"Set autoload path for no debug info tests"
-if ![runto_main] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
# The following tests require execution.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# The following tests require execution.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
return -1
}
-if ![runto_main ] then {
+if {![runto_main]} {
return -1
}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-if ![runto_main ] then {
+if {![runto_main]} {
return -1
}
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${exefile}
- if ![runto_main ] then {
+ if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
-if ![runto_main ] then {
+if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
return -1
}
-if ![runto_main ] then {
+if {![runto_main]} {
return -1
}
return -1
}
-if ![runto_main ] then {
+if {![runto_main]} {
return -1
}
# The following tests require execution.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# The following tests require execution.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
gdb_test "python print (gdb.lookup_static_symbol ('qq') is None)" \
"True" "lookup_static_symbol for global var"
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
gdb_test "python print (gdb.lookup_static_symbol ('(anonymous namespace)::anon').value ())" \
"10" "print value of anon"
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# test as it unloads the object file in GDB.
# Start with a fresh gdb.
clean_restart ${binfile}
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
return -1
}
gdb_load ${exefile}
- if ![runto_main ] then {
+ if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${exefile}
- if ![runto_main ] then {
+ if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
if { [skip_python_tests] } { continue }
# The following tests require execution.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
-if ![runto_main ] then {
+if {![runto_main]} {
return -1
}
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# The following tests require execution.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# Start with a fresh gdb.
clean_restart ${exefile}
- if ![runto_main ] then {
+ if {![runto_main]} {
perror "couldn't run to breakpoint"
return
}
# The following tests require execution.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# The following tests require execution.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# The following tests require execution.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}
# The following tests require execution.
-if ![runto_main] then {
+if {![runto_main]} {
return 0
}