Accepting request 198490 from devel:gcc

- gdb-aarch64-hw-break.patch: fix setting hardware debug registers after
  fork

- Merge from fedoras gdb-7.6.50-20130731-cvs, of what will become 7.7
  eventually.  This includes 7.6, which gave:
    * new native configurations (e.g. ARM AArch64 GNU/Linux) 
    * new targets (e.g. ARM AArch64, Lynx 178 PowerPC, x86_64/Cygwin)
    * support for the "mini debuginfo" section, .gnu_debugdata 
    * the C++ ABI now defaults to the GNU v3 ABI 
    * more Python scripting improvements 
    * some GDB/MI improvements 
    * new configure options, new commands, and options 
    * new remote packets 
    * a new "target record-btrace" has been added while the
      "target record" command has been renamed to "target record-full"
- gdb-ia64-tdep.patch: build fixes
- gdb-ppc-ptrace.diff: Remove patch, not needed on new kernels

OBS-URL: https://build.opensuse.org/request/show/198490
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gdb?expand=0&rev=93
This commit is contained in:
Stephan Kulow
2013-09-11 13:42:29 +00:00
committed by Git OBS Bridge
parent 9cdd33a15c
commit 21901929ed
58 changed files with 2354 additions and 6039 deletions

257
gdb.spec
View File

