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

dc7ef9
commit 98d1b8dcd84bb39ba5d0731162f241890d4ce5f5
dc7ef9
Author: Anton Blanchard <anton@samba.org>
dc7ef9
Date:   Mon Mar 31 13:32:07 2014 +1100
dc7ef9
dc7ef9
    gdb.arch/ppc64-atomic-inst.exp: Improve error handling.
dc7ef9
    
dc7ef9
    gdb/testsuite/
dc7ef9
    2014-04-01  Anton Blanchard  <anton@samba.org>
dc7ef9
    
dc7ef9
            * gdb.arch/ppc64-atomic-inst.exp: Use untested.  Make test
dc7ef9
            messages unique.
dc7ef9
dc7ef9
### a/gdb/testsuite/ChangeLog
dc7ef9
### b/gdb/testsuite/ChangeLog
dc7ef9
## -1,5 +1,10 @@
dc7ef9
 2014-04-01  Anton Blanchard  <anton@samba.org>
dc7ef9
 
dc7ef9
+	* gdb.arch/ppc64-atomic-inst.exp: Use untested.  Make test
dc7ef9
+	messages unique.
dc7ef9
+
dc7ef9
+2014-04-01  Anton Blanchard  <anton@samba.org>
dc7ef9
+
dc7ef9
 	* gdb.arch/ppc64-atomic-inst.exp: Use standard_testfile,
dc7ef9
 	prepare_for_testing.
dc7ef9
 
dc7ef9
--- a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
dc7ef9
+++ b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
dc7ef9
@@ -33,26 +33,26 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug quiet}]
dc7ef9
 }
dc7ef9
 
dc7ef9
 if ![runto_main] then {
dc7ef9
-    perror "Couldn't run to breakpoint"
dc7ef9
-    continue
dc7ef9
+    untested "could not run to main"
dc7ef9
+    return -1
dc7ef9
 }
dc7ef9
 
dc7ef9
 set bp1 [gdb_get_line_number "lwarx"]
dc7ef9
 gdb_breakpoint "$bp1" "Breakpoint $decimal at $hex" \
dc7ef9
-  "Set the breakpoint at the start of the sequence"
dc7ef9
+  "Set the breakpoint at the start of the lwarx/stwcx sequence"
dc7ef9
 
dc7ef9
 set bp2 [gdb_get_line_number "ldarx"]
dc7ef9
 gdb_breakpoint "$bp2" "Breakpoint $decimal at $hex" \
dc7ef9
-  "Set the breakpoint at the start of the sequence"
dc7ef9
+  "Set the breakpoint at the start of the ldarx/stdcx sequence"
dc7ef9
 
dc7ef9
 gdb_test continue "Continuing.*Breakpoint $decimal.*" \
dc7ef9
-  "Continue until breakpoint"
dc7ef9
+  "Continue until lwarx/stwcx start breakpoint"
dc7ef9
 
dc7ef9
 gdb_test nexti "bne.*1b" \
dc7ef9
   "Step through the lwarx/stwcx sequence"
dc7ef9
 
dc7ef9
 gdb_test continue "Continuing.*Breakpoint $decimal.*" \
dc7ef9
-  "Continue until breakpoint"
dc7ef9
+  "Continue until ldarx/stdcx start breakpoint"
dc7ef9
 
dc7ef9
 gdb_test nexti "bne.*1b" \
dc7ef9
-  "Step through the lwarx/stwcx sequence"
dc7ef9
+  "Step through the ldarx/stdcx sequence"