diff options
Diffstat (limited to 'gdb/testsuite/gdb.reverse/machinestate-precsave.exp')
-rw-r--r-- | gdb/testsuite/gdb.reverse/machinestate-precsave.exp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.reverse/machinestate-precsave.exp b/gdb/testsuite/gdb.reverse/machinestate-precsave.exp index 5f7745a..ad6053b 100644 --- a/gdb/testsuite/gdb.reverse/machinestate-precsave.exp +++ b/gdb/testsuite/gdb.reverse/machinestate-precsave.exp @@ -41,6 +41,7 @@ if ![supports_process_record] { } standard_testfile machinestate.c ms1.c +set precsave [standard_output_file machinestate.precsave] if { [prepare_for_testing $testfile.exp $testfile \ [list $srcfile $srcfile2]] } { @@ -67,14 +68,14 @@ gdb_test "break $endmain" \ 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" |