Blame SOURCES/gdb-rhbz1480496-power-atomic-step-2of5.patch

2c2fa1
commit 3114cea14b326c1d429388559f020103108b3019
2c2fa1
Author: Anton Blanchard <anton@samba.org>
2c2fa1
Date:   Mon Mar 31 12:03:01 2014 +1100
2c2fa1
2c2fa1
    gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile, prepare_for_testing.
2c2fa1
    
2c2fa1
    gdb/testsuite/
2c2fa1
    2014-04-01  Anton Blanchard  <anton@samba.org>
2c2fa1
    
2c2fa1
            * gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile,
2c2fa1
            prepare_for_testing.
2c2fa1
2c2fa1
### a/gdb/testsuite/ChangeLog
2c2fa1
### b/gdb/testsuite/ChangeLog
2c2fa1
## -1,5 +1,10 @@
2c2fa1
 2014-04-01  Anton Blanchard  <anton@samba.org>
2c2fa1
 
2c2fa1
+	* gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile,
2c2fa1
+	prepare_for_testing.
2c2fa1
+
2c2fa1
+2014-04-01  Anton Blanchard  <anton@samba.org>
2c2fa1
+
2c2fa1
 	* gdb.arch/ppc64-atomic-inst.c: Remove.
2c2fa1
 	* gdb.arch/ppc64-atomic-inst.S: New file.
2c2fa1
 	* gdb.arch/ppc64-atomic-inst.exp: Adapt for asm based testcase.
2c2fa1
--- a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
2c2fa1
+++ b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
2c2fa1
@@ -26,21 +26,12 @@ if {![istarget "powerpc*"] || ![is_lp64_target]} {
2c2fa1
     return
2c2fa1
 }
2c2fa1
 
2c2fa1
-set testfile "ppc64-atomic-inst"
2c2fa1
-set srcfile ${testfile}.S
2c2fa1
-set binfile ${objdir}/${subdir}/${testfile}
2c2fa1
-set compile_flags {debug quiet}
2c2fa1
+standard_testfile .S
2c2fa1
 
2c2fa1
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $compile_flags] != "" } {
2c2fa1
-    unsupported "Testcase compile failed."
2c2fa1
+if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug quiet}] } {
2c2fa1
     return -1
2c2fa1
 }
2c2fa1
 
2c2fa1
-gdb_exit
2c2fa1
-gdb_start
2c2fa1
-gdb_reinitialize_dir $srcdir/$subdir
2c2fa1
-gdb_load ${binfile}
2c2fa1
-
2c2fa1
 if ![runto_main] then {
2c2fa1
     perror "Couldn't run to breakpoint"
2c2fa1
     continue