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]

Re: gdb testsuite


Hi Jim,

Thank you very much for the analysis.

I have fixed the issue. Now I can see a few more tests passed under gdb:
===
                === gdb Summary ===

# of expected passes            260
# of unexpected failures        356
# of untested testcases         2
# of unsupported tests          12
/scratch/user/swami/gdb/build/gdb/testsuite/../../gdb/gdb version  6.6-1.0 -nx
====

Created the cr16 target specific simulator tests and able to run these tests.

Thank you very much for your response.

Btw, a compiler option "-lm" passed for all tests. Can I remove the "-lm" option during the compilation? Please advise.


Thanks, Swami


Jim Blandy wrote:
In gdb.log, I see the below.  Note that the test suite tries to run
the program with a direct "run" command, with no 'target sim'.  I
think you need to write an appropriate DejaGnu configuration file for
your target.  I believe there are existing files included with DejaGnu
that might be appropriate for you to model yours on, with names ending
in "-sim", or something like that.

Running ../../../gdb-6.6/gdb/testsuite/gdb.base/a2-run.exp ...
Executing on host: cr16-elf-gcc
../../../gdb-6.6/gdb/testsuite/gdb.base/run.c  -g  -lm   -o
/scratch/user/swami/gdb/build/gdb/testsuite/gdb.base/run    (timeout =
300)
GNU gdb 6.6-1.0 20080109 (cr16-elf)

Copyright (C) 2006 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 "--host=i686-pc-linux-gnu --target=cr16-elf".

(gdb) set height 0

(gdb) set width 0

(gdb) dir

Reinitialize source path to empty? (y or n) y

Source directories searched: $cdir:$cwd

(gdb) dir ../../../gdb-6.6/gdb/testsuite/gdb.base

Source directories searched:
/scratch/user/swami/gdb/build/gdb/testsuite/../../../gdb-6.6/gdb/testsuite/gdb.base:$cdir:$cwd

(gdb) kill

The program is not being run.

(gdb) file /scratch/user/swami/gdb/build/gdb/testsuite/gdb.base/run

Reading symbols from
/scratch/user/swami/gdb/build/gdb/testsuite/gdb.base/run...done.

(gdb) run

Starting program: /scratch/user/swami/gdb/build/gdb/testsuite/gdb.base/run

Don't know how to run. Try "help target".

(gdb) FAIL: gdb.base/a2-run.exp: run "run" with no args



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