Adjust gdb.multi tests for aarch64
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.multi / multi-arch.exp
index 22ad4daa3acee613b911c51b9dda0b2d9eb0a51c..4b255eeb29e5bf0bf0d7a1560e2db7024d92f1ae 100644 (file)
@@ -44,6 +44,9 @@ set binfile2 [standard_output_file ${exec2}]
 if [istarget "s390*-*-*"] {
     set march1 "-m64"
     set march2 "-m31"
+} elseif { [istarget "aarch64*-*-*"] } {
+    set march1 ""
+    set march2 ""
 } else {
     set march1 "-m64"
     set march2 "-m32"
@@ -54,8 +57,21 @@ if { [prepare_for_testing ${testfile}.exp ${exec1} "${srcfile1}" \
     return -1
 }
 
+set options [list debug nowarnings]
+
+if [istarget "aarch64*-*-*"] {
+    if {[info exists ARM_CC_FOR_TARGET]} {
+       lappend options "compiler=${ARM_CC_FOR_TARGET}"
+    } else {
+       unsupported "ARM compiler is not known"
+       return -1
+    }
+} else {
+    lappend options "additional_flags=${march2}"
+}
+
 if { [prepare_for_testing ${testfile}.exp ${exec2} "${srcfile2}" \
-         [list debug nowarnings additional_flags=${march2}]] } {
+        $options]} {
     return -1
 }
 
This page took 0.032794 seconds and 4 git commands to generate.