This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Exhaustive simulator testing
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Ben Elliston <bje at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 30 Oct 2002 11:32:50 -0800
- Subject: Re: Exhaustive simulator testing
- References: <20020926214630.GG12223@codesourcery.com> <m33cr42cc3.fsf@scooby.brisbane.redhat.com>
On Fri, Oct 18, 2002 at 09:52:44PM +1000, Ben Elliston wrote:
> >>>>> "Zack" == Zack Weinberg <zack@codesourcery.com> writes:
>
> Zack> It Would Be Nice if it were possible to build the simulator
> Zack> without also building GDB. It Would Be Really Nice if you
> Zack> didn't have to have GDB's sources in the tree at all.
>
> Are you sure? Most simulators can be built without having to first
> build GDB -- you just configure src/sim (or src/sid, if you're lucky
> enough) and it will produce a standalone <target>-run executable.
Many of the src/sim simulators make direct reference to GDB routines.
For instance, sim/ppc/main.c and sim/ppc/sim_calls.c both include
gdb/callback.h and gdb/remote-sim.h. If the GDB sources are not in
the tree these files will obviously not compile. My experience is
that if GDB is in the tree but hasn't been configured, they still
won't compile (bombs out looking for gdb/config.h or similar).
I haven't looked at sid.
zw