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

Unified Diff: gdb/testsuite/gdb.opt/clobbered-registers-O2.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.opt/Makefile.in ('k') | gdb/testsuite/gdb.opt/inline-break.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
diff --git a/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp b/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
index b90c16469d57aa4ef175cd4bb22320c2aaf45b75..a733baa0d187bd5d2227be0f57c13f53e4f0b201 100644
--- a/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
+++ b/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
@@ -15,36 +15,22 @@
#
# This file is part of the gdb testsuite.
-if $tracelevel then {
- strace $tracelevel
-}
-
# Test displaying call clobbered registers in optimized binaries.
# GDB should not show incorrect values.
-set testfile clobbered-registers-O2
-set srcfile ${testfile}.c
-set binfile ${objdir}/${subdir}/${testfile}
+standard_testfile
# What compiler are we using?
#
-if [get_compiler_info ${binfile}] {
+if [get_compiler_info] {
return -1
}
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [concat debug optimize=-O2 nowarnings]] != "" } {
- untested clobbered-registers-O2.exp
- return -1
+if {[prepare_for_testing $testfile.exp $testfile $srcfile \
+ {debug optimize=-O2 nowarnings}]} {
+ return -1
}
-# use this to debug:
-#log_user 1
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
if { ![runto start_sequence] } then {
fail "run to start_sequence"
return
« no previous file with comments | « gdb/testsuite/gdb.opt/Makefile.in ('k') | gdb/testsuite/gdb.opt/inline-break.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698