2002-04-07 Elena Zannoni <ezannoni@redhat.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 8 Apr 2002 00:01:06 +0000 (00:01 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Mon, 8 Apr 2002 00:01:06 +0000 (00:01 +0000)
        Work around for PR gdb/285:
* gdb.asm/asm-source.exp: Bail out if multilibs are detected.

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

index 3fe54a0..4cca82d 100644 (file)
@@ -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
index 04a1acd..11ced29 100644 (file)
@@ -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