mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
Remove mi_skip_python_tests
mi_skip_python_tests was necessary because skip_python_tests used the running gdb, and so needed to know what prompt to expect. Now that skip_python_tests has been rewritten, mi_skip_python_tests is no longer needed.
This commit is contained in:
parent
222ef1693c
commit
af4c1c9168
@ -31,7 +31,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
|
||||
return -1
|
||||
}
|
||||
|
||||
if { [mi_skip_python_tests] } { return }
|
||||
if { [skip_python_tests] } { return }
|
||||
|
||||
set remote_python_file [gdb_remote_download host ${srcdir}/${subdir}/${pyfile}]
|
||||
|
||||
|
@ -31,7 +31,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
|
||||
return -1
|
||||
}
|
||||
|
||||
if { [mi_skip_python_tests] } { return }
|
||||
if { [skip_python_tests] } { return }
|
||||
|
||||
# Make the -gdb.py script available to gdb, it is automagically loaded by gdb.
|
||||
# Care is taken to put it in the same directory as the binary so that
|
||||
|
@ -30,7 +30,7 @@ if {[gdb_compile "$srcdir/$subdir/$srcfile" $binfile executable {debug}] != "" }
|
||||
mi_clean_restart $binfile
|
||||
|
||||
# Skip all tests if Python scripting is not enabled.
|
||||
if { [mi_skip_python_tests] } { continue }
|
||||
if { [skip_python_tests] } { continue }
|
||||
|
||||
set pyfile [gdb_remote_download host ${srcdir}/${subdir}/${testfile}.py]
|
||||
mi_gdb_test "source ${pyfile}" \
|
||||
|
@ -2734,12 +2734,6 @@ proc mi_make_breakpoint_table {bp_list} {
|
||||
return "BreakpointTable={nr_rows=\"$nr\",nr_cols=\"$nc\",$header,$body}"
|
||||
}
|
||||
|
||||
# Return a 1 for configurations that do not support Python scripting.
|
||||
|
||||
proc mi_skip_python_tests {} {
|
||||
return [skip_python_tests]
|
||||
}
|
||||
|
||||
# As skip_libstdcxx_probe_tests_prompt, with mi_gdb_prompt.
|
||||
|
||||
proc mi_skip_libstdcxx_probe_tests {} {
|
||||
|
Loading…
Reference in New Issue
Block a user