'runto main' -> 'runto_main' throughout

This commit does 's/runto main/runto_main/g' throughout.

gdb/testsuite/ChangeLog:

	* gdb.ada/fun_in_declare.exp: Use "runto_main" instead of
	"runto main".
	* gdb.ada/small_reg_param.exp: Likewise.
	* gdb.arch/powerpc-d128-regs.exp: Likewise.
	* gdb.base/annota1.exp: Likewise.
	* gdb.base/anon.exp: Likewise.
	* gdb.base/breakpoint-in-ro-region.exp: Likewise.
	* gdb.base/dprintf-non-stop.exp: Likewise.
	* gdb.base/dprintf.exp: Likewise.
	* gdb.base/gdb11530.exp: Likewise.
	* gdb.base/gdb11531.exp: Likewise.
	* gdb.base/gnu_vector.exp: Likewise.
	* gdb.base/interrupt-noterm.exp: Likewise.
	* gdb.base/memattr.exp: Likewise.
	* gdb.base/step-over-syscall.exp: Likewise.
	* gdb.base/watch-cond-infcall.exp: Likewise.
	* gdb.base/watch-read.exp: Likewise.
	* gdb.base/watch-vfork.exp: Likewise.
	* gdb.base/watch_thread_num.exp: Likewise.
	* gdb.base/watchpoint-stops-at-right-insn.exp: Likewise.
	* gdb.guile/scm-frame-inline.exp: Likewise.
	* gdb.linespec/explicit.exp: Likewise.
	* gdb.opt/inline-break.exp: Likewise.
	* gdb.python/py-frame-inline.exp: Likewise.
	* gdb.reverse/break-precsave.exp: Likewise.
	* gdb.reverse/break-reverse.exp: Likewise.
	* gdb.reverse/consecutive-precsave.exp: Likewise.
	* gdb.reverse/consecutive-reverse.exp: Likewise.
	* gdb.reverse/finish-precsave.exp: Likewise.
	* gdb.reverse/finish-reverse.exp: Likewise.
	* gdb.reverse/fstatat-reverse.exp: Likewise.
	* gdb.reverse/getresuid-reverse.exp: Likewise.
	* gdb.reverse/i386-precsave.exp: Likewise.
	* gdb.reverse/i386-reverse.exp: Likewise.
	* gdb.reverse/i386-sse-reverse.exp: Likewise.
	* gdb.reverse/i387-env-reverse.exp: Likewise.
	* gdb.reverse/i387-stack-reverse.exp: Likewise.
	* gdb.reverse/insn-reverse.exp: Likewise.
	* gdb.reverse/machinestate-precsave.exp: Likewise.
	* gdb.reverse/machinestate.exp: Likewise.
	* gdb.reverse/pipe-reverse.exp: Likewise.
	* gdb.reverse/readv-reverse.exp: Likewise.
	* gdb.reverse/recvmsg-reverse.exp: Likewise.
	* gdb.reverse/rerun-prec.exp: Likewise.
	* gdb.reverse/s390-mvcle.exp: Likewise.
	* gdb.reverse/solib-precsave.exp: Likewise.
	* gdb.reverse/solib-reverse.exp: Likewise.
	* gdb.reverse/step-precsave.exp: Likewise.
	* gdb.reverse/step-reverse.exp: Likewise.
	* gdb.reverse/time-reverse.exp: Likewise.
	* gdb.reverse/until-precsave.exp: Likewise.
	* gdb.reverse/until-reverse.exp: Likewise.
	* gdb.reverse/waitpid-reverse.exp: Likewise.
	* gdb.reverse/watch-precsave.exp: Likewise.
	* gdb.reverse/watch-reverse.exp: Likewise.
	* gdb.threads/kill.exp: Likewise.
	* gdb.threads/tid-reuse.exp: Likewise.

Change-Id: I70f457253836019880b4d7fb981936afa56724c2
This commit is contained in:
Pedro Alves 2020-09-02 22:57:54 +01:00
parent d3a071228e
commit 50441f0f8c
57 changed files with 123 additions and 63 deletions

