This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

tdesc-arch.exp


Hi Daniel,

One of your new xml tests fails for me on OpenBSD/i386.  It's the one
that tries the second architecture supported by GDB, which fails
because GDB replies with:

warning: A handler for the OS ABI "OpenBSD ELF" is not built into this configuration of GDB.  Attempting to continue with the default i386:x86-64 settings.

So the problem here is that "set architecture" says it supports
i386:x86-64, but GDB actually doesn't.  I expect this to occur on
other native configurations too, at least those that set a default OS
ABI.

Not sure how we should fix this.  We really shouldn't advertise the
x86-64 variants if we don't support any 64-bit ABI, but doing so is a
tad bit difficult because this list comes directly from BFD.  So
perhaps the test should be KFAIL'ed for now?

Mark


Test Run By kettenis on Sun Jan 28 12:38:10 2007
Native configuration is i386-unknown-openbsd4.0

		=== gdb tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/local/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /usr/local/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../../../src/gdb/gdb/testsuite/config/unix.exp as tool-and-target-specific interface file.
Running ../../../../src/gdb/gdb/testsuite/gdb.xml/tdesc-arch.exp ...
GNU gdb 6.6.50.20070127-cvs
Copyright (C) 2007 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd4.0".
(gdb) set height 0
(gdb) set width 0
(gdb) set tdesc filename ../../../../src/gdb/gdb/testsuite/gdb.xml/trivial.xml
(gdb) GNU gdb 6.6.50.20070127-cvs
Copyright (C) 2007 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd4.0".
(gdb) set height 0
(gdb) set width 0
(gdb) set architecture
Requires an argument. Valid arguments are i386, i386:x86-64, i8086, i386:intel, i386:x86-64:intel, auto.
(gdb) PASS: gdb.xml/tdesc-arch.exp: read valid architectures
show architecture
The target architecture is set automatically (currently i386)
(gdb) PASS: gdb.xml/tdesc-arch.exp: read default architecture
set tdesc filename tdesc-arch.xml
(gdb) PASS: gdb.xml/tdesc-arch.exp: set tdesc filename tdesc-arch.xml (first architecture)
show architecture
The target architecture is set automatically (currently i386)
(gdb) PASS: gdb.xml/tdesc-arch.exp: show architecture (first architecture)
set tdesc filename tdesc-arch.xml
warning: A handler for the OS ABI "OpenBSD ELF" is not built into this configuration
of GDB.  Attempting to continue with the default i386:x86-64 settings.

(gdb) FAIL: gdb.xml/tdesc-arch.exp: set tdesc filename tdesc-arch.xml (second architecture)
show architecture
The target architecture is set automatically (currently i386:x86-64)
(gdb) PASS: gdb.xml/tdesc-arch.exp: show architecture (second architecture)
set tdesc filename tdesc-arch.xml
warning: while parsing target description (at line 2): Target description specified unknown architecture "invalid"
warning: Could not load XML target description; ignoring
(gdb) PASS: gdb.xml/tdesc-arch.exp: set tdesc filename tdesc-arch.xml (invalid architecture)
show architecture
The target architecture is set automatically (currently i386)
(gdb) PASS: gdb.xml/tdesc-arch.exp: show architecture (invalid architecture)
testcase ../../../../src/gdb/gdb/testsuite/gdb.xml/tdesc-arch.exp completed in 2 seconds

		=== gdb Summary ===

# of expected passes		7
# of unexpected failures	1
Executing on host: /home/kettenis/obj/gdb/gdb/testsuite/../../gdb/gdb -nw --command gdb_cmd    (timeout = 300)
GNU gdb 6.6.50.20070127-cvs
Copyright (C) 2007 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-openbsd4.0".
/home/kettenis/obj/gdb/gdb/testsuite/../../gdb/gdb version  6.6.50.20070127-cvs -nx

runtest completed at Sun Jan 28 12:38:15 2007


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]