# WARNING: This package is synced with FC # Extract Mageia Linux name and version %define distro_version %(perl -ne '/^([.\\w\\s]+) \\(.+\\).+/ and print $1' < /etc/release) # rpmbuild parameters: # --with testsuite: Run the testsuite (biarch if possible). Default is without. # --with buildisa: Use %%{?_isa} for BuildRequires # --with asan: gcc -fsanitize=address # --without python: No python support. # --with profile: gcc -fprofile-generate / -fprofile-use: Before better # workload gets run it decreases the general performance now. # --define 'scl somepkgname': Independent packages by scl-utils-build. %{?scl:%scl_package gdb} %{!?scl: %global pkg_name %{name} %global _root_prefix %{_prefix} %global _root_datadir %{_datadir} %global _root_libdir %{_libdir} } Summary: A GNU source-level debugger for C, C++, Fortran, Go and other languages Name: %{?scl_prefix}gdb # Freeze it when GDB gets branched %global snapsrc 20160801 # See timestamp of source gnulib installed into gdb/gnulib/ . %global snapgnulib 20150822 %global tarname gdb-%{version} Version: 7.12 %global gdb_version %{version} # 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. %define subrel 1 Release: %mkrel 16 License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain and GFDL Group: Development/Tools # Do not provide URL for snapshots as the file lasts there only for 2 days. # ftp://sourceware.org/pub/gdb/releases/FIXME{tarname}.tar.xz Source: ftp://sourceware.org/pub/gdb/releases/%{tarname}.tar.xz URL: http://gnu.org/software/gdb/ # For our convenience %global gdb_src %{tarname} %global gdb_build build-%{_target_platform} %global have_inproctrace 0 %ifarch %{ix86} x86_64 %global have_inproctrace 1 %endif # %{ix86} x86_64 # eu-strip: -g recognizes .gdb_index as a debugging section. (#631997) Conflicts: elfutils < 0.149 # https://fedoraproject.org/wiki/Packaging:Guidelines#BuildRequires_and_.25.7B_isa.7D %global buildisa %{?_with_buildisa:%{?_isa}} Recommends: gcc-plugins%{?_isa} # Require an implementation of /usr/bin/debuginfo-install Requires: pkg-command(debuginfo-install) %global librpmver 7 %if 0%{?__isa_bits} == 64 %global librpmname librpm.so.%{librpmver}()(64bit) %else %global librpmname librpm.so.%{librpmver} %endif BuildRequires: rpm-libs%{buildisa} %if 0%{?_with_buildisa:1} BuildRequires: %{librpmname} %endif Recommends: %{librpmname} # GDB patches have the format `gdb-<version>-bz<red-hat-bz-#>-<desc>.patch'. # They should be created using patch level 1: diff -up ./gdb (or gdb-6.3/gdb). #= #push=Should be pushed upstream. #maybepush=Should be pushed upstream unless it got obsoleted there. #fedora=Should stay as a Fedora patch. #fedoratest=Keep it in Fedora only as a regression test safety. #+ppc=Specific for ppc32/ppc64/ppc* #+work=Requires some nontrivial work. # Cleanup any leftover testsuite processes as it may stuck mock(1) builds. #=push Source2: gdb-orphanripper.c # Man page for gstack(1). #=push Source3: gdb-gstack.man # /etc/gdbinit (from Debian but with Fedora compliant location). #=fedora Source4: gdbinit # Work around out-of-date dejagnu that does not have KFAIL #=drop: That dejagnu is too old to be supported. Patch1: gdb-6.3-rh-dummykfail-20041202.patch # Match the Fedora's version info. #=fedora Patch2: gdb-6.3-rh-testversion-20041202.patch # Better parse 64-bit PPC system call prologues. #=maybepush+ppc: Write new testcase. Patch105: gdb-6.3-ppc64syscall-20040622.patch # Include the pc's section when doing a symbol lookup so that the # correct symbol is found. #=maybepush: Write new testcase. Patch111: gdb-6.3-ppc64displaysymbol-20041124.patch # Make upstream `set scheduler-locking step' as default. #=push+work: How much is scheduler-locking relevant after non-stop? Patch260: gdb-6.6-scheduler_locking-step-is-default.patch # Add a wrapper script to GDB that implements pstack using the # --readnever option. #=push+work: with gdbindex maybe --readnever should no longer be used. Patch118: gdb-6.3-gstack-20050411.patch # VSYSCALL and PIE #=fedoratest Patch122: gdb-6.3-test-pie-20050107.patch #=push: May get obsoleted by Tom's unrelocated objfiles patch. Patch389: gdb-archer-pie-addons.patch #=push+work: Breakpoints disabling matching should not be based on address. Patch394: gdb-archer-pie-addons-keep-disabled.patch # Get selftest working with sep-debug-info #=fedoratest Patch125: gdb-6.3-test-self-20050110.patch # Test support of multiple destructors just like multiple constructors #=fedoratest Patch133: gdb-6.3-test-dtorfix-20050121.patch # Fix to support executable moving #=fedoratest Patch136: gdb-6.3-test-movedir-20050125.patch # Test sibling threads to set threaded watchpoints for x86 and x86-64 #=fedoratest Patch145: gdb-6.3-threaded-watchpoints2-20050225.patch # Notify observers that the inferior has been created #=fedoratest Patch161: gdb-6.3-inferior-notification-20050721.patch # Verify printing of inherited members test #=fedoratest Patch163: gdb-6.3-inheritancetest-20050726.patch # Add readnever option #=push Patch164: gdb-6.3-readnever-20050907.patch # Fix debuginfo addresses resolving for --emit-relocs Linux kernels (BZ 203661). #=push+work: There was some mail thread about it, this patch may be a hack. Patch188: gdb-6.5-bz203661-emit-relocs.patch # Support TLS symbols (+`errno' suggestion if no pthread is found) (BZ 185337). #=push+work: It should be replaced by existing uncommitted Roland's glibc patch for TLS without libpthreads. Patch194: gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch # Fix TLS symbols resolving for shared libraries with a relative pathname. # The testsuite needs `gdb-6.5-tls-of-separate-debuginfo.patch'. #=fedoratest+work: One should recheck if it is really fixed upstream. Patch196: gdb-6.5-sharedlibrary-path.patch # Testcase for deadlocking on last address space byte; for corrupted backtraces. #=fedoratest Patch211: gdb-6.5-last-address-space-byte-test.patch # Improved testsuite results by the testsuite provided by the courtesy of BEA. #=fedoratest+work: For upstream it should be rewritten as a dejagnu test, the test of no "??" was useful. Patch208: gdb-6.5-BEA-testsuite.patch # Fix readline segfault on excessively long hand-typed lines. #=fedoratest Patch213: gdb-6.5-readline-long-line-crash-test.patch # Fix bogus 0x0 unwind of the thread's topmost function clone(3) (BZ 216711). #=fedora Patch214: gdb-6.5-bz216711-clone-is-outermost.patch # Test sideeffects of skipping ppc .so libs trampolines (BZ 218379). #=fedoratest Patch216: gdb-6.5-bz218379-ppc-solib-trampoline-test.patch # Fix lockup on trampoline vs. its function lookup; unreproducible (BZ 218379). #=fedora Patch217: gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch # Find symbols properly at their original (included) file (BZ 109921). #=fedoratest Patch225: gdb-6.5-bz109921-DW_AT_decl_file-test.patch # Update PPC unwinding patches to their upstream variants (BZ 140532). #=fedoratest+ppc Patch229: gdb-6.3-bz140532-ppc-unwinding-test.patch # Testcase for exec() from threaded program (BZ 202689). #=fedoratest Patch231: gdb-6.3-bz202689-exec-from-pthread-test.patch # Backported fixups post the source tarball. #Xdrop: Just backports. Patch232: gdb-upstream.patch # Testcase for PPC Power6/DFP instructions disassembly (BZ 230000). #=fedoratest+ppc Patch234: gdb-6.6-bz230000-power6-disassembly-test.patch # Allow running `/usr/bin/gcore' with provided but inaccessible tty (BZ 229517). #=fedoratest Patch245: gdb-6.6-bz229517-gcore-without-terminal.patch # Notify user of a child forked process being detached (BZ 235197). #=push: This is more about discussion if/what should be printed. Patch247: gdb-6.6-bz235197-fork-detach-info.patch # Avoid too long timeouts on failing cases of "annota1.exp annota3.exp". #=fedoratest Patch254: gdb-6.6-testsuite-timeouts.patch # Support for stepping over PPC atomic instruction sequences (BZ 237572). #=fedoratest Patch258: gdb-6.6-bz237572-ppc-atomic-sequence-test.patch # Test kernel VDSO decoding while attaching to an i386 process. #=fedoratest Patch263: gdb-6.3-attach-see-vdso-test.patch # Test leftover zombie process (BZ 243845). #=fedoratest Patch271: gdb-6.5-bz243845-stale-testing-zombie-test.patch # New locating of the matching binaries from the pure core file (build-id). #=push Patch274: gdb-6.6-buildid-locate.patch # Fix loading of core files without build-ids but with build-ids in executables. # Load strictly build-id-checked core files only if no executable is specified # (Jan Kratochvil, RH BZ 1339862). #=push Patch659: gdb-6.6-buildid-locate-solib-missing-ids.patch #=push Patch353: gdb-6.6-buildid-locate-rpm.patch #=push Patch415: gdb-6.6-buildid-locate-core-as-arg.patch # Workaround librpm BZ 643031 due to its unexpected exit() calls (BZ 642879). #=push Patch519: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch # [SCL] Skip deprecated .gdb_index warning for Red Hat built files (BZ 953585). Patch833: gdb-6.6-buildid-locate-rpm-scl.patch # Fix 'gdb gives highly misleading error when debuginfo pkg is present, # but not corresponding binary pkg' (RH BZ 981154). Patch863: gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch # Fix displaying of numeric char arrays as strings (BZ 224128). #=fedoratest: But it is failing anyway, one should check the behavior more. Patch282: gdb-6.7-charsign-test.patch # Test PPC hiding of call-volatile parameter register. #=fedoratest+ppc Patch284: gdb-6.7-ppc-clobbered-registers-O2-test.patch # Testsuite fixes for more stable/comparable results. #=fedoratest Patch287: gdb-6.7-testsuite-stable-results.patch # Test ia64 memory leaks of the code using libunwind. #=fedoratest Patch289: gdb-6.5-ia64-libunwind-leak-test.patch # Test hiding unexpected breakpoints on intentional step commands. #=fedoratest Patch290: gdb-6.5-missed-trap-on-step-test.patch # Support DW_TAG_interface_type the same way as DW_TAG_class_type (BZ 426600). #=fedoratest Patch294: gdb-6.7-bz426600-DW_TAG_interface_type-test.patch # Test gcore memory and time requirements for large inferiors. #=fedoratest Patch296: gdb-6.5-gcore-buffer-limit-test.patch # Test debugging statically linked threaded inferiors (BZ 239652). # - It requires recent glibc to work in this case properly. #=fedoratest Patch298: gdb-6.6-threads-static-test.patch # Test GCORE for shmid 0 shared memory mappings. #=fedoratest: But it is broken anyway, sometimes the case being tested is not reproducible. Patch309: gdb-6.3-mapping-zero-inode-test.patch # Test a crash on `focus cmd', `focus prev' commands. #=fedoratest Patch311: gdb-6.3-focus-cmd-prev-test.patch # Test various forms of threads tracking across exec() (BZ 442765). #=fedoratest Patch315: gdb-6.8-bz442765-threaded-exec-test.patch # Silence memcpy check which returns false positive (sparc64) #=push: But it is just a GCC workaround, look up the existing GCC PR for it. Patch317: gdb-6.8-sparc64-silence-memcpy-check.patch # Test a crash on libraries missing the .text section. #=fedoratest Patch320: gdb-6.5-section-num-fixup-test.patch # Fix register assignments with no GDB stack frames (BZ 436037). #=push+work: This fix is incorrect. Patch330: gdb-6.8-bz436037-reg-no-longer-active.patch # Make the GDB quit processing non-abortable to cleanup everything properly. #=fedora: It was useful only after gdb-6.8-attach-signalled-detach-stopped.patch . Patch331: gdb-6.8-quit-never-aborts.patch # [RHEL5,RHEL6] Fix attaching to stopped processes. # [RHEL5] Workaround kernel for detaching SIGSTOPped processes (BZ 809382). #=fedora Patch337: gdb-6.8-attach-signalled-detach-stopped.patch # Test the watchpoints conditionals works. #=fedoratest Patch343: gdb-6.8-watchpoint-conditionals-test.patch # Fix resolving of variables at locations lists in prelinked libs (BZ 466901). #=fedoratest Patch348: gdb-6.8-bz466901-backtrace-full-prelinked.patch # The merged branch `archer-jankratochvil-fedora15' of: # http://sourceware.org/gdb/wiki/ProjectArcher #=push+work Patch349: gdb-archer.patch # New test for step-resume breakpoint placed in multiple threads at once. #=fedoratest Patch381: gdb-simultaneous-step-resume-breakpoint-test.patch # Fix GNU/Linux core open: Can't read pathname for load map: Input/output error. # Fix regression of undisplayed missing shared libraries caused by a fix for. #=push+work: It should be in glibc: libc-alpha: <20091004161706.GA27450@.*> Patch382: gdb-core-open-vdso-warning.patch # Fix syscall restarts for amd64->i386 biarch. #=push Patch391: gdb-x86_64-i386-syscall-restart.patch # Fix stepping with OMP parallel Fortran sections (BZ 533176). #=push+work: It requires some better DWARF annotations. Patch392: gdb-bz533176-fortran-omp-step.patch # Fix regression by python on ia64 due to stale current frame. #=push Patch397: gdb-follow-child-stale-parent.patch # Workaround ccache making lineno non-zero for command-line definitions. #=fedoratest: ccache is rarely used and it is even fixed now. Patch403: gdb-ccache-workaround.patch # Testcase for "Do not make up line information" fix by Daniel Jacobowitz. #=fedoratest Patch407: gdb-lineno-makeup-test.patch # Test power7 ppc disassembly. #=fedoratest+ppc Patch408: gdb-ppc-power7-test.patch # Fix i386+x86_64 rwatch+awatch before run, regression against 6.8 (BZ 541866). # Fix i386 rwatch+awatch before run (BZ 688788, on top of BZ 541866). #=push+work: It should be fixed properly instead. Patch417: gdb-bz541866-rwatch-before-run.patch # Workaround non-stop moribund locations exploited by kernel utrace (BZ 590623). #=push+work: Currently it is still not fully safe. Patch459: gdb-moribund-utrace-workaround.patch # Fix follow-exec for C++ programs (bugreported by Martin Stransky). #=fedoratest Patch470: gdb-archer-next-over-throw-cxx-exec.patch # Backport DWARF-4 support (BZ 601887, Tom Tromey). #=fedoratest Patch475: gdb-bz601887-dwarf4-rh-test.patch # [delayed-symfile] Test a backtrace regression on CFIs without DIE (BZ 614604). #=fedoratest Patch490: gdb-test-bt-cfi-without-die.patch # Provide /usr/bin/gdb-add-index for rpm-build (Tom Tromey). #=fedora: Re-check against the upstream version. Patch491: gdb-gdb-add-index-script.patch # Out of memory is just an error, not fatal (uninitialized VLS vars, BZ 568248). #=drop+work: Inferior objects should be read in parts, then this patch gets obsoleted. Patch496: gdb-bz568248-oom-is-error.patch # Verify GDB Python built-in function gdb.solib_address exists (BZ # 634108). #=fedoratest Patch526: gdb-bz634108-solib_address.patch # New test gdb.arch/x86_64-pid0-core.exp for kernel PID 0 cores (BZ 611435). #=fedoratest Patch542: gdb-test-pid0-core.patch # [archer-tromey-delayed-symfile] New test gdb.dwarf2/dw2-aranges.exp. #=fedoratest Patch547: gdb-test-dw2-aranges.patch # [archer-keiths-expr-cumulative+upstream] Import C++ testcases. #=fedoratest Patch548: gdb-test-expr-cumulative-archer.patch # Fix regressions on C++ names resolving (PR 11734, PR 12273, Keith Seitz). Patch565: gdb-physname-pr11734-test.patch Patch567: gdb-physname-pr12273-test.patch # Toolchain on sparc is slightly broken and debuginfo files are generated # with non 64bit aligned tables/offsets. # See for example readelf -S ../Xvnc.debug. # # As a consenquence calculation of sectp->filepos as used in # dwarf2_read_section (gdb/dwarf2read.c:1525) will return a non aligned buffer # that cannot be used directly as done with MMAP. # Usage will result in a BusError. # # While we figure out what's wrong in the toolchain and do a full archive # rebuild to fix it, we need to be able to use gdb :) #=push+work Patch579: gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch # Test GDB opcodes/ disassembly of Intel Ivy Bridge instructions (BZ 696890). Patch616: gdb-test-ivy-bridge.patch # Work around PR libc/13097 "linux-vdso.so.1" warning message. #=push Patch627: gdb-glibc-vdso-workaround.patch # Hack for proper PIE run of the testsuite. #=fedoratest Patch634: gdb-runtest-pie-override.patch # Work around readline-6.2 incompatibility not asking for --more-- (BZ 701131). #=fedora Patch642: gdb-readline62-ask-more-rh.patch # Print reasons for failed attach/spawn incl. SELinux deny_ptrace (BZ 786878). #=push Patch653: gdb-attach-fail-reasons-5of5.patch # Workaround crashes from stale frame_info pointer (BZ 804256). #=fedora Patch661: gdb-stale-frame_info.patch # Workaround PR libc/14166 for inferior calls of strstr. #=fedora: Compatibility with RHELs (unchecked which ones). Patch690: gdb-glibc-strstr-workaround.patch # Include testcase for `Unable to see a variable inside a module (XLF)' (BZ 823789). #=fedoratest #+ppc Patch698: gdb-rhel5.9-testcase-xlf-var-inside-mod.patch # Testcase for `Setting solib-absolute-prefix breaks vDSO' (BZ 818343). #=fedoratest Patch703: gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch # Fix `GDB cannot access struct member whose offset is larger than 256MB' # (RH BZ 795424). #=push+work Patch811: gdb-rhbz795424-bitpos-20of25.patch Patch812: gdb-rhbz795424-bitpos-21of25.patch Patch813: gdb-rhbz795424-bitpos-22of25.patch Patch814: gdb-rhbz795424-bitpos-23of25.patch Patch816: gdb-rhbz795424-bitpos-25of25.patch Patch817: gdb-rhbz795424-bitpos-25of25-test.patch Patch818: gdb-rhbz795424-bitpos-lazyvalue.patch # Import regression test for `gdb/findvar.c:417: internal-error: # read_var_value: Assertion `frame' failed.' (RH BZ 947564) from RHEL 6.5. #=fedoratest Patch832: gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch # [rhel6] DTS backward Python compatibility API (BZ 1020004, Phil Muldoon). Patch848: gdb-dts-rhel6-python-compat.patch # Fix crash of -readnow /usr/lib/debug/usr/bin/gnatbind.debug (BZ 1069211). Patch852: gdb-gnat-dwarf-crash-3of3.patch # Fix 'memory leak in infpy_read_memory()' (RH BZ 1007614) Patch861: gdb-rhbz1007614-memleak-infpy_read_memory-test.patch # VLA (Fortran dynamic arrays) from Intel + archer-jankratochvil-vla tests. Patch1058: gdb-vla-intel-fortran-strides.patch Patch1132: gdb-vla-intel-fortran-vla-strings.patch Patch889: gdb-vla-intel-stringbt-fix.patch Patch887: gdb-archer-vla-tests.patch Patch888: gdb-vla-intel-tests.patch # Continue backtrace even if a frame filter throws an exception (Phil Muldoon). Patch918: gdb-btrobust.patch # Display Fortran strings in backtraces. Patch925: gdb-fortran-frame-string.patch # Fix Python GIL with gdb.execute("continue") (Phil Muldoon, BZ 1116957). Patch927: gdb-python-gil.patch # Testcase for '[SAP] Recursive dlopen causes SAP HANA installer to # crash.' (RH BZ 1156192). Patch977: gdb-rhbz1156192-recursive-dlopen-test.patch # Fix jit-reader.h for multi-lib. Patch978: gdb-jit-reader-multilib.patch # Fix '`catch syscall' doesn't work for parent after `fork' is called' # (Philippe Waroquiers, RH BZ 1149205). Patch984: gdb-rhbz1149205-catch-syscall-after-fork-test.patch # Fix 'backport GDB 7.4 fix to RHEL 6.6 GDB' [Original Sourceware bug # description: 'C++ (and objc): Internal error on unqualified name # re-set', PR 11657] (RH BZ 1186476). Patch991: gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch # Test 'info type-printers' Python error (RH BZ 1350436). Patch992: gdb-rhbz1350436-type-printers-error.patch # Fix '[ppc64] and [s390x] wrong prologue skip on -O2 -g code' (Jan # Kratochvil, RH BZ 1084404). Patch1026: gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch # Never kill PID on: gdb exec PID (Jan Kratochvil, RH BZ 1219747). Patch1053: gdb-bz1219747-attach-kills.patch # Fix the pahole command breakage due to its Python3 port (RH BZ 1264532). Patch1044: gdb-pahole-python2.patch # Force libncursesw over libncurses to match the includes (RH BZ 1270534). Patch1056: gdb-fedora-libncursesw.patch # Test clflushopt instruction decode (for RH BZ 1262471). Patch1073: gdb-opcodes-clflushopt-test.patch # [testsuite] Fix false selftest.exp FAIL from system readline-6.3+ (Patrick Palka). Patch1075: gdb-testsuite-readline63-sigint.patch Patch1119: gdb-testsuite-readline63-sigint-revert.patch # [aarch64] Fix hardware watchpoints (RH BZ 1261564). #=fedoratest Patch1113: gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch # Add messages suggesting more recent RHEL gdbserver (RH BZ 1321114). Patch1118: gdb-container-rh-pkg.patch # New test for Python "Cannot locate object file for block" (for RH BZ 1325795). Patch1123: gdb-rhbz1325795-framefilters-test.patch # [dts+el7] [x86*] Bundle linux_perf.h for libipt (RH BZ 1256513). Patch1143: gdb-linux_perf-bundle.patch # [rhel6+7] Fix compatibility of bison <3.1 and gcc >=6. Patch1144: gdb-bison-old.patch # [testsuite] More testsuite fixes. Patch1145: gdb-testsuite-casts.patch Patch1146: gdb-testsuite-m-static.patch # [aarch64] Fix gdb.cp/nextoverthrow.exp regression (Yao Qi). Patch1148: gdb-aarch64-nextoverthrow.patch # Fix TLS (such as 'errno') regression. Patch1149: gdb-tls-1of2.patch Patch1150: gdb-tls-2of2.patch # [testsuite] Fix false FAIL for gdb.base/morestack.exp. Patch1151: gdb-testsuite-morestack-gold.patch # Fix broken backtrace on i586 (rhbz#1411094) Patch1152: gdb-Fix-some-error-handling-bugs-in-python-frame-filters.patch Patch2000: CVE-2016-6131.patch Patch2001: CVE-2016-4491-1.patch Patch2002: CVE-2016-4491-2.patch Patch2003: CVE-2016-4491-3.patch # Mageia has dnf and urpmi: Patch10000: gdb-7.12-buildid-locate-mageia.patch # http://svnweb.mageia.org/soft/rpm/debuginfo-install/trunk/debuginfo-install Source1000: debuginfo-install # RL_STATE_FEDORA_GDB would not be found for: # Patch642: gdb-readline62-ask-more-rh.patch # --with-system-readline BuildRequires: readline-devel%{buildisa} >= 6.2-4 BuildRequires: ncurses-devel%{buildisa} texinfo gettext flex bison BuildRequires: expat-devel%{buildisa} BuildRequires: xz-devel%{buildisa} # dlopen() no longer makes rpm-libsFIXME{?_isa} (it's .so) a mandatory dependency. BuildRequires: rpm-devel%{buildisa} %global __python %{__python3} BuildRequires: python3-devel%{buildisa} Requires: python3%{buildisa} # gdb-doc in PDF, see: https://bugzilla.redhat.com/show_bug.cgi?id=919891#c10 BuildRequires: texinfo-tex BuildRequires: texlive BuildRequires: libbabeltrace-devel%{buildisa} BuildRequires: guile-devel%{buildisa} %global have_libipt 0 %ifarch %{ix86} x86_64 %global have_libipt 1 BuildRequires: libipt-devel%{buildisa} %endif BuildRequires: sharutils dejagnu # gcc-objc++ is not covered by the GDB testsuite. BuildRequires: gcc gcc-c++ gcc-gfortran gcc-objc BuildRequires: gcc-plugins%{?_isa} BuildRequires: gcc-java BuildRequires: fpc %description GDB, the GNU debugger, allows you to debug programs written in C, C++, Java, and other languages, by executing them in a controlled fashion and printing their data. %package gdbserver Summary: A standalone server for GDB (the GNU source-level debugger) Group: Development/Tools Conflicts: gdb < 7.11-5.mga6 %description gdbserver GDB, the GNU debugger, allows you to debug programs written in C, C++, Java, and other languages, by executing them in a controlled fashion and printing their data. This package provides a program that allows you to run GDB on a different machine than the one which is running the program being debugged. %package doc Summary: Documentation for GDB (the GNU source-level debugger) License: GFDL Group: Documentation BuildArch: noarch Requires(post): info-install Requires(preun): info-install Conflicts: gdb < 7.11-5.mga6 %description doc GDB, the GNU debugger, allows you to debug programs written in C, C++, Java, and other languages, by executing them in a controlled fashion and printing their data. This package provides INFO, HTML and PDF user manual for GDB. %package -n urpmi-debuginfo-install Summary: debuginfo-install shim for urpmi Version: 1 License: CC0 Group: System/Packaging # Conflict with older versions where debuginfo-install was bundled Conflicts: gdb < 7.12-13 Conflicts: dnf-utils # Generic provides to indicate what command it is, also provided by dnf-utils Provides: pkg-command(debuginfo-install) BuildArch: noarch %description -n urpmi-debuginfo-install This package provides /usr/bin/debuginfo-install for using with urpmi. %prep %setup -q -n %{gdb_src} # Files have `# <number> <file>' statements breaking VPATH / find-debuginfo.sh . (cd gdb;rm -fv $(perl -pe 's/\\\n/ /' <Makefile.in|sed -n 's/^YYFILES = //p')) # *.info* is needlessly split in the distro tar; also it would not get used as # we build in %{gdb_build}, just to be sure. find -name "*.info*"|xargs rm -f # Apply patches defined above. # Match the Fedora's version info. %patch2 -p1 %patch232 -p1 %patch349 -p1 %patch1058 -p1 %patch1132 -p1 %patch889 -p1 %patch1 -p1 %patch105 -p1 %patch111 -p1 %patch118 -p1 %patch122 -p1 %patch125 -p1 %patch133 -p1 %patch136 -p1 %patch145 -p1 %patch161 -p1 %patch163 -p1 %patch164 -p1 %patch188 -p1 %patch194 -p1 %patch196 -p1 %patch208 -p1 %patch211 -p1 %patch213 -p1 %patch214 -p1 %patch216 -p1 %patch217 -p1 %patch225 -p1 %patch229 -p1 %patch231 -p1 %patch234 -p1 %patch245 -p1 %patch247 -p1 %patch254 -p1 %patch258 -p1 %patch260 -p1 %patch263 -p1 %patch271 -p1 %patch274 -p1 %patch659 -p1 %patch353 -p1 %patch282 -p1 %patch284 -p1 %patch287 -p1 %patch289 -p1 %patch290 -p1 %patch294 -p1 %patch296 -p1 %patch298 -p1 %patch309 -p1 %patch311 -p1 %patch315 -p1 %patch317 -p1 %patch320 -p1 %patch330 -p1 %patch343 -p1 %patch348 -p1 %patch381 -p1 %patch382 -p1 %patch391 -p1 %patch392 -p1 %patch397 -p1 %patch403 -p1 %patch389 -p1 %patch394 -p1 %patch407 -p1 %patch408 -p1 %patch417 -p1 %patch459 -p1 %patch470 -p1 %patch475 -p1 %patch415 -p1 %patch519 -p1 %patch490 -p1 %patch491 -p1 %patch496 -p1 %patch526 -p1 %patch542 -p1 %patch547 -p1 %patch548 -p1 %patch565 -p1 %patch567 -p1 %patch579 -p1 %patch616 -p1 %patch627 -p1 %patch634 -p1 %patch653 -p1 %patch661 -p1 %patch690 -p1 %patch698 -p1 %patch703 -p1 %patch811 -p1 %patch812 -p1 %patch813 -p1 %patch814 -p1 %patch816 -p1 %patch817 -p1 %patch818 -p1 %patch832 -p1 %patch852 -p1 %patch861 -p1 %patch863 -p1 %patch887 -p1 %patch888 -p1 %patch918 -p1 %patch925 -p1 %patch927 -p1 %patch977 -p1 %patch978 -p1 %patch984 -p1 %patch991 -p1 %patch992 -p1 %patch1026 -p1 %patch1053 -p1 %patch1056 -p1 %patch1073 -p1 %patch848 -p1 %patch833 -p1 %patch642 -p1 %patch337 -p1 %patch331 -p1 %patch1113 -p1 %patch1118 -p1 %patch1123 -p1 %patch1143 -p1 %patch1144 -p1 %patch1145 -p1 %patch1146 -p1 %patch1148 -p1 %patch1149 -p1 %patch1150 -p1 %patch1151 -p1 %patch1152 -p1 %patch2000 -p1 %patch2001 -p1 %patch2002 -p1 %patch2003 -p1 %patch1075 -p1 # Mga: add urpmi option %patch10000 -p1 find -name "*.orig" | xargs rm -f ! find -name "*.rej" # Should not happen. # Change the version that gets printed at GDB startup, so it is RH specific. cat > gdb/version.in << _FOO %{gdb_version}-%{release} (%{distro_version}) _FOO # Remove the info and other generated files added by the FSF release # process. rm -f libdecnumber/gstdint.h rm -f bfd/doc/*.info rm -f bfd/doc/*.info-* rm -f gdb/doc/*.info rm -f gdb/doc/*.info-* # RL_STATE_FEDORA_GDB would not be found for: # Patch642: gdb-readline62-ask-more-rh.patch # --with-system-readline mv -f readline/doc readline-doc rm -rf readline/* mv -f readline-doc readline/doc rm -rf zlib %build test -e %{_root_libdir}/librpm.so.%{librpmver} # Identify the build directory with the version of gdb as well as the # architecture, to allow for mutliple versions to be installed and # built. # Initially we're in the %{gdb_src} directory. for fprofile in %{?_with_profile:-fprofile} "" do mkdir %{gdb_build}$fprofile cd %{gdb_build}$fprofile export CFLAGS="$RPM_OPT_FLAGS %{?_with_asan:-fsanitize=address}" export LDFLAGS="%{?__global_ldflags} %{?_with_asan:-fsanitize=address}" # (akien) This is Fedora-specific, for us debuginfo-install works fine with urpmi directly # CFLAGS="$CFLAGS -DDNF_DEBUGINFO_INSTALL" # Patch833: gdb-6.6-buildid-locate-rpm-scl.patch %if 0%{?el6:1} && 0%{?scl:1} CFLAGS="$CFLAGS -DGDB_INDEX_VERIFY_VENDOR" %endif # Patch642: gdb-readline62-ask-more-rh.patch CFLAGS="$CFLAGS -DNEED_RL_STATE_FEDORA_GDB" # Patch337: gdb-6.8-attach-signalled-detach-stopped.patch # Patch331: gdb-6.8-quit-never-aborts.patch %if 0%{?rhel:1} && 0%{?rhel} <= 6 CFLAGS="$CFLAGS -DNEED_DETACH_SIGSTOP" %endif # --htmldir and --pdfdir are not used as they are used from %{gdb_build}. ../configure \ --prefix=%{_prefix} \ --libdir=%{_libdir} \ --sysconfdir=%{_sysconfdir} \ --mandir=%{_mandir} \ --infodir=%{_infodir} \ --with-system-gdbinit=%{_sysconfdir}/gdbinit \ --with-gdb-datadir=%{_datadir}/gdb \ --enable-gdb-build-warnings=,-Wno-unused \ --enable-build-with-cxx \ --enable-werror \ --with-separate-debug-dir=/usr/lib/debug \ --disable-sim \ --disable-rpath \ --with-babeltrace \ --with-guile \ --with-system-readline \ --with-expat \ $(: ppc64 host build crashes on ppc variant of libexpat.so ) \ --without-libexpat-prefix \ --enable-tui \ %if 0%{!?_without_python:1} --with-python=%{__python} \ %else --without-python \ %endif --with-rpm=librpm.so.%{librpmver} \ --with-lzma \ --without-libunwind \ --enable-64-bit-bfd \ %if %{have_inproctrace} --enable-inprocess-agent \ %else --disable-inprocess-agent \ %endif --with-system-zlib \ %if %{have_libipt} --with-intel-pt \ %else --without-intel-pt \ %endif --with-auto-load-dir='$debugdir:$datadir/auto-load%{?scl::%{_root_datadir}/gdb/auto-load}' \ --with-auto-load-safe-path='$debugdir:$datadir/auto-load%{?scl::%{_root_datadir}/gdb/auto-load}' \ %{_target_platform} if [ -z "%{!?_with_profile:no}" ] then # Run all the configure tests being incompatible with $FPROFILE_CFLAGS. %make configure-host configure-target %make clean # Workaround -fprofile-use: # linux-x86-low.c:2225: Error: symbol `start_i386_goto' is already defined %make -C gdb/gdbserver linux-x86-low.o fi # Global CFLAGS would fail on: # conftest.c:1:1: error: coverage mismatch for function 'main' while reading counter 'arcs' if [ "$fprofile" = "-fprofile" ] then FPROFILE_CFLAGS='-fprofile-generate' elif [ -z "%{!?_with_profile:no}" ] then FPROFILE_CFLAGS='-fprofile-use' # We cannot use -fprofile-dir as the bare filenames clash. (cd ../%{gdb_build}-fprofile; # It was 333 on x86_64. test $(find -name "*.gcda"|wc -l) -gt 300 find -name "*.gcda" | while read -r i do ln $i ../%{gdb_build}/$i done ) else FPROFILE_CFLAGS="" fi %make CFLAGS="$CFLAGS $FPROFILE_CFLAGS" LDFLAGS="$FPROFILE_CFLAGS" if [ "$fprofile" = "-fprofile" ] then cd gdb cp -p gdb gdb-withindex PATH="$PWD:$PATH" sh ../../gdb/gdb-add-index $PWD/gdb-withindex ./gdb -nx -ex q ./gdb-withindex ./gdb -nx -readnow -ex q ./gdb-withindex cd .. fi cd .. done # fprofile cd %{gdb_build} %make \ -C gdb/doc {gdb,annotate}{.info,/index.html,.pdf} MAKEHTMLFLAGS=--no-split MAKEINFOFLAGS=--no-split # Copy the <sourcetree>/gdb/NEWS file to the directory above it. cp $RPM_BUILD_DIR/%{gdb_src}/gdb/NEWS $RPM_BUILD_DIR/%{gdb_src} %check # Initially we're in the %{gdb_src} directory. cd %{gdb_build} %if 0%{!?_with_testsuite:1} echo ====================TESTSUITE DISABLED========================= %else echo ====================TESTING========================= cd gdb gcc -o ./orphanripper %{SOURCE2} -Wall -lutil -ggdb2 # Need to use a single --ignore option, second use overrides first. # No `%{?_smp_mflags}' here as it may race. # WARNING: can't generate a core file - core tests suppressed - check ulimit # "readline-overflow.exp" - Testcase is broken, functionality is OK. ( # ULIMIT required for `gdb.base/auxv.exp'. ulimit -H -c ulimit -c unlimited || : # Setup $CHECK as `check//unix/' or `check//unix/-m64' for explicit bitsize. # Never use two different bitsizes as it fails on ppc64. echo 'int main (void) { return 0; }' >biarch.c CHECK="" for BI in -m64 -m32 -m31 "" do # Do not use size-less options if any of the sizes works. # On ia64 there is no -m64 flag while we must not leave a bare `check' here # as it would switch over some testing scripts to the backward compatibility # mode: when `make check' was executed from inside the testsuite/ directory. if [ -z "$BI" -a -n "$CHECK" ];then continue fi # Do not use $RPM_OPT_FLAGS as the other non-size options will not be used # in the real run of the testsuite. if ! gcc $BI -o biarch biarch.c then continue fi CHECK="$CHECK check//unix/$BI" done # Do not try -m64 inferiors for -m32 GDB as it cannot handle inferiors larger # than itself. # s390 -m31 still uses the standard ELF32 binary format. gcc $RPM_OPT_FLAGS -o biarch biarch.c RPM_SIZE="$(file ./biarch|sed -n 's/^.*: ELF \(32\|64\)-bit .*$/\1/p')" if [ "$RPM_SIZE" != "64" ] then CHECK="$(echo " $CHECK "|sed 's# check//unix/-m64 # #')" fi # Disable some problematic testcases. # RUNTESTFLAGS='--ignore ...' is not used below as it gets separated by the # `check//...' target spawn and too much escaping there would be dense. for test in \ gdb.base/readline-overflow.exp \ gdb.base/bigcore.exp \ ; do mv -f ../../gdb/testsuite/$test ../gdb/testsuite/$test-DISABLED || : done # Run all the scheduled testsuite runs also in the PIE mode. # See also: gdb-runtest-pie-override.exp ###CHECK="$(echo $CHECK|sed 's#check//unix/[^ ]*#& &/-fPIC/-pie#g')" ./orphanripper %make -k $CHECK || : ) for t in sum log do for file in testsuite*/gdb.$t do suffix="${file#testsuite.unix.}" suffix="${suffix%/gdb.$t}" ln $file gdb-%{_target_platform}$suffix.$t || : done done # `tar | bzip2 | uuencode' may have some piping problems in Brew. tar cjf gdb-%{_target_platform}.tar.bz2 gdb-%{_target_platform}*.{sum,log} uuencode gdb-%{_target_platform}.tar.bz2 gdb-%{_target_platform}.tar.bz2 cd ../.. echo ====================TESTING END===================== %endif %install # Initially we're in the %{gdb_src} directory. cd %{gdb_build} %makeinstall_std mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit.d touch -r %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit.d sed 's#%%{_sysconfdir}#%{_sysconfdir}#g' <%{SOURCE4} >$RPM_BUILD_ROOT%{_sysconfdir}/gdbinit touch -r %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/gdbinit for i in `find $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb -name "*.py"` do # Files could be also patched getting the current time. touch -r $RPM_BUILD_DIR/%{gdb_src}/gdb/ChangeLog $i done install -m 0775 %{SOURCE1000} %{buildroot}%{_bindir} # Remove the files that are part of a gdb build but that are owned and # provided by other packages. # These are part of binutils rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/ rm -f $RPM_BUILD_ROOT%{_infodir}/bfd* rm -f $RPM_BUILD_ROOT%{_infodir}/standard* rm -f $RPM_BUILD_ROOT%{_infodir}/configure* # Just exclude the header files in the top directory, and don't exclude # the gdb/ directory, as it contains jit-reader.h. rm -rf $RPM_BUILD_ROOT%{_includedir}/*.h rm -rf $RPM_BUILD_ROOT/%{_libdir}/lib{bfd*,opcodes*,iberty*} # pstack obsoletion cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_mandir}/man1/gstack.1 ln -s gstack.1 $RPM_BUILD_ROOT%{_mandir}/man1/pstack.1 ln -s gstack $RPM_BUILD_ROOT%{_bindir}/pstack # Packaged GDB is not a cross-target one. (cd $RPM_BUILD_ROOT%{_datadir}/gdb/syscalls rm -f mips*.xml %ifnarch sparc sparcv9 sparc64 rm -f sparc*.xml %endif %ifnarch x86_64 rm -f amd64-linux.xml %endif %ifnarch %{ix86} x86_64 rm -f i386-linux.xml %endif ) # Documentation only for development. rm -f $RPM_BUILD_ROOT%{_infodir}/gdbint* rm -f $RPM_BUILD_ROOT%{_infodir}/stabs* # Delete this too because the dir file will be updated at rpm install time. # We don't want a gdb specific one overwriting the system wide one. rm -f $RPM_BUILD_ROOT%{_infodir}/dir # These files are unrelated to Fedora Linux. rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/system-gdbinit/elinos.py rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/system-gdbinit/wrs-linux.py rmdir $RPM_BUILD_ROOT%{_datadir}/gdb/system-gdbinit # Patch848: gdb-dts-rhel6-python-compat.patch rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/FrameWrapper.py rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/backtrace.py rm -f $RPM_BUILD_ROOT%{_datadir}/gdb/python/gdb/command/backtrace.py %files %{_bindir}/gcore %{_bindir}/gdb %doc COPYING3 COPYING COPYING.LIB README NEWS %config(noreplace) %{_sysconfdir}/gdbinit %{_sysconfdir}/gdbinit.d %{_mandir}/*/gdbinit.5* %{_mandir}/*/gdb.1* %{_mandir}/*/gcore.1* %{_mandir}/*/gdb-add-index.1* %{_bindir}/gstack %{_mandir}/*/gstack.1* %{_bindir}/gdb-add-index %{_bindir}/pstack %{_mandir}/*/pstack.1* %{_datadir}/gdb # Provide gdb/jit-reader.h so that users are able to write their own GDB JIT # plugins. %{_includedir}/gdb # don't include the files in include, they are part of binutils %files -n urpmi-debuginfo-install %{_bindir}/debuginfo-install %files gdbserver %{_bindir}/gdbserver %{_mandir}/*/gdbserver.1* %if %{have_inproctrace} %{_libdir}/libinproctrace.so %endif # %{have_inproctrace} %files doc %doc %{gdb_build}/gdb/doc/{gdb,annotate}.{html,pdf} %{_infodir}/annotate.info* %{_infodir}/gdb.info* %post doc # This step is part of the installation of the RPM. Not to be confused # with the 'make install ' of the build (rpmbuild) process. # For --excludedocs: if [ -e %{_infodir}/gdb.info.xz ] then %_install_info gdb.info %_install_info annotate.info fi %preun doc # For --excludedocs: if [ -e %{_infodir}/gdb.info.xz ] %_remove_install_info gdb.info %_remove_install_info annotate.info fi %changelog * Fri Dec 29 2017 luigiwalser <luigiwalser> 7.12-16.1.mga6 + Revision: 1187301 - add patches from ubuntu to fix CVE-2016-4491 and CVE-2016-6131 * Fri Jul 07 2017 pterjan <pterjan> 7.12-16.mga6 + Revision: 1109207 - Fix gdb --version * Fri May 19 2017 akien <akien> 7.12-15.mga6 + Revision: 1103447 - Fix broken backtrace on i586 (rhbz#1411094) * Sun May 14 2017 ngompa <ngompa> 7.12-14.mga6 + Revision: 1101002 - Have urpmi-debuginfo-install conflict with gdb with bundled debuginfo-install * Sat May 06 2017 ngompa <ngompa> 7.12-13.mga6 + Revision: 1099350 - Split bundled debuginfo-install script into subpackage - Require any implementation of /usr/bin/debuginfo-install - Adjust buildid-locate-mageia patch to offer dnf and urpmi suggestions * Thu Oct 27 2016 tv <tv> 7.12-12.mga6 + Revision: 1063735 - new relaese * Wed Jun 08 2016 tv <tv> 7.11.1-12.mga6 + Revision: 1020875 - rebase to released FSF GDB 7.11.1 - import bare DW_TAG_lexical_block (rhbz#1325396) * Thu May 12 2016 tv <tv> 7.11-12.mga6 + Revision: 1014009 - gdb does not work without python3 * Mon May 09 2016 tv <tv> 7.11-11.mga6 + Revision: 1011790 - sync patches with FC * Fri Apr 29 2016 tv <tv> 7.11-10.mga6 + Revision: 1007742 - import upstream 7.11 branch stable fixes * Thu Apr 14 2016 tv <tv> 7.11-9.mga6 + Revision: 1001347 - reenable python bytecompiling - regroup mga stuff at top - BR gcc-java - BR gcc-gfortran & gcc-objc - BR gcc-plugins * Thu Apr 14 2016 tv <tv> 7.11-8.mga6 + Revision: 1001307 - fix one last python3 exception * Thu Apr 14 2016 tv <tv> 7.11-7.mga6 + Revision: 1001297 - switch to python3 (also fixing exception at startup) * Thu Apr 14 2016 tv <tv> 7.11-6.mga6 + Revision: 1001274 - recommends gcc-plugins - BR fpc - BR dejagnu - split gdbserver & doc subpackages - explicitely enable inproctrace on x86 only * Thu Apr 14 2016 tv <tv> 7.11-5.mga6 + Revision: 1001158 - disable libipt on !x86 * Wed Apr 13 2016 tv <tv> 7.11-4.mga6 + Revision: 1001116 - enable libipt support * Wed Apr 13 2016 tv <tv> 7.11-3.mga6 + Revision: 1001080 - sync patches with FC * Tue Mar 29 2016 tv <tv> 7.11-2.mga6 + Revision: 996089 - sync patches with FC * Sun Mar 06 2016 tv <tv> 7.11-1.mga6 + Revision: 986574 - 7.11 * Sat Feb 20 2016 tv <tv> 7.10.90.20160216-1.mga6 + Revision: 972394 - new snapshot * Sun Jan 24 2016 tv <tv> 7.10.50.20160121-1.mga6 + Revision: 926948 - new snapshot - sync with FC - new snapshot - sync with FC + akien <akien> - Disable Fedora-specific addition of dnf to the debuginfo-install command * Sun Jan 24 2016 luigiwalser <luigiwalser> 7.10.50.20160106-3.mga6 + Revision: 926912 - cloog-ppl is no longer used * Sun Jan 17 2016 tv <tv> 7.10.50.20160106-2.mga6 + Revision: 924820 - new snapshot - sync with FC * Wed Dec 02 2015 tv <tv> 7.10.50.20151113-1.mga6 + Revision: 907792 - disable broken python byte compiling - BR guile - disable broken python byte compiling - cleanups - enable guile support - drop %%with_system_readline option - new release - sync with FC - notice that this package is synced with FC * Thu Oct 08 2015 tv <tv> 7.10-4.mga6 + Revision: 887255 - rebuild for python 3.5 * Mon Sep 21 2015 shlomif <shlomif> 7.10-3.mga6 + Revision: 882116 - Rebuild + resumbit * Sat Sep 05 2015 tv <tv> 7.10-2.mga6 + Revision: 873130 - rebuild with new rpm * Sun Aug 30 2015 tv <tv> 7.10-1.mga6 + Revision: 871110 - submit to core/release - new release * Sun Aug 23 2015 tv <tv> 7.9.90.20150717-2.mga6 + Revision: 868194 - rediff mga patch - rebuild with rpm-4.13 * Sat Jul 25 2015 tv <tv> 7.9.90.20150717-1.mga6 + Revision: 857603 - 7.9.90.20150717 (7.10 snapshot) * Sun Jun 28 2015 tv <tv> 7.9.50.20150531-1.mga6 + Revision: 846668 - new release * Wed Nov 26 2014 tv <tv> 7.8.1-7.mga5 + Revision: 799378 - sync patches with FC * Fri Nov 21 2014 tv <tv> 7.8.1-6.mga5 + Revision: 798197 - 7.8.1 - sync patches with FC * Wed Oct 22 2014 tv <tv> 7.8-6.mga5 + Revision: 792469 - sync patches with FC: o Accelerate interactive symbols lookup 15x. o Workaround makeinfo F-22 Bug 1154436. o Import 5 upstream gdb-7.8 branch fixes (async fix by Pedro Alves). o Fix 'Slow gstack performance' (RH BZ 1103894, Jan Kratochvil). o Fix "save breakpoints" for signal catchpoints and disabled breakpoints (BZ 1146170, Miroslav Franc). o Install gdb/jit-reader.h on include directory (BZ 1141968). o [testsuite] Fix runaway gdb.base/attach processes. o Fix GDB SIGTT* Stopped when using the PID argument (BZ 1136704, Pedro Alves). * Wed Oct 15 2014 umeabot <umeabot> 7.8-5.mga5 + Revision: 743932 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 7.8-4.mga5 + Revision: 679456 - Mageia 5 Mass Rebuild * Fri Aug 29 2014 tv <tv> 7.8-3.mga5 + Revision: 669288 - sync patches with FC: o Fix babeltrace errors (Yao Qi) o Fix crash on Python frame filters with unreadable arg (rhbz#1126177) o Fix Python GIL with gdb.execute("continue") (Phil Muldoon, rhbz#1116957) * Fri Aug 08 2014 tv <tv> 7.8-2.mga5 + Revision: 661122 - sync with RH: o Enable babeltrace compile-time feature o Display Fortran strings in backtraces * Thu Jul 31 2014 tv <tv> 7.8-1.mga5 + Revision: 658489 - disable readline patch - new release - sync with FC - adapt FC patches for final release * Sun Jun 08 2014 tv <tv> 7.7.1-1.mga5 + Revision: 634795 - do not build against system readline - patch 10000: fix it so that it actually apply - patch 10001: fix build with readline-6.3 - actually apply patch 10000 - sync patches with FC - 7.7.1 - sync patches with FC * Fri Feb 28 2014 tv <tv> 7.7-1.mga5 + Revision: 598020 - rebase to FSF GDB 7.7 - sync patches with FC - new rpmbuild option: --with asan * Sat Oct 19 2013 umeabot <umeabot> 7.6-6.mga4 + Revision: 531324 - Mageia 4 Mass Rebuild * Sun Aug 04 2013 fwang <fwang> 7.6-5.mga4 + Revision: 463108 - cleanup spec * Wed Jun 12 2013 tv <tv> 7.6-4.mga4 + Revision: 442021 - fix build with system readlien - sync with FC - link with system readline * Tue May 28 2013 tv <tv> 7.6-3.mga4 + Revision: 429541 - add latest patches from FC * Tue May 28 2013 tv <tv> 7.6-2.mga4 + Revision: 429494 - submit to core/release * Mon May 27 2013 tv <tv> 7.6-1.mga4 + Revision: 428980 - install pstack - fix build - adjust file list - new release - sync patches with FC * Sun Apr 21 2013 tv <tv> 7.5.1-7.mga3 + Revision: 410764 - further simplify patch 1000: Mageia have urpmi instead of yum - Patch 10000: drop bits disabling debuginfo-install usage - kill slow test - do not make debuginfo-install uselessly slow + kamil <kamil> - check if queried package is installed * Sat Apr 20 2013 neoclust <neoclust> 7.5.1-6.mga3 + Revision: 410634 - Make debuginfo-install executable * Sun Apr 07 2013 neoclust <neoclust> 7.5.1-5.mga3 + Revision: 408730 - Package debuginfo-install as a source of gdb ( mga #8555) * Fri Jan 11 2013 umeabot <umeabot> 7.5.1-4.mga3 + Revision: 351125 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Tue Jan 01 2013 tv <tv> 7.5.1-3.mga3 + Revision: 337294 - simplify patch now that we've debuginfo (we now only miss debuginfo-install) * Thu Dec 13 2012 tv <tv> 7.5.1-2.mga3 + Revision: 330582 - merge patches from RH: o 'dwz -m' parsing fix o fix `GDB cannot access struct member whose offset is larger than 256MB' (RH BZ 871066) o fix DW_OP_GNU_implicit_pointer offset bug - renumerate mga patches * Sat Dec 01 2012 tv <tv> 7.5.1-1.mga3 + Revision: 324015 - new release - do apply some patches * Sun Nov 18 2012 tv <tv> 7.5.0.20120926-1.mga3 + Revision: 319509 - new snapshot (sync with FC) + fwang <fwang> - update rpm group * Sat Oct 06 2012 rtp <rtp> 7.5-2.mga3 + Revision: 303021 - enable back sim and werror. * Wed Aug 22 2012 tv <tv> 7.5-1.mga3 + Revision: 283090 - new release - sync patches with FC * Mon Aug 13 2012 tv <tv> 7.4.91.20120801-1.mga3 + Revision: 281165 - new release - sync patches with FC * Mon Jul 30 2012 tv <tv> 7.4.50.20120714-2.mga3 + Revision: 276199 - enable lzma support for minidebuginfo * Sun Jul 22 2012 shlomif <shlomif> 7.4.50.20120714-1.mga3 + Revision: 273583 - New version 7.4.50.20120714 . Sync with the new upstream package. Many patches were updated and I also had to update the mageia patch for the debug info packages. This was done in order to make gdb build again and on the way to resolve bug #3417. * Tue Dec 20 2011 dmorgan <dmorgan> 7.3.50.20110722-4.mga2 + Revision: 185013 - Rebuild against rpm 4.9.1.2 * Thu Nov 24 2011 dmorgan <dmorgan> 7.3.50.20110722-3.mga2 + Revision: 171528 - Resurect debug install helper patch ( mga #3417) * Tue Oct 18 2011 dmorgan <dmorgan> 7.3.50.20110722-2.mga2 + Revision: 156013 - Sync with fedora ==> Rebase to FSF GDB 7.3.50.20110722 * Tue Oct 11 2011 dmorgan <dmorgan> 7.1-7.mga2 + Revision: 153808 - Adapt for rpm 4.9 * Tue Apr 05 2011 dmorgan <dmorgan> 7.1-6.mga1 + Revision: 80703 - Specify used rpm lib + rtp <rtp> - fix file list on arm/mips * Mon Jan 17 2011 misc <misc> 7.1-5.mga1 + Revision: 21081 - rebuild for python 2.7 * Tue Jan 11 2011 blino <blino> 7.1-4.mga1 + Revision: 6533 - revert rpm5 patch - do not hardcode distro name in macro - update comment - rename and adapt patch - rename macro - imported package gdb * Sun Jan 09 2011 Per Ãyvind Karlsen <peroyvind@mandriva.org> 7.1-4mdv2011.0 + Revision: 630736 - fix python 2.7 support (P1001) * Sat Dec 04 2010 Per Ãyvind Karlsen <peroyvind@mandriva.org> 7.1-3mdv2011.0 + Revision: 608927 - add versioned rpm-devel build requires - port to rpm5 API (P1000) * Sun Oct 31 2010 Funda Wang <fwang@mandriva.org> 7.1-2mdv2011.0 + Revision: 590743 - rebuild for py2.7 * Fri Apr 16 2010 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 7.1-1mdv2010.1 + Revision: 535538 - Updated gdb to version 7.1 - Sync Fedora patches with gdb-7.1-12.fc13 - Update buildid-locate-mandriva patch for new gdb. * Fri Jan 15 2010 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 7.0.1-2mdv2010.1 + Revision: 491836 - Make sure we always build with libexpat. * Wed Jan 06 2010 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 7.0.1-1mdv2010.1 + Revision: 486873 - Sync fedora patches with 7.0.1-19.fc12 + Emmanuel Andry <eandry@mandriva.org> - New version 7.0.1 - drop p232 (merged upstream) - BR libcloog-devel * Fri Dec 18 2009 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 7.0-1mdv2010.1 + Revision: 479987 - Rediff fix-sim-build, buildid-locate-mandriva. - Sync patches with Fedora gdb package (7.0-9.fc12). + Christophe Fergeau <cfergeau@mandriva.com> - upload gdb 7.0 tarball (still not building :-/) - readd patches I didn't mean to remove just yet - update to first 7.0 prerelease, still not working because of autoconf issues :( - rediff patches against new gdb tarball add gdb-6.6-buildid-locate-rpm.patch from fedora (they split gdb-6.6-buildid-locate.patch in 2 separate patches) comment out 2 patches that haven't been rediffed yet - fix patch comment to be in line with fedora .spec comment - pick attach-signalled patch from fedora to replace ours - drop no longer useful patch (after switch to gcc 4.4?) - Patch179 has been dropped from RedHat too - sync RedHat patches to latest version - remove no longer used patches - patch backporting upstream fixes is no longer necessary - drop patches that are no longer in fedora package - use 6.8.50 CVS snapshot instead of the old 6.8 release - fix Patch176 (depended on an ia64 patch) - Patch112 is needed by Patch141, readd it - remove obsolete patches - drop unused patches - fix cvs snapshot handling - delete dropped patches - drop ppc, ia64 and sparc patches + Olivier Blin <oblin@mandriva.com> - add mips support (from Arnaud Patard) - fix a format error in sim-utils (from Arnaud Patard) * Wed Sep 02 2009 Christophe Fergeau <cfergeau@mandriva.com> 6.8-7mdv2010.0 + Revision: 424577 - rebuild * Mon Mar 23 2009 Paulo Andrade <pcpa@mandriva.com.br> 6.8-6mdv2009.1 + Revision: 360759 - Correct #37755. See https://bugzilla.redhat.com/show_bug.cgi?id=453688#c3 for more information. This basically allows 'valgrind --db-attach=yes' to work again, as this feature is missing since 2008.0. This patch is not fully correct as it depends on corrections in kernel code, but is enough to get gdb to stop at the proper moment memory corruption happened, and to allow checking contents of global and stack variables (of the current function, stack frame information is lost). * Wed Jan 21 2009 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 6.8-5mdv2009.1 + Revision: 332266 - Really fix display of missing debug packages (#47170). * Wed Jan 21 2009 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 6.8-4mdv2009.1 + Revision: 332195 - Fix display of missing debug packages (#47170). * Tue Jan 20 2009 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 6.8-3mdv2009.1 + Revision: 332036 - Reset _default_patch_fuzz to 2 until patches are rediffed. - Updated buildid-locate patch from Fedora (reported by Pixel). - Redid buildid-locate-mandriva patch. - Rediffed rpm5-compat patch. + Per Ãyvind Karlsen <peroyvind@mandriva.org> - add rpm5.org compatibility (P319) * Sun Aug 24 2008 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 6.8-2mdv2009.0 + Revision: 275428 - Provide again gdbserver (#41257). For some unknown reason it was being removed on the spec, no explanation or changelog explaining this. + Götz Waschk <waschk@mandriva.org> - fix license * Wed Jun 18 2008 Herton Ronaldo Krzesinski <herton@mandriva.com.br> 6.8-1mdv2009.0 + Revision: 224207 - Add BuildRequires for librpm-devel - Mandriva doesn't have debuginfo-install etc., quick adapt for buildid-locate patch from Fedora (we should stop to share/sync all patches...) - Updated to version 6.8 - Removed already applied patches: gdb-6.6-makeinfoversion.patch gdb-6.6-do-not-crash-on-line-info-with-no-file.patch - Sync fedora patches with their latest gdb package (gdb-6.8-10.fc10). * Tue Jun 17 2008 Thierry Vignaud <tv@mandriva.org> 6.6-6mdv2009.0 + Revision: 221044 - rebuild * Mon Mar 31 2008 Pixel <pixel@mandriva.com> 6.6-5mdv2008.1 + Revision: 191243 - fixes gdb crashing when using kdelibs-debug (#29755) (without this patch, kcrash/drkonqi fails with a weird error message) + Frederic Crozat <fcrozat@mandriva.com> - Patch235 (CVS): fix rebuild with latest makeinfo + Thierry Vignaud <tv@mandriva.org> - rebuild - kill re-definition of %%buildroot on Pixel's request + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Mon Sep 10 2007 Adam Williamson <awilliamson@mandriva.org> 6.6-3mdv2008.0 + Revision: 84260 - rediff patch234 (spaces vs. tabs...) - better version of patch234 - add patch234 suggested by blino to fix a warning which breaks %%configure - don't package COPYING and COPYING.LIB - drop menu entries (#27065) - Fedora license policy, correct license - drop old (10.1) conditionals + Oden Eriksson <oeriksson@mandriva.com> - sync with gdb-6.6-1mdv2007.1.src.rpm * Sun Jan 28 2007 Per Ãyvind Karlsen <pkarlsen@mandriva.com> 6.6-1mdv2007.0 + Revision: 114460 - new release: 6.6 sync with fedora fix prereq - Import gdb * Tue Sep 19 2006 Gwenole Beauchesne <gbeauchesne@mandriva.com> 6.3-8mdv2007.0 - Rebuild * Mon Jul 17 2006 Nicolas Lécureuil <neoclust@mandriva.org> 6.3-7mdv2007.0 - XDG * Wed Oct 05 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 6.3-6mdk - ppc64 fixes * Mon Aug 01 2005 Christiaan Welvaart <cjw@daneel.dyndns.org> 6.3-5mdk - add BuildRequires: bison * Wed Jul 27 2005 Gwenole Beauchesne <gbeauchesne@mandriva.com> 6.3-4mdk - merge with RH 6.3.0.0-1.49 * Thu Jan 20 2005 Per Ãyvind Karlsen <peroyvind@linux-mandrake.com> 6.3-3mdk - rebuild for new readline - wipe out buildroot at the beginning of %%install * Sun Nov 14 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 6.3-2mdk - add BuildRequires: flex * Wed Nov 10 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 6.3-1mdk - 6.3 * Fri Aug 27 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 6.2-2mdk - Improved i386 prologue analyzer from 6.2-branch (2004/07/08) * Thu Aug 26 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 6.2-1mdk - 6.2 * Sat Aug 14 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 6.1.1-2mdk - Rebuild for new conversion table menu * Sat Jul 31 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 6.1.1-1mdk - package ppc-specific files - 6.1.1 * Tue May 25 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 6.1-1mdk - 6.1