rs6000-tdep should probably not depend on the ppc-sim code

Joel Brobecker brobecker@adacore.com
Wed Mar 14 17:32:00 GMT 2012


>   Trying to compile gdb on mips(el) platform with
> --enable-targets=all, fails to build with following error:

I took a quick look to see what's going on, and I think you can
work around this by configuring with --disable-sim (you said on
IRC that you did not care much about having the sim). What's
happening is that configure is enabling the *mips* simulator,
and GDB's configure is then defining WITH_SIM.  rs6000-tdep.c
assumes that WITH_SIM is sufficient to ensure a *ppc* simulator,
which is not true, since any debugger enabling target support
for a powerpc-based target would use that file.

We'll need to find a better solution, but this should get you
rolling.

-- 
Joel



More information about the Gdb-patches mailing list