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