Compile break-asm-file{0,1}.s without debug info
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.linespec / break-asm-file.exp
index c3e18dc51e49484c7b188639a1a02f882641acf6..b2f30561eb8f7d0cd9892515a0da052e4c9614d5 100644 (file)
@@ -28,11 +28,24 @@ if {![dwarf2_support]} {
     return 0
 }
 
-if {[prepare_for_testing ${testfile}.exp $execfile \
-        [list $srcfile $asm_file1 $asm_file0] \
-        {debug nowarnings optimize=-O0}]} {
-    untested "Skipping ${testfile}."
-    return
+if  {[gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile}1.o \
+         object {debug nowarnings optimize=-O0}] != ""} {
+    return -1
+}
+
+# Compile .s files without debug information.
+if  {[gdb_compile ${srcdir}/${subdir}/$asm_file0 ${binfile}2.o \
+         object {nodebug}] != ""} {
+    return -1
+}
+if  {[gdb_compile ${srcdir}/${subdir}/$asm_file1 ${binfile}3.o \
+         object {nodebug}] != ""} {
+    return -1
+}
+
+if  {[gdb_compile [list ${binfile}1.o ${binfile}2.o ${binfile}3.o] \
+         "${binfile}" executable {}] != ""} {
+    return -1
 }
 
 clean_restart $execfile
This page took 0.024883 seconds and 4 git commands to generate.