+2018-03-23 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * gdb.arch/amd64-disp-step-avx.exp: Remove unneeded assembler flag
+ option, syntax was wrong anyway.
+ * gdb.arch/arm-disp-step.exp: Likewise.
+ * gdb.arch/sparc64-regs.exp: Likewise.
+ * gdb.arch/amd64-disp-step.exp: Remove unneeded assembler flag
+ option, syntax was wrong anyway, switch to use
+ prepare_for_testing.
+ * gdb.arch/i386-disp-step.exp: Likewise.
+
2018-03-23 Andreas Arnez <arnez@linux.vnet.ibm.com>
* gdb.ada/exec_changed.exp: Replace "target_info exists
standard_testfile .S
-set additional_flags "-Wa,-g"
-
-if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
- [list debug $additional_flags]] } {
+if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
return -1
}
standard_testfile .S
-set additional_flags "-Wa,-g"
-
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } {
- untested "failed to compile"
+if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
-# Get things started.
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
gdb_test "set displaced-stepping on" ""
gdb_test "show displaced-stepping" ".* displaced stepping .* is on.*"
standard_testfile .S
-set additional_flags "-Wa,-g"
-
-if { [prepare_for_testing "failed to prepare" $testfile $srcfile [list debug $additional_flags]] } {
+if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
standard_testfile .S
-set additional_flags "-Wa,-g"
-
-if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [list debug $additional_flags]] != "" } {
- untested "failed to compile"
+if { [prepare_for_testing "failed to prepare" $testfile $srcfile] } {
return -1
}
-# Get things started.
-
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
-
gdb_test "set displaced-stepping on" ""
gdb_test "show displaced-stepping" ".* displaced stepping .* is on.*"
standard_testfile .S
-set additional_flags "-Wa,-g"
-
-if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile} \
- [list debug $additional_flags]] } {
+if { [prepare_for_testing "failed to prepare" ${testfile} ${srcfile}] } {
return -1
}