Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: gdb/testsuite/gdb.reverse/sigall-precsave.exp

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp ('k') | gdb/testsuite/gdb.reverse/sigall-reverse.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.reverse/sigall-precsave.exp
diff --git a/gdb/testsuite/gdb.reverse/sigall-precsave.exp b/gdb/testsuite/gdb.reverse/sigall-precsave.exp
index 6916278f19e339be5e5bf2441d8bd8b6479e6eea..465e3ccb82b78714551225ad804cc8a3b0d1696d 100644
--- a/gdb/testsuite/gdb.reverse/sigall-precsave.exp
+++ b/gdb/testsuite/gdb.reverse/sigall-precsave.exp
@@ -22,21 +22,16 @@ if ![supports_reverse] {
return
}
-if $tracelevel then {
- strace $tracelevel
-}
-
gdb_exit
gdb_start
gdb_reinitialize_dir $srcdir/$subdir
-set testfile sigall-precsave
-set srcfile sigall-reverse.c
-set binfile ${objdir}/${subdir}/${testfile}
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug}] != "" } {
- untested ${testfile}.exp
- return -1
+standard_testfile sigall-reverse.c
+set precsave [standard_output_file sigall.precsave]
+
+if {[build_executable $testfile.exp $testfile $srcfile debug] == -1} {
+ return -1
}
# Make the first signal SIGABRT because it is always supported.
@@ -189,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"
« no previous file with comments | « gdb/testsuite/gdb.reverse/next-reverse-bkpt-over-sr.exp ('k') | gdb/testsuite/gdb.reverse/sigall-reverse.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698