View file

@ -1,3 +1,63 @@
2020-10-13 Pedro Alves <pedro@palves.net>
* gdb.ada/fun_in_declare.exp: Use "runto_main" instead of
"runto main".
* gdb.ada/small_reg_param.exp: Likewise.
* gdb.arch/powerpc-d128-regs.exp: Likewise.
* gdb.base/annota1.exp: Likewise.
* gdb.base/anon.exp: Likewise.
* gdb.base/breakpoint-in-ro-region.exp: Likewise.
* gdb.base/dprintf-non-stop.exp: Likewise.
* gdb.base/dprintf.exp: Likewise.
* gdb.base/gdb11530.exp: Likewise.
* gdb.base/gdb11531.exp: Likewise.
* gdb.base/gnu_vector.exp: Likewise.
* gdb.base/interrupt-noterm.exp: Likewise.
* gdb.base/memattr.exp: Likewise.
* gdb.base/step-over-syscall.exp: Likewise.
* gdb.base/watch-cond-infcall.exp: Likewise.
* gdb.base/watch-read.exp: Likewise.
* gdb.base/watch-vfork.exp: Likewise.
* gdb.base/watch_thread_num.exp: Likewise.
* gdb.base/watchpoint-stops-at-right-insn.exp: Likewise.
* gdb.guile/scm-frame-inline.exp: Likewise.
* gdb.linespec/explicit.exp: Likewise.
* gdb.opt/inline-break.exp: Likewise.
* gdb.python/py-frame-inline.exp: Likewise.
* gdb.reverse/break-precsave.exp: Likewise.
* gdb.reverse/break-reverse.exp: Likewise.
* gdb.reverse/consecutive-precsave.exp: Likewise.
* gdb.reverse/consecutive-reverse.exp: Likewise.
* gdb.reverse/finish-precsave.exp: Likewise.
* gdb.reverse/finish-reverse.exp: Likewise.
* gdb.reverse/fstatat-reverse.exp: Likewise.
* gdb.reverse/getresuid-reverse.exp: Likewise.
* gdb.reverse/i386-precsave.exp: Likewise.
* gdb.reverse/i386-reverse.exp: Likewise.
* gdb.reverse/i386-sse-reverse.exp: Likewise.
* gdb.reverse/i387-env-reverse.exp: Likewise.
* gdb.reverse/i387-stack-reverse.exp: Likewise.
* gdb.reverse/insn-reverse.exp: Likewise.
* gdb.reverse/machinestate-precsave.exp: Likewise.
* gdb.reverse/machinestate.exp: Likewise.
* gdb.reverse/pipe-reverse.exp: Likewise.
* gdb.reverse/readv-reverse.exp: Likewise.
* gdb.reverse/recvmsg-reverse.exp: Likewise.
* gdb.reverse/rerun-prec.exp: Likewise.
* gdb.reverse/s390-mvcle.exp: Likewise.
* gdb.reverse/solib-precsave.exp: Likewise.
* gdb.reverse/solib-reverse.exp: Likewise.
* gdb.reverse/step-precsave.exp: Likewise.
* gdb.reverse/step-reverse.exp: Likewise.
* gdb.reverse/time-reverse.exp: Likewise.
* gdb.reverse/until-precsave.exp: Likewise.
* gdb.reverse/until-reverse.exp: Likewise.
* gdb.reverse/waitpid-reverse.exp: Likewise.
* gdb.reverse/watch-precsave.exp: Likewise.
* gdb.reverse/watch-reverse.exp: Likewise.
* gdb.threads/kill.exp: Likewise.
* gdb.threads/tid-reuse.exp: Likewise.
2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
PR gdb/26642

View file

@ -25,7 +25,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" }
clean_restart ${testfile}
if ![runto main] then {
if ![runto_main] then {
perror "Couldn't run ${testfile}"
return
}

View file

@ -25,7 +25,7 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug optimize=-
clean_restart ${testfile}
if ![runto main] then {
if ![runto_main] then {
perror "Couldn't run ${testfile}"
return
}

View file

@ -39,7 +39,7 @@ gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main"
return
}

View file

@ -459,7 +459,7 @@ proc thread_test {} {
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main"
return
}

View file

@ -20,7 +20,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile {debug}] } {
return -1
}
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main"
return
}

