* gdb.reverse/consecutive-precsave.exp: Use standard_output_file.
* gdb.reverse/finish-precsave.exp: Use standard_output_file.
* gdb.reverse/i386-precsave.exp: Use standard_output_file.
* gdb.reverse/machinestate-precsave.exp: Use standard_output_file.
* gdb.reverse/sigall-precsave.exp: Use standard_output_file.
* gdb.reverse/solib-precsave.exp: Use standard_output_file.
* gdb.reverse/step-precsave.exp: Use standard_output_file.
* gdb.reverse/until-precsave.exp: Use standard_output_file.
* gdb.reverse/watch-precsave.exp: Use standard_output_file.
+2012-07-11 Tom Tromey <tromey@redhat.com>
+
+ * gdb.reverse/break-precsave.exp: Use standard_output_file.
+ * gdb.reverse/consecutive-precsave.exp: Use standard_output_file.
+ * gdb.reverse/finish-precsave.exp: Use standard_output_file.
+ * gdb.reverse/i386-precsave.exp: Use standard_output_file.
+ * gdb.reverse/machinestate-precsave.exp: Use standard_output_file.
+ * gdb.reverse/sigall-precsave.exp: Use standard_output_file.
+ * gdb.reverse/solib-precsave.exp: Use standard_output_file.
+ * gdb.reverse/step-precsave.exp: Use standard_output_file.
+ * gdb.reverse/until-precsave.exp: Use standard_output_file.
+ * gdb.reverse/watch-precsave.exp: Use standard_output_file.
+
2012-07-10 Tom Tromey <tromey@redhat.com>
* gdb.mi/dw2-ref-missing-frame.exp: Use standard_testfile,
}
standard_testfile break-reverse.c
+set precsave [standard_output_file break.precsave]
if { [prepare_for_testing $testfile.exp $testfile $srcfile] } {
return -1
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
-gdb_test "record save break.precsave" \
- "Saved core file break.precsave with execution log\." \
+gdb_test "record save $precsave" \
+ "Saved core file $precsave with execution log\." \
"save process recfile"
gdb_test "kill" "" "Kill process, prepare to debug log file" \
"Kill the program being debugged\\? \\(y or n\\) " "y"
-gdb_test "record restore break.precsave" \
+gdb_test "record restore $precsave" \
"Program terminated with signal .*" \
"reload precord save file"
}
standard_testfile consecutive-reverse.c
+set precsave [standard_output_file consecutive.precsave]
if { [prepare_for_testing $testfile.exp $testfile $srcfile] } {
return -1
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
-gdb_test "record save consecutive.precsave" \
- "Saved core file consecutive.precsave with execution log\." \
+gdb_test "record save $precsave" \
+ "Saved core file $precsave with execution log\." \
"save process recfile"
gdb_test "kill" "" "Kill process, prepare to debug log file" \
"Kill the program being debugged\\? \\(y or n\\) " "y"
-gdb_test "record restore consecutive.precsave" \
+gdb_test "record restore $precsave" \
"Program terminated with signal .*" \
"reload precord save file"
}
standard_testfile finish-reverse.c
+set precsave [standard_output_file finish.precsave]
if { [prepare_for_testing $testfile.exp "$testfile" $srcfile] } {
return -1
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
-gdb_test "record save finish.precsave" \
- "Saved core file finish.precsave with execution log\." \
+gdb_test "record save $precsave" \
+ "Saved core file $precsave with execution log\." \
"save process recfile"
gdb_test "kill" "" "Kill process, prepare to debug log file" \
"Kill the program being debugged\\? \\(y or n\\) " "y"
-gdb_test "record restore finish.precsave" \
+gdb_test "record restore $precsave" \
"Program terminated with signal .*" \
"reload precord save file"
}
standard_testfile i386-reverse.c
+set precsave [standard_output_file i386.precsave]
# some targets have leading underscores on assembly symbols.
set additional_flags [gdb_target_symbol_prefix_flags]
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
-gdb_test "record save i386.precsave" \
- "Saved core file i386.precsave with execution log\." \
+gdb_test "record save $precsave" \
+ "Saved core file $precsave with execution log\." \
"save process recfile"
gdb_test "kill" "" "Kill process, prepare to debug log file" \
"Kill the program being debugged\\? \\(y or n\\) " "y"
-gdb_test "record restore i386.precsave" \
+gdb_test "record restore $precsave" \
"Program terminated with signal .*" \
"reload precord save file"
}
standard_testfile machinestate.c ms1.c
+set precsave [standard_output_file machinestate.precsave]
if { [prepare_for_testing $testfile.exp $testfile \
[list $srcfile $srcfile2]] } {
gdb_test "continue" "Breakpoint .* end main .*" "run to end of main"
-gdb_test "record save machinestate.precsave" \
- "Saved core file machinestate.precsave with execution log\." \
+gdb_test "record save $precsave" \
+ "Saved core file $precsave with execution log\." \
"save process recfile"
gdb_test "kill" "" "Kill process, prepare to debug log file" \
"Kill the program being debugged\\? \\(y or n\\) " "y"
-gdb_test "record restore machinestate.precsave" \
+gdb_test "record restore $precsave" \
"Program terminated with signal .*" \
"reload prec save file"
gdb_reinitialize_dir $srcdir/$subdir
standard_testfile sigall-reverse.c
+set precsave [standard_output_file sigall.precsave]
if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
return -1
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
-gdb_test "record save sigall.precsave" \
- "Saved core file sigall.precsave with execution log\." \
+gdb_test "record save $precsave" \
+ "Saved core file $precsave with execution log\." \
"save process recfile"
gdb_test "kill" "" "Kill process, prepare to debug log file" \
"Kill the program being debugged\\? \\(y or n\\) " "y"
-gdb_test "record restore sigall.precsave" \
+gdb_test "record restore $precsave" \
"Program terminated with signal .*" \
"reload precord save file"
}
standard_testfile solib-reverse.c
+set precsave [standard_output_file solib.precsave]
set libfile "shr2"
set libsrc ${libfile}.c
set library [standard_output_file ${libfile}.sl]
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
-gdb_test "record save solib.precsave" \
- "Saved core file solib.precsave with execution log\." \
+gdb_test "record save $precsave" \
+ "Saved core file $precsave with execution log\." \
"save process recfile"
gdb_test "kill" "" "Kill process, prepare to debug log file" \
"Kill the program being debugged\\? \\(y or n\\) " "y"
-gdb_test "record restore solib.precsave" \
+gdb_test "record restore $precsave" \
"Program terminated with signal .*" \
"reload core file"
}
standard_testfile step-reverse.c
+set precsave [standard_output_file step.precsave]
if { [prepare_for_testing $testfile.exp $testfile $srcfile] } {
return -1
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
-gdb_test "record save step.precsave" \
- "Saved core file step.precsave with execution log\." \
+gdb_test "record save $precsave" \
+ "Saved core file $precsave with execution log\." \
"save process recfile"
gdb_test "kill" "" "Kill process, prepare to debug log file" \
"Kill the program being debugged\\? \\(y or n\\) " "y"
-gdb_test "record restore step.precsave" \
+gdb_test "record restore $precsave" \
"Program terminated with signal .*" \
"reload core file"
}
standard_testfile until-reverse.c ur1.c
+set precsave [standard_output_file until.precsave]
if { [prepare_for_testing $testfile.exp $testfile \
[list $srcfile $srcfile2]] } {
gdb_test "continue" "Breakpoint .* set breakpoint 10a here .*" "run to end of main"
# So can this, against gdbserver, for example.
-gdb_test "record save until.precsave" \
- "Saved core file until.precsave with execution log\." \
+gdb_test "record save $precsave" \
+ "Saved core file $precsave with execution log\." \
"save process recfile"
set timeout $oldtimeout
gdb_test "kill" "" "Kill process, prepare to debug log file" \
"Kill the program being debugged\\? \\(y or n\\) " "y"
-gdb_test "record restore until.precsave" \
+gdb_test "record restore $precsave" \
"Program terminated with signal .*" \
"reload core file"
}
standard_testfile watch-reverse.c
+set precsave [standard_output_file watch.precsave]
if { [prepare_for_testing $testfile.exp $testfile $srcfile] } {
return -1
gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
-gdb_test "record save watch.precsave" \
- "Saved core file watch.precsave with execution log\." \
+gdb_test "record save $precsave" \
+ "Saved core file $precsave with execution log\." \
"save process recfile"
gdb_test "kill" "" "Kill process, prepare to debug log file" \
"Kill the program being debugged\\? \\(y or n\\) " "y"
-gdb_test "record restore watch.precsave" \
+gdb_test "record restore $precsave" \
"Program terminated with signal .*" \
"reload core file"