This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: rs6000-tdep should probably not depend on the ppc-sim code
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Hector Oron <hector dot oron at gmail dot com>
- Cc: gdb-patches at sourceware dot org, vapier at gentoo dot org
- Date: Wed, 14 Mar 2012 10:31:51 -0700
- Subject: Re: rs6000-tdep should probably not depend on the ppc-sim code
- References: <CAODfWeFMMN6KdgPLHfBFJcZFOxW_-g80X4sztXNKekxyz+K_uQ@mail.gmail.com>
> 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