aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-07-11 15:21:36 +0000
committerTom Tromey <tromey@redhat.com>2012-07-11 15:21:36 +0000
commit55baab269c2296f4749a5a979fdc8f7e6414dd70 (patch)
tree5fe68ff39944f2a5dc23838436fb1f817fd848a2 /gdb/testsuite
parent1f3212db282db657b7511fe0bee6285eafb67351 (diff)
downloadgdb-55baab269c2296f4749a5a979fdc8f7e6414dd70.zip
gdb-55baab269c2296f4749a5a979fdc8f7e6414dd70.tar.gz
gdb-55baab269c2296f4749a5a979fdc8f7e6414dd70.tar.bz2
* 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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog13
-rw-r--r--gdb/testsuite/gdb.reverse/break-precsave.exp7
-rw-r--r--gdb/testsuite/gdb.reverse/consecutive-precsave.exp7
-rw-r--r--gdb/testsuite/gdb.reverse/finish-precsave.exp7
-rw-r--r--gdb/testsuite/gdb.reverse/i386-precsave.exp7
-rw-r--r--gdb/testsuite/gdb.reverse/machinestate-precsave.exp7
-rw-r--r--gdb/testsuite/gdb.reverse/sigall-precsave.exp7
-rw-r--r--gdb/testsuite/gdb.reverse/solib-precsave.exp7
-rw-r--r--gdb/testsuite/gdb.reverse/step-precsave.exp7
-rw-r--r--gdb/testsuite/gdb.reverse/until-precsave.exp7
-rw-r--r--gdb/testsuite/gdb.reverse/watch-precsave.exp7
11 files changed, 53 insertions, 30 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 8b933e9..e55dbfc 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,16 @@
+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,
diff --git a/gdb/testsuite/gdb.reverse/break-precsave.exp b/gdb/testsuite/gdb.reverse/break-precsave.exp
index e98be98..af0f769 100644
--- a/gdb/testsuite/gdb.reverse/break-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/break-precsave.exp
@@ -22,6 +22,7 @@ if ![supports_process_record] {
}
standard_testfile break-reverse.c
+set precsave [standard_output_file break.precsave]
if { [prepare_for_testing $testfile.exp $testfile $srcfile] } {
return -1
@@ -45,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"
diff --git a/gdb/testsuite/gdb.reverse/consecutive-precsave.exp b/gdb/testsuite/gdb.reverse/consecutive-precsave.exp
index 12e71e7..b782c36 100644
--- a/gdb/testsuite/gdb.reverse/consecutive-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/consecutive-precsave.exp
@@ -22,6 +22,7 @@ if ![supports_process_record] {
}
standard_testfile consecutive-reverse.c
+set precsave [standard_output_file consecutive.precsave]
if { [prepare_for_testing $testfile.exp $testfile $srcfile] } {
return -1
@@ -41,14 +42,14 @@ gdb_test "break $end_location" \
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"
diff --git a/gdb/testsuite/gdb.reverse/finish-precsave.exp b/gdb/testsuite/gdb.reverse/finish-precsave.exp
index a24486e..775c68a 100644
--- a/gdb/testsuite/gdb.reverse/finish-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/finish-precsave.exp
@@ -21,6 +21,7 @@ if ![supports_reverse] {
}
standard_testfile finish-reverse.c
+set precsave [standard_output_file finish.precsave]
if { [prepare_for_testing $testfile.exp "$testfile" $srcfile] } {
return -1
@@ -42,14 +43,14 @@ gdb_test "break $breakloc" \
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"
diff --git a/gdb/testsuite/gdb.reverse/i386-precsave.exp b/gdb/testsuite/gdb.reverse/i386-precsave.exp
index d1fcd8b..962b374 100644
--- a/gdb/testsuite/gdb.reverse/i386-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/i386-precsave.exp
@@ -31,6 +31,7 @@ if ![istarget "i?86-*linux*"] then {
}
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]
@@ -59,14 +60,14 @@ gdb_test "break $end_of_main" \
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"
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"
diff --git a/gdb/testsuite/gdb.reverse/sigall-precsave.exp b/gdb/testsuite/gdb.reverse/sigall-precsave.exp
index 6c717d8..465e3cc 100644
--- a/gdb/testsuite/gdb.reverse/sigall-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/sigall-precsave.exp
@@ -28,6 +28,7 @@ gdb_start
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
@@ -183,14 +184,14 @@ gdb_test "handle all nostop noprint"
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"
diff --git a/gdb/testsuite/gdb.reverse/solib-precsave.exp b/gdb/testsuite/gdb.reverse/solib-precsave.exp
index 7e60ebd..85384c3 100644
--- a/gdb/testsuite/gdb.reverse/solib-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/solib-precsave.exp
@@ -22,6 +22,7 @@ if ![supports_process_record] {
}
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]
@@ -74,14 +75,14 @@ gdb_test "break $end_of_main" \
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"
diff --git a/gdb/testsuite/gdb.reverse/step-precsave.exp b/gdb/testsuite/gdb.reverse/step-precsave.exp
index e93bea4..f0f1832 100644
--- a/gdb/testsuite/gdb.reverse/step-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/step-precsave.exp
@@ -26,6 +26,7 @@ if ![supports_process_record] {
}
standard_testfile step-reverse.c
+set precsave [standard_output_file step.precsave]
if { [prepare_for_testing $testfile.exp $testfile $srcfile] } {
return -1
@@ -45,14 +46,14 @@ gdb_test "break $end_of_main" \
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"
diff --git a/gdb/testsuite/gdb.reverse/until-precsave.exp b/gdb/testsuite/gdb.reverse/until-precsave.exp
index 5f471ff..3e271c2 100644
--- a/gdb/testsuite/gdb.reverse/until-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/until-precsave.exp
@@ -22,6 +22,7 @@ if ![supports_process_record] {
}
standard_testfile until-reverse.c ur1.c
+set precsave [standard_output_file until.precsave]
if { [prepare_for_testing $testfile.exp $testfile \
[list $srcfile $srcfile2]] } {
@@ -53,15 +54,15 @@ set timeout [expr $oldtimeout + 120]
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"
diff --git a/gdb/testsuite/gdb.reverse/watch-precsave.exp b/gdb/testsuite/gdb.reverse/watch-precsave.exp
index 441a251..9c2ec49 100644
--- a/gdb/testsuite/gdb.reverse/watch-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/watch-precsave.exp
@@ -23,6 +23,7 @@ if ![supports_process_record] {
}
standard_testfile watch-reverse.c
+set precsave [standard_output_file watch.precsave]
if { [prepare_for_testing $testfile.exp $testfile $srcfile] } {
return -1
@@ -42,14 +43,14 @@ gdb_test "break $end_location" \
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"