aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/configure.ac
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-10-15 19:58:17 +0000
committerDaniel Jacobowitz <drow@false.org>2007-10-15 19:58:17 +0000
commit30ed0a8f0b4557aeb8bbbeee1bb1904bc45f747e (patch)
treed3b93b11841ac4a7c2290eed5ce5b92964790369 /gdb/gdbserver/configure.ac
parent310a98e10257728271c1d3b817f7bfeb5c3cb88f (diff)
downloadgdb-30ed0a8f0b4557aeb8bbbeee1bb1904bc45f747e.zip
gdb-30ed0a8f0b4557aeb8bbbeee1bb1904bc45f747e.tar.gz
gdb-30ed0a8f0b4557aeb8bbbeee1bb1904bc45f747e.tar.bz2
* Makefile.in (clean): Remove new files.
(powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c) (powerpc-64.o, powerpc-64.c): New rules. * configure.srv: Use alternate register sets for powerpc64-*-linux* with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux* with SPE. * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for SPE targets. (ppc_cannot_store_register): Do not check for FPSCR for SPE targets. (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset) (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS) (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New. (target_regsets): Add AltiVec and SPE register sets. * configure.ac: Check for AltiVec and SPE. * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS) (ppc_fill_vrregset, ppc_store_vrregset): New. (target_regsets): Add AltiVec register set. * configure: Regenerated. * features/Makefile (WHICH): Add PowerPC register definitions. (rs6000/powerpc-32-expedite, rs6000/powerpc-e500-expedite) (rs6000/powerpc-64-expedite): New macros. ($(outdir)/%.dat): Handle subdirectories. * regformats/rs6000/powerpc-32.dat, regformats/rs6000/powerpc-64.dat, regformats/rs6000/powerpc-e500.dat: New generated files.
Diffstat (limited to 'gdb/gdbserver/configure.ac')
-rw-r--r--gdb/gdbserver/configure.ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac
index de996ba8..4e94f31 100644
--- a/gdb/gdbserver/configure.ac
+++ b/gdb/gdbserver/configure.ac
@@ -81,6 +81,28 @@ got it
[gdb_cv_arm_iwmmxt=no])
CPPFLAGS="$save_CPPFLAGS"])
;;
+ powerpc*-*-*)
+ AC_CACHE_CHECK([if Altivec is selected], [gdb_cv_ppc_altivec],
+ [save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $CFLAGS"
+ AC_EGREP_CPP([got it], [
+#ifdef __ALTIVEC__
+got it
+#endif
+ ], [gdb_cv_ppc_altivec=yes],
+ [gdb_cv_ppc_altivec=no])
+ CPPFLAGS="$save_CPPFLAGS"])
+ AC_CACHE_CHECK([if SPE is selected], [gdb_cv_ppc_spe],
+ [save_CPPFLAGS="$CPPFLAGS"
+ CPPFLAGS="$CPPFLAGS $CFLAGS"
+ AC_EGREP_CPP([got it], [
+#ifdef __SPE__
+got it
+#endif
+ ], [gdb_cv_ppc_spe=yes],
+ [gdb_cv_ppc_spe=no])
+ CPPFLAGS="$save_CPPFLAGS"])
+ ;;
esac
. ${srcdir}/configure.srv