[RFA:] sim --sysroot=... option.
Sun Dec 12 18:18:00 GMT 2004
Hans-Peter Nilsson wrote:
>>Date: Mon, 6 Dec 2004 17:54:12 +0100
>>From: Hans-Peter Nilsson <firstname.lastname@example.org>
>> * 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).
For the moment skip testing on mcore, v850 h8300, and mn10300. The
corresponding GDB parts are in pieces on the floor (I note that people
are trying to re-assemble the h8300 and mn10300).
> 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.
Otherwize, all ok.
PS: You wouldn't be interested in writing a simulator section of the GDB
More information about the Gdb-patches