* gdb.asm/asm-source.exp: Drop setting link-flags for xstormy16.
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 20 Dec 2001 16:06:11 +0000 (16:06 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 20 Dec 2001 16:06:11 +0000 (16:06 +0000)
Substitute call to target_link by call to gdb_compile.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.asm/asm-source.exp

index 01601342a5a007c49e771af663b8f93b2eb41c9e..568503539dae5cd2054799601ca9a55f0763907b 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-19  Corinna Vinschen  <vinschen@redhat.com>
+
+       * gdb.asm/asm-source.exp: Drop setting link-flags for xstormy16.
+       Substitute call to target_link by call to gdb_compile.
+
 Wed Dec 19 14:10:57 2001  Jeffrey A Law  (law@redhat.com)
 
         * gdb.base/break.exp: Fix HP specific search string when testing
index 12fb43e9611889d53c390235fb5ceef6f02ebe54..1af22a496dabfb45fbfb66e3131b54abb9c193c3 100644 (file)
@@ -53,7 +53,6 @@ if [istarget "sparc-*-*"] then {
 if [istarget "xstormy16-*-*"] then {
     set asm-arch xstormy16
     set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}"
-    set link-flags "-L${objdir}/../../gcc"
 }
 if { "${asm-arch}" == "" } {
     gdb_suppress_entire_file "Assembly source test -- not implemented for this target."
@@ -76,7 +75,11 @@ if {[target_assemble ${src2} asmsrc2.o "${asm-flags}"] != ""} then {
      gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
 }
 
-if  { [target_link "asmsrc1.o asmsrc2.o" ${binfile} "${link-flags}"] != "" } {
+set opts "debug ldflags=-nostartfiles"
+foreach i ${link-flags} {
+    append opts " ldflags=$i"
+}
+if { [gdb_compile "asmsrc1.o asmsrc2.o" "${binfile}" executable $opts] != "" } {
      gdb_suppress_entire_file "Testcase compile failed, so all tests in this file will automatically fail."
 }
 
This page took 0.029558 seconds and 4 git commands to generate.