This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] gdbserver support for e500 / altivec
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: drow at false dot org (Daniel Jacobowitz)
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 17 Oct 2007 00:09:32 +0200 (CEST)
- Subject: Re: [patch] gdbserver support for e500 / altivec
Dan Jacobowitz wrote:
> * configure.srv: Use alternate register sets for powerpc64-*-linux*
> with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
> with SPE.
This uses a configure-time check whether __ALTIVEC__ is defined. However,
GCC for PowerPC by default does not define __ALTIVEC__, it does so only
when using the -maltivec flag. In any case, this is rather independent of
whether the target system supports AltiVec or not ...
Why does this need to be a configure check in the first place? Wouldn't
it be much preferable if you could build a single gdbserver binary that
would report the properties of the system it happens to be running on?
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com