aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2001-12-20 16:06:11 +0000
committerCorinna Vinschen <corinna@vinschen.de>2001-12-20 16:06:11 +0000
commitcf599fa72746a50cffe290b6f1c7e0b916884970 (patch)
tree68214386bfe6e32b904a24143c7a3803d385227c
parent311041266ecd9d49c9d85dcc02a4382ec8f6bb86 (diff)
downloadgdb-cf599fa72746a50cffe290b6f1c7e0b916884970.zip
gdb-cf599fa72746a50cffe290b6f1c7e0b916884970.tar.gz
gdb-cf599fa72746a50cffe290b6f1c7e0b916884970.tar.bz2
* gdb.asm/asm-source.exp: Drop setting link-flags for xstormy16.
Substitute call to target_link by call to gdb_compile.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.asm/asm-source.exp7
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 0160134..5685035 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
index 12fb43e..1af22a4 100644
--- a/gdb/testsuite/gdb.asm/asm-source.exp
+++ b/gdb/testsuite/gdb.asm/asm-source.exp
@@ -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."
}