Update years in copyright notice for the GDB files.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.reverse / break-precsave.exp
index c7e492bbe0407988627bccddf4a21b961cc92f8a..dbccb04655ac529d5e18309e25e6559d7599e119 100644 (file)
@@ -1,4 +1,4 @@
-#   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
@@ -35,7 +35,7 @@ set end_location  [gdb_get_line_number "end of main"  ]
 
 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"
 }
@@ -46,14 +46,14 @@ gdb_test "break $end_location" \
 
 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"
 
This page took 0.024908 seconds and 4 git commands to generate.