Date: Mon, 6 Dec 2004 17:54:12 +0100
From: Hans-Peter Nilsson <hp@axis.com>
* nrun.c (main): If simulator_sysroot is not empty, chdir there.
* run.c (main): Ditto.
After doing a test-build of all buildable simulators in CVS,
(covered by arm-elf frv-elf h8300-elf m32r-elf m68hc11-elf
mcore-elf mips-elf mn10300-elf powerpc-elf v850-elf), I'd like
to retract the run.c part, which is just for an obsolete
interface, and doesn't include sim-config.h (or apparently the
option handler or the other bits from sim/common).
I'd also like to like to replace the nrun.c patch with one that
also includes unistd.h to get the chdir prototype (else there's
a compilation warning, but only for *some* simulators;
presumable target header files include unistd.h in some cases).
Sorry for the extra reading.
* nrun.c [HAVE_UNISTD_H]: Include unistd.h.
(main): If simulator_sysroot is not empty, chdir there.