aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-04-08 00:01:06 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-04-08 00:01:06 +0000
commit0fcddd82b64ffe3938e9f750746388c949053e1c (patch)
tree820d15fbb9e965e16cf7494f100e93b1e351ba7c
parentbccbc969e1f53edadf270e54cb4b5badf4563a62 (diff)
downloadgdb-0fcddd82b64ffe3938e9f750746388c949053e1c.zip
gdb-0fcddd82b64ffe3938e9f750746388c949053e1c.tar.gz
gdb-0fcddd82b64ffe3938e9f750746388c949053e1c.tar.bz2
2002-04-07 Elena Zannoni <ezannoni@redhat.com>
Work around for PR gdb/285: * gdb.asm/asm-source.exp: Bail out if multilibs are detected.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.asm/asm-source.exp15
2 files changed, 20 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 3fe54a0..4cca82d 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2002-04-07 Elena Zannoni <ezannoni@redhat.com>
+ Work around for PR gdb/285:
+ * gdb.asm/asm-source.exp: Bail out if multilibs are detected.
+
+2002-04-07 Elena Zannoni <ezannoni@redhat.com>
+
* gdb.asm/asm-source.exp: Build symbolic link to arch specific
instructions file at run time instead of configure time.
Sometimes we run the test in a directory that is not the one we
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
index 04a1acd..11ced29 100644
--- a/gdb/testsuite/gdb.asm/asm-source.exp
+++ b/gdb/testsuite/gdb.asm/asm-source.exp
@@ -67,6 +67,21 @@ if { "${asm-arch}" == "" } {
gdb_suppress_entire_file "Assembly source test -- not implemented for this target."
}
+# Watch out, we are invoking the assembler, but the testsuite sets multilib
+# switches according to compiler syntax. If we pass these options straight
+# to the assembler, they won't always make sense. If we don't pass them to
+# the assembler, the final link will complain that the object files were
+# built with different defaults. So no matter what we do, we lose. We may as
+# well get out of this test sooner rather than later.
+set dest [target_info name]
+if [board_info $dest exists multilib_flags] {
+ set multilib_flags [board_info $dest multilib_flags]
+ if { "${multilib_flags}" != "" } {
+ gdb_suppress_entire_file "Assembly source test -- multilibs not supported by this test."
+ return;
+ }
+}
+
set testfile "asm-source"
set binfile ${objdir}/${subdir}/${testfile}
set src1 ${srcdir}/${subdir}/asmsrc1.s