View file

@ -28,7 +28,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
if ![runto main] {
if ![runto_main] {
return -1
}

View file

@ -26,7 +26,7 @@ save_vars { GDBFLAGS } {
clean_restart ${executable}
}
if ![runto main] {
if ![runto_main] {
fail "can't run to main"
return -1
}

View file

@ -22,7 +22,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
set dp_location1 [gdb_get_line_number "set dprintf 1 here"]
if ![runto main] {
if ![runto_main] {
return -1
}
@ -72,7 +72,7 @@ proc restart {} {
clean_restart $binfile
if ![runto main] {
if ![runto_main] {
return -1
}

View file

@ -36,7 +36,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $testfile.c {debug}] } {
}
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main"
return
}

View file

@ -31,7 +31,7 @@ if [target_info exists gdb,no_hardware_watchpoints] {
gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main"
return
}

View file

@ -42,7 +42,7 @@ if { [do_compile {-mcpu=native}] != ""
clean_restart ${binfile}
if { ![runto main] } {
if { ![runto_main] } {
fail "runto main"
return -1
}

View file

@ -23,7 +23,7 @@ if [prepare_for_testing "failed to prepare for testing" \
# Pretend there's no terminal.
gdb_test_no_output "set interactive-mode off"
if ![runto main] {
if ![runto_main] {
fail "can't run to main"
return -1
}

View file

@ -23,7 +23,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
# Delete all target-supplied memory regions.
delete_memory_regions

View file

@ -76,7 +76,7 @@ proc setup { syscall } {
clean_restart $testfile
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main ($syscall)"
return -1
}
@ -317,7 +317,7 @@ step_over_syscall "clone"
set testfile "step-over-fork"
clean_restart $testfile
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main"
return -1
}

View file

@ -33,7 +33,7 @@ proc test_watchpoint { hw } {
clean_restart ${testfile}
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main"
return
}

View file

@ -32,7 +32,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
return -1
}
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main"
return
}

View file

@ -27,7 +27,7 @@ proc test_watchpoint_across_vfork { hw teststr } {
clean_restart ${testfile}
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main ($teststr)"
return
}

View file

@ -41,7 +41,7 @@ if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executab
clean_restart ${binfile}
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main"
return
}

View file

@ -79,7 +79,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
return -1
}
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main"
return
}
@ -134,7 +134,7 @@ proc test {always_inserted} {
clean_restart $binfile
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main"
return
}

View file

