This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Exhaustive simulator testing


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


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