This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: How to adequately test 'sim' changes?
Hi -
On Fri, Dec 01, 2000 at 12:59:58PM -0800, Chris G. Demetriou wrote:
: [...]
: Are there any details on how to configure and run those tests against
: the simulator? I've not had much luck in that regard, to be honest,
: so most of my runs of 'make check' don't actually do much...
The key is to get dejagnu to identify the correct target for the tests.
Look for the most appropriate "*-sim.exp" in $srcdir/dejagnu/baseboards,
then run tests thusly:
cd $build/gdb
make check RUNTESTFLAGS="--target_board=foo-sim"
: Also, should i be building everything from a single tree, from a
: single tree for binutils + debugger & separate tree for gcc, or is all
: independent trees OK? [...]
Separately installed tools are probably fine. In a standard Cygnus toolchain
build tree, all the various programs (gcc, binutils, etc.) are built together
as siblings. Perhaps such a combined source tree will exist in the public
GNU repositories too before long.
- FChE
PGP signature