From: Ulrich Weigand Date: Fri, 24 Nov 2006 20:11:07 +0000 (+0000) Subject: ChangeLog: X-Git-Tag: gdb_6_6-2006-12-18-release~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a370a9f5817d4a12f243851556e93630279cc99a;p=thirdparty%2Fbinutils-gdb.git ChangeLog: * configure.tgt: Enable gdbserver for SPU target. * configure.ac: Build gdbserver when gdb_native is yes. * configure: Regenerate. * regformats/reg-spu.dat: New file. gdbserver/ChangeLog: * configure.srv: Add target "spu*-*-*". * Makefile.in (clean): Remove reg-spu.c. (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. * spu-low.c: New file. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cdc36a841d6..487a27e6454 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2006-11-24 Ulrich Weigand + + * configure.tgt: Enable gdbserver for SPU target. + * configure.ac: Build gdbserver when gdb_native is yes. + * configure: Regenerate. + * regformats/reg-spu.dat: New file. + 2006-11-24 Ulrich Weigand * findvar.c (address_from_register): New function. diff --git a/gdb/configure b/gdb/configure index 5aa226fad83..0d331c33a33 100755 --- a/gdb/configure +++ b/gdb/configure @@ -22646,8 +22646,8 @@ subdirs="$subdirs multi-ice" fi -# We only build gdbserver automatically if host and target are the same. -if test "x$target" = "x$host"; then +# We only build gdbserver automatically in a native configuration. +if test "$gdb_native" = "yes"; then echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5 echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6 if test "x$build_gdbserver" = xyes; then diff --git a/gdb/configure.ac b/gdb/configure.ac index b80f7bd68ab..4deb4f5b43c 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -1481,8 +1481,8 @@ if test "x$enable_multi_ice" = xyes; then AC_CONFIG_SUBDIRS(multi-ice) fi -# We only build gdbserver automatically if host and target are the same. -if test "x$target" = "x$host"; then +# We only build gdbserver automatically in a native configuration. +if test "$gdb_native" = "yes"; then AC_MSG_CHECKING(whether gdbserver is supported on this host) if test "x$build_gdbserver" = xyes; then AC_MSG_RESULT(yes) diff --git a/gdb/configure.tgt b/gdb/configure.tgt index 8c4ccb551f8..dd2e719e4c3 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -210,7 +210,9 @@ sparc-*-rtems*) gdb_target=embed ;; sparc-*-*) gdb_target=sparc ;; sparc64-*-*) gdb_target=sparc64 ;; -spu*-*-*) gdb_target=spu ;; +spu*-*-*) gdb_target=spu + build_gdbserver=yes + ;; xstormy16-*-*) gdb_target=xstormy16 ;; diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index e31c0244ae9..b57c0668625 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,10 @@ +2006-11-24 Ulrich Weigand + + * configure.srv: Add target "spu*-*-*". + * Makefile.in (clean): Remove reg-spu.c. + (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies. + * spu-low.c: New file. + 2006-11-21 Daniel Jacobowitz Checked in by Joel Brobecker diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in index f443a288026..9748c95c625 100644 --- a/gdb/gdbserver/Makefile.in +++ b/gdb/gdbserver/Makefile.in @@ -205,7 +205,7 @@ clean: rm -f version.c rm -f gdbserver gdbreplay core make.log rm -f reg-arm.c reg-i386.c reg-ia64.c reg-m32r.c reg-m68k.c reg-mips.c - rm -f reg-ppc.c reg-sh.c reg-x86-64.c reg-i386-linux.c + rm -f reg-ppc.c reg-sh.c reg-spu.c reg-x86-64.c reg-i386-linux.c rm -f reg-cris.c reg-crisv32.c reg-x86-64-linux.c maintainer-clean realclean distclean: clean @@ -289,6 +289,8 @@ linux-x86-64-low.o: linux-x86-64-low.c $(linux_low_h) $(server_h) \ win32-i386-low.o: win32-i386-low.c $(server_h) $(regdef_h) $(regcache_h) +spu-low.o: spu-low.c $(server_h) + reg-arm.o : reg-arm.c $(regdef_h) reg-arm.c : $(srcdir)/../regformats/reg-arm.dat $(regdat_sh) sh $(regdat_sh) $(srcdir)/../regformats/reg-arm.dat reg-arm.c @@ -331,6 +333,9 @@ reg-s390x.c : $(srcdir)/../regformats/reg-s390x.dat $(regdat_sh) reg-sh.o : reg-sh.c $(regdef_h) reg-sh.c : $(srcdir)/../regformats/reg-sh.dat $(regdat_sh) sh $(regdat_sh) $(srcdir)/../regformats/reg-sh.dat reg-sh.c +reg-spu.o : reg-spu.c $(regdef_h) +reg-spu.c : $(srcdir)/../regformats/reg-spu.dat $(regdat_sh) + sh $(regdat_sh) $(srcdir)/../regformats/reg-spu.dat reg-spu.c reg-x86-64.o : reg-x86-64.c $(regdef_h) reg-x86-64.c : $(srcdir)/../regformats/reg-x86-64.dat $(regdat_sh) sh $(regdat_sh) $(srcdir)/../regformats/reg-x86-64.dat reg-x86-64.c diff --git a/gdb/gdbserver/configure.srv b/gdb/gdbserver/configure.srv index 3287955ed82..5a4792cece2 100644 --- a/gdb/gdbserver/configure.srv +++ b/gdb/gdbserver/configure.srv @@ -101,6 +101,9 @@ case "${target}" in srv_linux_usrregs=yes srv_linux_thread_db=yes ;; + spu*-*-*) srv_regobj=reg-spu.o + srv_tgtobj="spu-low.o" + ;; x86_64-*-linux*) srv_regobj=reg-x86-64-linux.o srv_tgtobj="linux-low.o linux-x86-64-low.o i387-fp.o" srv_linux_regsets=yes