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
+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
clean_restart ${testfile}
-if ![runto main] then {
+if ![runto_main] then {
perror "Couldn't run ${testfile}"
return
}
clean_restart ${testfile}
-if ![runto main] then {
+if ![runto_main] then {
perror "Couldn't run ${testfile}"
return
}
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
-if { ![runto main] } then {
+if { ![runto_main] } then {
fail "run to main"
return
}
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
gdb_load ${binfile}
- if { ![runto main] } then {
+ if { ![runto_main] } then {
fail "run to main"
return
}
return -1
}
-if { ![runto main] } then {
+if { ![runto_main] } then {
fail "run to main"
return
}
return -1
}
-if ![runto main] {
+if ![runto_main] {
return -1
}
clean_restart ${executable}
}
-if ![runto main] {
+if ![runto_main] {
fail "can't run to main"
return -1
}
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
}
clean_restart $binfile
- if ![runto main] {
+ if ![runto_main] {
return -1
}
}
-if { ![runto main] } then {
+if { ![runto_main] } then {
fail "run to main"
return
}
gdb_test_no_output "set can-use-hw-watchpoints 0" ""
}
-if { ![runto main] } then {
+if { ![runto_main] } then {
fail "run to main"
return
}
clean_restart ${binfile}
-if { ![runto main] } {
+if { ![runto_main] } {
fail "runto main"
return -1
}
# 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
}
return -1
}
-runto main
+runto_main
# Delete all target-supplied memory regions.
delete_memory_regions
clean_restart $testfile
- if { ![runto main] } then {
+ if { ![runto_main] } then {
fail "run to main ($syscall)"
return -1
}
set testfile "step-over-fork"
clean_restart $testfile
-if { ![runto main] } then {
+if { ![runto_main] } then {
fail "run to main"
return -1
}
clean_restart ${testfile}
- if { ![runto main] } then {
+ if { ![runto_main] } then {
fail "run to main"
return
}
return -1
}
-if { ![runto main] } then {
+if { ![runto_main] } then {
fail "run to main"
return
}
clean_restart ${testfile}
- if { ![runto main] } then {
+ if { ![runto_main] } then {
fail "run to main ($teststr)"
return
}
clean_restart ${binfile}
-if { ![runto main] } then {
+if { ![runto_main] } then {
fail "run to main"
return
}
return -1
}
-if { ![runto main] } then {
+if { ![runto_main] } then {
fail "run to main"
return
}
clean_restart $binfile
- if { ![runto main] } then {
+ if { ![runto_main] } then {
fail "run to main"
return
}
# 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
}
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"]} {
# Start with a clean state.
delete_breakpoints
- if {![runto main]} {
+ if {![runto_main]} {
untested "could not run to main"
return -1
}
} {
clean_restart $binfile
- if {![runto main]} {
+ if {![runto_main]} {
untested "could not run to main"
continue
}
with_test_prefix "line number" {
clean_restart $binfile
- if {![runto main]} {
+ if {![runto_main]} {
untested "could not run to main"
continue
}
clean_restart $binfile
- if {![runto main]} {
+ if {![runto_main]} {
untested "could not run to main"
continue
}
clean_restart $binfile
- if {![runto main]} {
+ if {![runto_main]} {
untested "could not run to main"
continue
}
# 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
}
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
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
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
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
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
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
return -1
}
-runto main
+runto_main
# Record to end of main
return -1
}
-runto main
+runto_main
# Record to end of main
[list debug]]} {
return -1
}
-if { ![runto main] } then {
+if { ![runto_main] } then {
fail "run to main"
return
}
# Test begins
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
# Test begins
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
}
# 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
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
gdb_load_shlib $library1
gdb_load_shlib $library2
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
gdb_load_shlib $library1
gdb_load_shlib $library2
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
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
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
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
return -1
}
-runto main
+runto_main
if [supports_process_record] {
# Activate process record/replay
return -1
}
- if { ![runto main] } then {
+ if { ![runto_main] } then {
fail "run to main"
return
}
clean_restart ${binfile}
-if ![runto main] {
+if ![runto_main] {
fail "can't run to main"
return -1
}