Re: [rfc/rft] ppc gdbserver: autodetect AltiVec and SPE

Thiago Jung Bauermann
2008-04-19T00:11:44Z

Hi Uli,

On Wed, 2008-03-26 at 21:21 +0100, Ulrich Weigand wrote:
> * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
> srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
> from reg_xmlfiles.

gdbserver is not compiling anymore on Linux/ppc. I believe this patch is
the cause:

gcc -Wall -g -O2 -I. -I../../../gdb.hg/gdb/gdbserver -I../../../gdb.hg/gdb/gdbserver/../regformats -I../../../gdb.hg/gdb/gdbserver/../../include -I../../bfd -I../../../gdb.hg/gdb/gdbserver/../../bfd -rdynamic -o gdbserver inferiors.o regcache.o remote-utils.o server.o signals.o target.o utils.o version.o mem-break.o hostio.o xml-builtin.o reg-ppc.o powerpc-32.o reg-ppc64.o powerpc-64.o linux-low.o linux-ppc-low.o hostio-errno.o thread-db.o proc-service.o \
-lthread_db
linux-ppc-low.o: In function `ppc_arch_setup':
../../../gdb.hg/gdb/gdbserver/linux-ppc-low.c:255: undefined reference to `init_registers_powerpc_e500'
collect2: ld returned 1 exit status
make[4]: *** [gdbserver] Error 1
make[4]: Leaving directory `/home/bauermann/tmp/remove-dead-fn/build/gdb/gdbserver'

Reverting my repository to a date before this commit makes it build
again.
--
[]'s
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center