This is the mail archive of the gdb-patches@sources.redhat.com 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: [RFA:] sim --sysroot=... option.


Hans-Peter Nilsson wrote:
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).

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.


Andrew

PS: You wouldn't be interested in writing a simulator section of the GDB manual? :-)


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