}
if {![runto_main]} {
- return 0
+ return
}
gdb_test_no_output "python import gdb.types"
}
if {![runto_main]} {
- return 0
+ return
}
proc test_as_string { } {
}
if {![runto_main]} {
- return 0
+ return
}
global hex decimal
}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint "bottom_func"
}
if {![runto_main]} {
- return 0
+ return
}
# Test a simple command.
}
if { ![runto_main] } {
- return 0
+ return
}
set host_python_file \
}
if {![runto_main]} {
- return 0
+ return
}
if { [target_info exists gdb_protocol] } {
}
if {$test2 == ""} {
- return 0
+ return
}
set remote_python_file [gdb_remote_download host \
}
if {![runto_main]} {
- return 0
+ return
}
set pyfile [gdb_remote_download host \
}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint [gdb_get_line_number "break-here"]
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint [gdb_get_line_number "Block break here."]
}
if {![runto_main]} {
- return 0
+ return
}
# Test if Frame.static_link works for a frame without debug info.
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
# The most recently added inferior.
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
gdb_test "python print(seen_a_thread)" "True"
set corefile [core_find $binfile {}]
if {$corefile == ""} {
unsupported "core file not generated"
- return 0
+ return
}
# Create a directory named DIRNAME for use as the
}
if {![runto_main]} {
- return 0
+ return
}
set python_error_text "Error occurred in Python.*"
}
if {![runto_main]} {
- return 0
+ return
}
gdb_py_test_silent_cmd "python objfile = gdb.objfiles()\[0\]" \
}
if {![runto_main]} {
- return 0
+ return
}
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
}
if {![runto_main]} {
- return 0
+ return
}
gdb_test_no_output "nosharedlibrary"
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
runto [gdb_get_line_number "Break to end."]
}
if {![runto_main]} {
- return 0
+ return
}
proc test_all_strfns { } {
"True" "lookup_static_symbol for global var"
if {![runto_main]} {
- return 0
+ return
}
global hex decimal
"10" "print value of anon"
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint [gdb_get_line_number "Break in class."]
# Start with a fresh gdb.
clean_restart ${::testfile}
if {![runto_main]} {
- return 0
+ return
}
gdb_breakpoint [gdb_get_line_number "Break at end."]
}
if {![runto_main]} {
- return 0
+ return
}
set debug_types [debug_types]
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
}
if {![runto_main]} {
- return 0
+ return
}
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
# Check for the corrupt backtrace.
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
test_unavailable
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
set lineno [gdb_get_line_number "Break to end."]
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
# print-stack settings
# The following tests require execution.
if {![runto_main]} {
- return 0
+ return
}
runto [gdb_get_line_number "Break at func2 call site."]