@ -24,7 +24,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
# Skip all tests if Guile scripting is not enabled.
if { [skip_guile_tests] } { continue }
if ![runto main] {
if ![runto_main] {
fail "can't run to main"
return
}

View file

@ -584,7 +584,7 @@ namespace eval $testfile {
gdb_load [standard_output_file $exefile]
set tst "condition_command overrides explicit linespec condition"
if {![runto main]} {
if {![runto_main]} {
fail $tst
} else {
if {![gdb_breakpoint "-func myfunction if arg == 1"]} {

View file

@ -190,7 +190,7 @@ foreach_with_prefix cmd [list "break" "tbreak"] {
# Start with a clean state.
delete_breakpoints
if {![runto main]} {
if {![runto_main]} {
untested "could not run to main"
return -1
}
@ -246,7 +246,7 @@ foreach_with_prefix func {
} {
clean_restart $binfile
if {![runto main]} {
if {![runto_main]} {
untested "could not run to main"
continue
}
@ -264,7 +264,7 @@ set line [gdb_get_line_number "break here"]
with_test_prefix "line number" {
clean_restart $binfile
if {![runto main]} {
if {![runto_main]} {
untested "could not run to main"
continue
}
@ -289,7 +289,7 @@ with_test_prefix "address" {
clean_restart $binfile
if {![runto main]} {
if {![runto_main]} {
untested "could not run to main"
continue
}
@ -308,7 +308,7 @@ with_test_prefix "check alignment" {
clean_restart $binfile
if {![runto main]} {
if {![runto_main]} {
untested "could not run to main"
continue
}

View file

@ -24,7 +24,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
# Skip all tests if Python scripting is not enabled.
if { [skip_python_tests] } { continue }
if ![runto main] then {
if ![runto_main] then {
fail "can't run to function f"
return 0
}

View file

@ -37,7 +37,7 @@ proc precsave_tests {} {
global foo_location bar_location main_location end_location
global decimal srcfile precsave gdb_prompt
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -31,7 +31,7 @@ set bar_location [gdb_get_line_number "break in bar" ]
set main_location [gdb_get_line_number "break in main"]
set end_location [gdb_get_line_number "end of main" ]
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -28,7 +28,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -26,7 +26,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -27,7 +27,7 @@ if { [prepare_for_testing "failed to prepare" "$testfile" $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -26,7 +26,7 @@ if { [prepare_for_testing "failed to prepare" "$testfile" $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -29,7 +29,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -29,7 +29,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -44,7 +44,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
set end_of_main [gdb_get_line_number " end of main "]
set end_of_inc_dec_tests [gdb_get_line_number " end inc_dec_tests "]
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -42,7 +42,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
set end_of_main [gdb_get_line_number " end of main "]
set end_of_inc_dec_tests [gdb_get_line_number " end inc_dec_tests "]
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -44,7 +44,7 @@ set end_sse_test [gdb_get_line_number " end sse_test "]
set end_ssse3_test [gdb_get_line_number " end ssse3_test "]
set end_sse4_test [gdb_get_line_number " end sse4_test "]
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -31,7 +31,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
return -1
}
runto main
runto_main
# Record to end of main

View file

@ -31,7 +31,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
return -1
}
runto main
runto_main
# Record to end of main

View file

@ -23,7 +23,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
[list debug]]} {
return -1
}
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main"
return
}

View file

@ -55,7 +55,7 @@ set endmain [gdb_get_line_number " end main " $srcfile]
# Test begins
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -53,7 +53,7 @@ set endmain [gdb_get_line_number " end main " $srcfile]
# Test begins
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -29,7 +29,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -29,7 +29,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -29,7 +29,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -24,7 +24,7 @@ if {[prepare_for_testing "failed to prepare" $testfile [list $srcfile]]} {
}
# The bug is a regression in the sequence "run; record; run".
runto main
runto_main
gdb_test_no_output "record" "turn on process record"
gdb_run_cmd

View file

@ -32,7 +32,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -79,7 +79,7 @@ gdb_load ${binfile}
gdb_load_shlib $library1
gdb_load_shlib $library2
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -71,7 +71,7 @@ gdb_load ${binfile}
gdb_load_shlib $library1
gdb_load_shlib $library2
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -32,7 +32,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -30,7 +30,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -29,7 +29,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -36,7 +36,7 @@ set bp_location19 [gdb_get_line_number "set breakpoint 19 here"]
set bp_location20 [gdb_get_line_number "set breakpoint 20 here"]
set bp_location21 [gdb_get_line_number "set breakpoint 21 here"]
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -34,7 +34,7 @@ set bp_location19 [gdb_get_line_number "set breakpoint 19 here"]
set bp_location20 [gdb_get_line_number "set breakpoint 20 here"]
set bp_location21 [gdb_get_line_number "set breakpoint 21 here"]
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -31,7 +31,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -29,7 +29,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -28,7 +28,7 @@ if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
runto main
runto_main
if [supports_process_record] {
# Activate process record/replay

View file

@ -38,7 +38,7 @@ proc test {threaded} {
return -1
}
if { ![runto main] } then {
if { ![runto_main] } then {
fail "run to main"
return
}

View file

@ -24,7 +24,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile { debug pthreads
clean_restart ${binfile}
if ![runto main] {
if ![runto_main] {
fail "can't run to main"
return -1
}