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

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