@@ -16,10 +16,10 @@
Summary: A GNU source-level debugger for C, C++, Fortran and other languages
Name: gdb
%global snap 20130215
%global snap 20130731
# See timestamp of source gnulib installed into gdb/gnulib/ .
%global snapgnulib 20121213
Version: 7.5.50.20130215
Version: 7.6.50.20130731
# The release always contains a leading reserved number, start it at 1.
# `upstream' is not a part of `name' to stay fully rpm dependencies compatible for the testing.
@@ -30,7 +30,7 @@ Group: Development/Tools/Debuggers
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# Do not provide URL for snapshots as the file lasts there only for 2 days.
# ftp://sourceware.org/pub/gdb/releases/gdb-%{version}.tar.bz2
Source: gdb-%{version}.tar.bz2
Source: gdb-%{version}-cvs.tar.bz2
URL: http://gnu.org/software/gdb/
%if "%{scl}" == "devtoolset-1.1"
@@ -38,7 +38,7 @@ Obsoletes: devtoolset-1.0-%{pkg_name}
%endif
# For our convenience
%global gdb_src %{name}-%{version}
%global gdb_src %{name}-%{version}-cvs
%global gdb_build build-%{_target_platform}
%global gdb_docdir %{_docdir}/%{name}-doc
@@ -73,7 +73,7 @@ Source3: gdb-gstack.man
Source4: gdbinit
# libstdc++ pretty printers from GCC SVN HEAD (4.5 experimental).
%global libstdcxxpython libstdc++-v3-python-r155978
%global libstdcxxpython gdb-libstdc++-v3-python-r155978
Source5: %{libstdcxxpython}.tar.bz2
# Provide gdbtui for RHEL-5 and RHEL-6 as it is removed upstream (BZ 797664).
@@ -84,127 +84,113 @@ Source6: gdbtui
Patch1: gdb-6.3-rh-testversion-20041202.patch
Patch2: gdb-archer.patch
Patch3: gdb-6.3-rh-dummykfail-20041202.patch
Patch4: gdb-6.3-rh-testlibunwind-20041202.patch
Patch5: gdb-6.3-ppc64syscall-20040622.patch
Patch6: gdb-6.3-ppc64displaysymbol-20041124.patch
Patch7: gdb-6.6-scheduler_locking-step-sw-watchpoints2.patch
Patch8: gdb-6.3-gstack-20050411.patch
Patch9: gdb-6.3-test-pie-20050107.patch
Patch10: gdb-6.3-test-self-20050110.patch
Patch11: gdb-6.3-test-dtorfix-20050121.patch
Patch12: gdb-6.3-test-movedir-20050125.patch
Patch13: gdb-6.3-gcore-thread-20050204.patch
Patch14: gdb-6.3-threaded-watchpoints2-20050225.patch
Patch15: gdb-6.3-ia64-gcore-page0-20050421.patch
Patch16: gdb-6.3-ia64-sigtramp-frame-20050708.patch
Patch17: gdb-6.3-ia64-gcore-speedup-20050714.patch
Patch18: gdb-6.3-inferior-notification-20050721.patch
Patch19: gdb-6.3-ia64-info-frame-fix-20050725.patch
Patch20: gdb-6.3-inheritancetest-20050726.patch
Patch21: gdb-6.3-readnever-20050907.patch
Patch22: gdb-6.3-ia64-sigill-20051115.patch
Patch23: gdb-6.5-bz203661-emit-relocs.patch
Patch24: gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
Patch25: gdb-6.5-sharedlibrary-path.patch
Patch26: gdb-6.5-bz190810-gdbserver-arch-advice.patch
Patch27: gdb-6.5-BEA-testsuite.patch
Patch28: gdb-6.5-last-address-space-byte-test.patch
Patch29: gdb-6.5-readline-long-line-crash-test.patch
Patch30: gdb-6.5-bz216711-clone-is-outermost.patch
Patch31: gdb-6.5-bz218379-ppc-solib-trampoline-test.patch
Patch32: gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch
Patch33: gdb-6.5-bz109921-DW_AT_decl_file-test.patch
Patch34: gdb-6.3-bz140532-ppc-unwinding-test.patch
Patch35: gdb-6.3-bz202689-exec-from-pthread-test.patch
Patch36: gdb-6.6-bz230000-power6-disassembly-test.patch
Patch37: gdb-6.3-bz231832-obstack-2gb.patch
Patch38: gdb-6.6-bz229517-gcore-without-terminal.patch
Patch39: gdb-6.6-bz235197-fork-detach-info.patch
Patch40: gdb-6.6-testsuite-timeouts.patch
Patch41: gdb-6.6-bz237572-ppc-atomic-sequence-test.patch
Patch42: gdb-6.6-scheduler_locking-step-is-default.patch
Patch43: gdb-6.3-attach-see-vdso-test.patch
Patch44: gdb-6.5-bz243845-stale-testing-zombie-test.patch
Patch45: gdb-6.6-buildid-locate.patch
Patch46: gdb-6.6-buildid-locate-solib-missing-ids.patch
Patch47: gdb-6.6-buildid-locate-rpm.patch
Patch48: gdb-6.6-bfd-vdso8k.patch
Patch49: gdb-6.7-charsign-test.patch
Patch50: gdb-6.7-ppc-clobbered-registers-O2-test.patch
Patch51: gdb-6.7-testsuite-stable-results.patch
Patch52: gdb-6.5-ia64-libunwind-leak-test.patch
Patch53: gdb-6.5-missed-trap-on-step-test.patch
Patch54: gdb-6.7-bz426600-DW_TAG_interface_type-test.patch
Patch55: gdb-6.5-gcore-buffer-limit-test.patch
Patch56: gdb-6.6-threads-static-test.patch
Patch57: gdb-6.3-mapping-zero-inode-test.patch
Patch58: gdb-6.3-focus-cmd-prev-test.patch
Patch59: gdb-6.8-bz442765-threaded-exec-test.patch
Patch60: gdb-6.8-sparc64-silence-memcpy-check.patch
Patch61: gdb-6.5-section-num-fixup-test.patch
Patch62: gdb-6.8-bz436037-reg-no-longer-active.patch
Patch63: gdb-6.8-watchpoint-conditionals-test.patch
Patch64: gdb-6.8-bz466901-backtrace-full-prelinked.patch
Patch65: gdb-6.8-bz457187-largefile-test.patch
Patch66: gdb-simultaneous-step-resume-breakpoint-test.patch
Patch67: gdb-core-open-vdso-warning.patch
Patch68: gdb-x86_64-i386-syscall-restart.patch
Patch69: gdb-bz533176-fortran-omp-step.patch
Patch70: gdb-follow-child-stale-parent.patch
Patch71: gdb-ccache-workaround.patch
Patch72: gdb-archer-pie-addons.patch
Patch73: gdb-archer-pie-addons-keep-disabled.patch
Patch74: gdb-lineno-makeup-test.patch
Patch75: gdb-ppc-power7-test.patch
Patch76: gdb-bz541866-rwatch-before-run.patch
Patch77: gdb-moribund-utrace-workaround.patch
Patch78: gdb-archer-next-over-throw-cxx-exec.patch
Patch79: gdb-bz601887-dwarf4-rh-test.patch
Patch80: gdb-6.6-buildid-locate-core-as-arg.patch
Patch81: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
Patch82: gdb-test-bt-cfi-without-die.patch
Patch83: gdb-gdb-add-index-script.patch
Patch84: gdb-bz568248-oom-is-error.patch
Patch85: gdb-bz634108-solib_address.patch
Patch86: gdb-test-pid0-core.patch
Patch87: gdb-test-dw2-aranges.patch
Patch88: gdb-test-expr-cumulative-archer.patch
Patch89: gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch
Patch90: gdb-dlopen-stap-probe-3of7.patch
Patch91: gdb-dlopen-stap-probe-4of7.patch
Patch92: gdb-dlopen-stap-probe-5of7.patch
Patch93: gdb-dlopen-stap-probe-6of7.patch
Patch94: gdb-dlopen-stap-probe-7of7.patch
Patch95: gdb-dlopen-stap-probe-test2.patch
Patch96: gdb-dlopen-stap-probe-mapfailed.patch
Patch97: gdb-dlopen-stap-probe-test.patch
Patch98: gdb-glibc-vdso-workaround.patch
Patch99: gdb-runtest-pie-override.patch
Patch100: gdb-python-rdynamic.patch
Patch101: gdb-attach-fail-reasons-5of5.patch
Patch102: gdb-attach-fail-reasons-5of5configure.patch
Patch103: gdb-stale-frame_info.patch
Patch104: gdb-glibc-strstr-workaround.patch
Patch105: gdb-rhel5.9-testcase-xlf-var-inside-mod.patch
Patch106: gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch
Patch107: gdb-rhbz795424-bitpos-20of25.patch
Patch108: gdb-rhbz795424-bitpos-21of25.patch
Patch109: gdb-rhbz795424-bitpos-22of25.patch
Patch110: gdb-rhbz795424-bitpos-23of25.patch
Patch111: gdb-rhbz795424-bitpos-25of25.patch
Patch112: gdb-rhbz795424-bitpos-25of25-test.patch
Patch113: gdb-rhbz795424-bitpos-lazyvalue.patch
Patch114: gdb-rhel5-gcc44.patch
Patch115: gdb-readline62-ask-more-rh.patch
Patch116: gdb-6.8-attach-signalled-detach-stopped.patch
Patch117: gdb-6.8-quit-never-aborts.patch
Patch118: gdb-rhel5-compat.patch
Patch4: gdb-6.3-ppc64syscall-20040622.patch
Patch5: gdb-6.3-ppc64displaysymbol-20041124.patch
Patch6: gdb-6.6-scheduler_locking-step-sw-watchpoints2.patch
Patch7: gdb-6.3-gstack-20050411.patch
Patch8: gdb-6.3-test-pie-20050107.patch
Patch9: gdb-6.3-test-self-20050110.patch
Patch10: gdb-6.3-test-dtorfix-20050121.patch
Patch11: gdb-6.3-test-movedir-20050125.patch
Patch12: gdb-6.3-threaded-watchpoints2-20050225.patch
Patch13: gdb-6.3-inferior-notification-20050721.patch
Patch14: gdb-6.3-inheritancetest-20050726.patch
Patch15: gdb-6.3-readnever-20050907.patch
Patch16: gdb-6.5-bz203661-emit-relocs.patch
Patch17: gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch
Patch18: gdb-6.5-sharedlibrary-path.patch
Patch19: gdb-6.5-bz190810-gdbserver-arch-advice.patch
Patch20: gdb-6.5-BEA-testsuite.patch
Patch21: gdb-6.5-last-address-space-byte-test.patch
Patch22: gdb-6.5-readline-long-line-crash-test.patch
Patch23: gdb-6.5-bz216711-clone-is-outermost.patch
Patch24: gdb-6.5-bz218379-ppc-solib-trampoline-test.patch
Patch25: gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch
Patch26: gdb-6.5-bz109921-DW_AT_decl_file-test.patch
Patch27: gdb-6.3-bz140532-ppc-unwinding-test.patch
Patch28: gdb-6.3-bz202689-exec-from-pthread-test.patch
Patch29: gdb-6.6-bz230000-power6-disassembly-test.patch
Patch30: gdb-6.3-bz231832-obstack-2gb.patch
Patch31: gdb-6.6-bz229517-gcore-without-terminal.patch
Patch32: gdb-6.6-bz235197-fork-detach-info.patch
Patch33: gdb-6.6-testsuite-timeouts.patch
Patch34: gdb-6.6-bz237572-ppc-atomic-sequence-test.patch
Patch35: gdb-6.6-scheduler_locking-step-is-default.patch
Patch36: gdb-6.3-attach-see-vdso-test.patch
Patch37: gdb-6.5-bz243845-stale-testing-zombie-test.patch
Patch38: gdb-6.6-buildid-locate.patch
Patch39: gdb-6.6-buildid-locate-solib-missing-ids.patch
Patch40: gdb-6.6-buildid-locate-rpm.patch
Patch41: gdb-6.6-bfd-vdso8k.patch
Patch42: gdb-6.7-charsign-test.patch
Patch43: gdb-6.7-ppc-clobbered-registers-O2-test.patch
Patch44: gdb-6.7-testsuite-stable-results.patch
Patch45: gdb-6.5-ia64-libunwind-leak-test.patch
Patch46: gdb-6.5-missed-trap-on-step-test.patch
Patch47: gdb-6.7-bz426600-DW_TAG_interface_type-test.patch
Patch48: gdb-6.5-gcore-buffer-limit-test.patch
Patch49: gdb-6.6-threads-static-test.patch
Patch50: gdb-6.3-mapping-zero-inode-test.patch
Patch51: gdb-6.3-focus-cmd-prev-test.patch
Patch52: gdb-6.8-bz442765-threaded-exec-test.patch
Patch53: gdb-6.8-sparc64-silence-memcpy-check.patch
Patch54: gdb-6.5-section-num-fixup-test.patch
Patch55: gdb-6.8-bz436037-reg-no-longer-active.patch
Patch56: gdb-6.8-watchpoint-conditionals-test.patch
Patch57: gdb-6.8-bz466901-backtrace-full-prelinked.patch
Patch58: gdb-6.8-bz457187-largefile-test.patch
Patch59: gdb-simultaneous-step-resume-breakpoint-test.patch
Patch60: gdb-core-open-vdso-warning.patch
Patch61: gdb-x86_64-i386-syscall-restart.patch
Patch62: gdb-bz533176-fortran-omp-step.patch
Patch63: gdb-follow-child-stale-parent.patch
Patch64: gdb-ccache-workaround.patch
Patch65: gdb-archer-pie-addons.patch
Patch66: gdb-archer-pie-addons-keep-disabled.patch
Patch67: gdb-lineno-makeup-test.patch
Patch68: gdb-ppc-power7-test.patch
Patch69: gdb-bz541866-rwatch-before-run.patch
Patch70: gdb-moribund-utrace-workaround.patch
Patch71: gdb-archer-next-over-throw-cxx-exec.patch
Patch72: gdb-bz601887-dwarf4-rh-test.patch
Patch73: gdb-6.6-buildid-locate-core-as-arg.patch
Patch74: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch
Patch75: gdb-test-bt-cfi-without-die.patch
Patch76: gdb-gdb-add-index-script.patch
Patch77: gdb-bz568248-oom-is-error.patch
Patch78: gdb-bz634108-solib_address.patch
Patch79: gdb-test-pid0-core.patch
Patch80: gdb-test-dw2-aranges.patch
Patch81: gdb-test-expr-cumulative-archer.patch
Patch82: gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch
Patch83: gdb-glibc-vdso-workaround.patch
Patch84: gdb-runtest-pie-override.patch
Patch85: gdb-attach-fail-reasons-5of5.patch
Patch86: gdb-stale-frame_info.patch
Patch87: gdb-glibc-strstr-workaround.patch
Patch88: gdb-rhel5.9-testcase-xlf-var-inside-mod.patch
Patch89: gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch
Patch90: gdb-rhbz795424-bitpos-20of25.patch
Patch91: gdb-rhbz795424-bitpos-21of25.patch
Patch92: gdb-rhbz795424-bitpos-22of25.patch
Patch93: gdb-rhbz795424-bitpos-23of25.patch
Patch94: gdb-rhbz795424-bitpos-25of25.patch
Patch95: gdb-rhbz795424-bitpos-25of25-test.patch
Patch96: gdb-rhbz795424-bitpos-lazyvalue.patch
Patch97: gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch
Patch98: gdb-enable-count-crash.patch
Patch99: gdb-rhel5-gcc44.patch
Patch100: gdb-6.6-buildid-locate-rpm-scl.patch
Patch101: gdb-readline62-ask-more-rh.patch
Patch102: gdb-6.8-attach-signalled-detach-stopped.patch
Patch103: gdb-6.8-quit-never-aborts.patch
Patch104: gdb-rhel5-compat.patch
#Fedora Packages end
# Upstream patch to fix gcc -Werror
Patch1002: gdb-6.6-buildid-locate-rpm-suse.patch
Patch1003: gdb-ppc-ptrace.diff
Patch1004: gdb-ia64-tdep.patch
Patch1005: gdb-aarch64-hw-break.patch
BuildRequires: ncurses-devel texinfo gettext flex bison glibc-devel zlib-devel
%if %{suse_version} < 1020
@@ -423,32 +409,20 @@ find -name "*.info*"|xargs rm -f
%patch97 -p1
%patch98 -p1
%patch99 -p1
%patch100 -p1
%patch101 -p1
#%%patch100 -p1
#%%patch100 -p1 -R
#%%patch101 -p1
#%%patch101 -p1 -R
%patch102 -p1
%patch103 -p1
%patch104 -p1
%patch105 -p1
%patch106 -p1
%patch107 -p1
%patch108 -p1
%patch109 -p1
%patch110 -p1
%patch111 -p1
%patch112 -p1
%patch113 -p1
%patch114 -p1
#%%patch115 -p1
%patch116 -p1
%patch117 -p1
%patch118 -p1
#Fedora patching end
%patch1002 -p1
%patch1003 -p1
%patch1004 -p1
%patch1005 -p0
find -name "*.orig" | xargs rm -f
! find -name "*.rej" # Should not happen.
@@ -722,10 +696,6 @@ cd %{gdb_build}
make %{?_smp_mflags} install DESTDIR=$RPM_BUILD_ROOT
# install the gcore script in /usr/bin
cp $RPM_BUILD_DIR/%{gdb_src}/gdb/gdb_gcore.sh $RPM_BUILD_ROOT%{_bindir}/gcore
chmod 755 $RPM_BUILD_ROOT%{_bindir}/gcore
# Provide gdbtui for RHEL-5 and RHEL-6 as it is removed upstream (BZ 797664).
%if 0%{?rhel:1} && 0%{?rhel} <= 6
test ! -e $RPM_BUILD_ROOT%{_prefix}/bin/gdbtui
@@ -860,6 +830,7 @@ fi
%defattr(-,root,root)
%doc COPYING3 COPYING COPYING.LIB README NEWS
%{_bindir}/gcore
%{_mandir}/*/gcore.1*
%{_bindir}/gdb
%config(noreplace) %{_sysconfdir}/gdbinit
%{_sysconfdir}/gdbinit.d
@@ -872,6 +843,8 @@ fi
%{_mandir}/*/gdbtui.1*
%endif # 0%{?rhel:1} && 0%{?rhel} <= 6
%{_bindir}/gdb-add-index
%{_mandir}/*/gdb-add-index.1*
%{_mandir}/*/gdbinit.5*
%{_datadir}/gdb
%{_infodir}/annotate.info*
%{_infodir}/gdb.info*