-# Copyright 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+# Copyright 2008-2013 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
# with breakpoints in a process record logfile.
# This test suitable only for process record-replay
-if ![target_info exists gdb,use_precord] {
+if ![supports_process_record] {
return
}
-set testfile "break-reverse"
-set srcfile ${testfile}.c
+standard_testfile break-reverse.c
+set precsave [standard_output_file break.precsave]
if { [prepare_for_testing $testfile.exp $testfile $srcfile] } {
return -1
runto main
-if [target_info exists gdb,use_precord] {
+if [supports_process_record] {
# Activate process record/replay
gdb_test_no_output "record" "Turn on process record"
}
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"