Version: 6.6 Release: 12 Name: spu-gdb Summary: SPU stand-alone debugger License: GPL Group: Development/Debuggers Source: ftp://ftp.gnu.org/gnu/gdb/gdb-6.6.tar.bz2 Patch1: diff-spu-gdb-regtype Patch2: diff-spu-gdb-vector Patch3: diff-spu-gdb-overlay-gdbarch Patch4: diff-spu-gdb-overlay-tdep Patch5: diff-spu-gdb-overlay-test Patch6: diff-spu-gdb-ext Patch7: diff-gdb-qxfer-spu Patch8: diff-spu-gdb-backtracefix Patch9: diff-spu-gdb-soma Patch10: diff-bfd-iovec-stat Patch11: diff-fix-31980 Patch12: diff-spu-gdb-callfuncs-fix Patch13: diff-spu-gdb-clidump-fix Patch14: diff-spu-gdb-interrupt Patch15: diff-spu-gdb-onstack-fix Patch16: diff-spu-gdb-overlay-bpfix BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: ncurses-devel glibc-devel gcc make gzip texinfo dejagnu gettext BuildRequires: flex bison %define _unpackaged_files_terminate_build 1 %description GNU debugger for Cell Broadband Engine SPU (standalone). # Don't strip as the host binutils may be unable to handle SPU objects. %define __os_install_post /usr/lib/rpm/brp-compress # When building the cross-toolchain, reset prefix directory and use sysroot %ifnarch ppc ppc64 %define _prefix /opt/cell %define _mandir %{_prefix}/man %define _infodir %{_prefix}/info %define with_sysroot 1 %else %define with_sysroot 0 %endif %prep %setup -c -q %patch1 -p0 %patch2 -p0 %patch3 -p0 %patch4 -p0 %patch5 -p0 %patch6 -p0 %patch7 -p0 %patch8 -p0 %patch9 -p0 %patch10 -p0 %patch11 -p0 %patch12 -p0 %patch13 -p0 %patch14 -p0 %patch15 -p0 %patch16 -p0 %build %define spu_target_platform spu %define spu_prefix spu- rm -fr obj-%{spu_target_platform} mkdir obj-%{spu_target_platform} cd obj-%{spu_target_platform} export CFLAGS="$RPM_OPT_FLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ../gdb-%{version}/configure \ --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \ %if %{with_sysroot} --with-sysroot=%{_prefix}/sysroot \ %endif --disable-shared --disable-nls \ --program-prefix=%{spu_prefix} \ --target=%{spu_target_platform} make %{?_smp_mflags} %install rm -fr $RPM_BUILD_ROOT cd obj-%{spu_target_platform} make DESTDIR=$RPM_BUILD_ROOT install # Info and man7 files conflict with host toolchain files, # just remove them for now. rm -rf $RPM_BUILD_ROOT%{_infodir} rm -rf $RPM_BUILD_ROOT%{_mandir}/man7 # These come with the binutils package. rm -rf $RPM_BUILD_ROOT/%{_prefix}/lib/lib{bfd*,opcodes*,iberty*,mmalloc*} cd .. %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %dir %{_prefix} %dir %{_prefix}/bin %dir %{_mandir} %dir %{_mandir}/man1 %{_prefix}/bin/%{spu_prefix}gdb* %{_mandir}/man1/%{spu_prefix}gdb* %changelog * Fri Mar 09 2007 Ulrich Weigand 6.6-12 - Fix qXfer:spu:write regression (#32859). - Fix spu-gdbserver qXfer:spu:read regression. * Sat Mar 03 2007 Ulrich Weigand 6.6-11 - Fix breakpoint removal corrupting wrong overlay (TC #34). * Wed Feb 28 2007 Ulrich Weigand 6.6-10 - Switch inferior function calls to ON_STACK method. * Mon Feb 26 2007 Ulrich Weigand 6.6-9 - Fix handling of interrupt enable bit in NPC (#32247). * Mon Feb 26 2007 Ulrich Weigand 6.6-8 - Fix callfuncs.exp and dump.exp testcase problems. * Thu Feb 15 2007 Markus Deuling 6.6-7 - Fix handling for 'q' packets in gdbserver (#31980) * Tue Jan 30 2007 Alan Modra 6.6-6 - Provide iovec stat function. #26697 * Mon Jan 22 2007 Ben Elliston 6.6-5 - Change the cross-prefix to /opt/cell. * Thu Jan 18 2007 Ulrich Weigand 6.6-4 - Rename SOMA patch to avoid name collision (#31122). * Fri Jan 12 2007 Ulrich Weigand 6.6-3 - Add SOMA disassembler support. * Thu Jan 11 2007 Ulrich Weigand 6.6-2 - Re-add lost fix for #29298 (backtrace at entry function). * Tue Jan 9 2007 Ulrich Weigand 6.6-1 - Initial version of standalone spu-gdb package.