-# Copyright 2008-2015 Free Software Foundation, Inc.
+# Copyright 2008-2020 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
standard_testfile machinestate.c ms1.c
set precsave [standard_output_file machinestate.precsave]
-if { [prepare_for_testing $testfile.exp $testfile \
+if { [prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2]] } {
return -1
}
if [supports_process_record] {
# Activate process record/replay
- gdb_test_no_output "record" "Turn on process record"
+ gdb_test_no_output "record" "turn on process record"
}
gdb_test "break $endmain" \
"Breakpoint $decimal at .*$srcfile, line $endmain\." \
- "BP at end of main"
+ "breakpoint at end of main"
gdb_test "continue" "Breakpoint .* end main .*" "run to end of main"
"Saved core file $precsave with execution log\." \
"save process recfile"
-gdb_test "kill" "" "Kill process, prepare to debug log file" \
+gdb_test "kill" "" "kill process, prepare to debug log file" \
"Kill the program being debugged\\? \\(y or n\\) " "y"
gdb_test "record restore $precsave" \
gdb_test "print a" ".* = 0$newline" "register var reverse-breakpoint"
gdb_test "step" ".* register post-change .*" ""
-gdb_test "print a" ".* = 1$newline" "register var step post-change"
+gdb_test "print a" ".* = 1$newline" \
+ "register var step post-change, first time"
gdb_test "reverse-step" ".*$newline$breakloc.*" ""
gdb_test "print a" ".* = 0$newline" "register var reverse step-to"
gdb_test "step" ".*$newline$breakloc.*" ""
gdb_test "print a" ".* = 0$newline" "register var forward step-to"
gdb_test "step" ".* register post-change .*" ""
-gdb_test "print a" ".* = 1$newline" "register var step post-change"
+gdb_test "print a" ".* = 1$newline" \
+ "register var step post-change, second time"
# Auto variable, forward