This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] Skip multi-arch.exp if i*86-linux.
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org, palves at redhat dot com
- Date: Wed, 05 Dec 2012 11:39:17 -0800
- Subject: [patch] Skip multi-arch.exp if i*86-linux.
Hi.
I will commit this in a few days if there are no objections.
If there are objections, please commit the fix you prefer.
(gdb) file /home/dje/gnu/sourceware/pure-gdb/build/obj32/gdb/testsuite/gdb.multi/ma-hello
"/home/dje/gnu/sourceware/pure-gdb/build/obj32/gdb/testsuite/gdb.multi/ma-hello": not in executable format: File format not recognized
ERROR: Couldn't load /home/dje/gnu/sourceware/pure-gdb/build/obj32/gdb/testsuite/gdb.multi/ma-hello into /home/dje/gnu/sourceware/pure-gdb/build/obj32/gdb/testsuite/../../gdb/gdb.
2012-12-05 Doug Evans <dje@google.com>
* gdb.multi/multi-arch-exec.exp: Skip for i*86-linux.
* gdb.multi/multi-arch.exp: Ditto.
Index: gdb.multi/multi-arch-exec.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.multi/multi-arch-exec.exp,v
retrieving revision 1.1
diff -u -p -r1.1 multi-arch-exec.exp
--- gdb.multi/multi-arch-exec.exp 9 Nov 2012 12:20:24 -0000 1.1
+++ gdb.multi/multi-arch-exec.exp 5 Dec 2012 19:32:29 -0000
@@ -23,6 +23,12 @@ if [target_info exists use_gdb_stub] {
return
}
+# The 64-bit compile may succeed for i386-linux, but gdb won't be able
+# to load the file.
+if [istarget "i?86-*linux*"] {
+ return
+}
+
# Can't use standard_testfile, we want executables with specialized
# names.
set exec1 "multi-arch-exec"
Index: gdb.multi/multi-arch.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.multi/multi-arch.exp,v
retrieving revision 1.1
diff -u -p -r1.1 multi-arch.exp
--- gdb.multi/multi-arch.exp 9 Nov 2012 01:47:20 -0000 1.1
+++ gdb.multi/multi-arch.exp 5 Dec 2012 19:32:29 -0000
@@ -23,6 +23,12 @@ if [target_info exists use_gdb_stub] {
return
}
+# The 64-bit compile may succeed for i386-linux, but gdb won't be able
+# to load the file.
+if [istarget "i?86-*linux*"] {
+ return
+}
+
# Can't use standard_testfile, we want executables with specialized
# names.
set exec1 "ma-hello"