diff --git a/.gitignore b/.gitignore index 96985c5..a46c566 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ /gdb-libstdc++-v3-python-7.1.1-20170526.tar.xz /v1.6.1.tar.gz -/gdb-8.1.tar.xz -/gdb-8.1.50.20180522.tar.xz +/gdb-8.1.50.20180629.tar.xz diff --git a/README.local-patches b/README.local-patches index ea7162a..725846e 100644 --- a/README.local-patches +++ b/README.local-patches @@ -48,20 +48,16 @@ you can use "git rebase" whenever you want to reorder patch order, or even to delete a patch. 2) When writing the commit log, you must obey a few rules. The -subject line can be anything, but the body *must* have the following -special line: - - FileName: name-of-the-patch.patch - -This line will be used when exporting the patches from the git -repository, and (obviously) it gives the filename that should be used -for this specific patch. +subject line *must* be the filename of the patch. This line will be +used when exporting the patches from the git repository, and +(obviously) it gives the filename that should be used for this +specific patch. 3) You can also add comments that will go into the auto-generated "Patch:" file (see below). To do that, use the special marker ";;" at the beginning of the line. This way, a commit log that says: - FileName: test-patch.patch + test-patch.patch ;; This is a test patch ;; Second line diff --git a/_gdb.spec.Patch.include b/_gdb.spec.Patch.include index 3ee5fa4..edce570 100644 --- a/_gdb.spec.Patch.include +++ b/_gdb.spec.Patch.include @@ -325,186 +325,182 @@ Patch078: gdb-runtest-pie-override.patch #=push+jan Patch079: gdb-attach-fail-reasons-5of5.patch -# Workaround crashes from stale frame_info pointer (BZ 804256). -#=push+jan -Patch080: gdb-stale-frame_info.patch - # Workaround PR libc/14166 for inferior calls of strstr. #=fedora: Compatibility with RHELs (unchecked which ones). -Patch081: gdb-glibc-strstr-workaround.patch +Patch080: gdb-glibc-strstr-workaround.patch # Include testcase for `Unable to see a variable inside a module (XLF)' (BZ 823789). #=fedoratest -Patch082: gdb-rhel5.9-testcase-xlf-var-inside-mod.patch +Patch081: gdb-rhel5.9-testcase-xlf-var-inside-mod.patch # Testcase for `Setting solib-absolute-prefix breaks vDSO' (BZ 818343). #=fedoratest -Patch083: gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch +Patch082: 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 -Patch084: gdb-rhbz795424-bitpos-20of25.patch +Patch083: gdb-rhbz795424-bitpos-20of25.patch # Fix `GDB cannot access struct member whose offset is larger than 256MB' # (RH BZ 795424). #=push -Patch085: gdb-rhbz795424-bitpos-21of25.patch +Patch084: gdb-rhbz795424-bitpos-21of25.patch # Fix `GDB cannot access struct member whose offset is larger than 256MB' # (RH BZ 795424). #=push -Patch086: gdb-rhbz795424-bitpos-22of25.patch +Patch085: gdb-rhbz795424-bitpos-22of25.patch # Fix `GDB cannot access struct member whose offset is larger than 256MB' # (RH BZ 795424). #=push -Patch087: gdb-rhbz795424-bitpos-23of25.patch +Patch086: gdb-rhbz795424-bitpos-23of25.patch # Fix `GDB cannot access struct member whose offset is larger than 256MB' # (RH BZ 795424). #=push -Patch088: gdb-rhbz795424-bitpos-25of25.patch +Patch087: gdb-rhbz795424-bitpos-25of25.patch # Fix `GDB cannot access struct member whose offset is larger than 256MB' # (RH BZ 795424). #=push -Patch089: gdb-rhbz795424-bitpos-25of25-test.patch +Patch088: gdb-rhbz795424-bitpos-25of25-test.patch # Fix `GDB cannot access struct member whose offset is larger than 256MB' # (RH BZ 795424). #=push -Patch090: gdb-rhbz795424-bitpos-lazyvalue.patch +Patch089: 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 -Patch091: gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch +Patch090: gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch # Fix crash of -readnow /usr/lib/debug/usr/bin/gnatbind.debug (BZ 1069211). #=push+jan -Patch092: gdb-gnat-dwarf-crash-3of3.patch +Patch091: gdb-gnat-dwarf-crash-3of3.patch # Fix 'memory leak in infpy_read_memory()' (RH BZ 1007614) #=fedoratest -Patch093: gdb-rhbz1007614-memleak-infpy_read_memory-test.patch +Patch092: gdb-rhbz1007614-memleak-infpy_read_memory-test.patch # Fix 'gdb gives highly misleading error when debuginfo pkg is present, # but not corresponding binary pkg' (RH BZ 981154). #=push+jan -Patch094: gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch +Patch093: gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch #=fedoratest -Patch095: gdb-archer-vla-tests.patch +Patch094: gdb-archer-vla-tests.patch #=fedoratest -Patch096: gdb-vla-intel-tests.patch +Patch095: gdb-vla-intel-tests.patch # Continue backtrace even if a frame filter throws an exception (Phil Muldoon). #=push -Patch097: gdb-btrobust.patch +Patch096: gdb-btrobust.patch # Display Fortran strings in backtraces. #=fedoratest -Patch098: gdb-fortran-frame-string.patch +Patch097: gdb-fortran-frame-string.patch # Fix Python GIL with gdb.execute("continue") (Phil Muldoon, BZ 1116957). #=push -Patch099: gdb-python-gil.patch +Patch098: gdb-python-gil.patch # Testcase for '[SAP] Recursive dlopen causes SAP HANA installer to # crash.' (RH BZ 1156192). #=fedoratest -Patch100: gdb-rhbz1156192-recursive-dlopen-test.patch +Patch099: gdb-rhbz1156192-recursive-dlopen-test.patch # Fix jit-reader.h for multi-lib. #=push+jan -Patch101: gdb-jit-reader-multilib.patch +Patch100: gdb-jit-reader-multilib.patch # Fix '`catch syscall' doesn't work for parent after `fork' is called' # (Philippe Waroquiers, RH BZ 1149205). #=fedoratest -Patch102: gdb-rhbz1149205-catch-syscall-after-fork-test.patch +Patch101: 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). #=fedoratest -Patch103: gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch +Patch102: gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch # Test 'info type-printers' Python error (RH BZ 1350436). #=fedoratest -Patch104: gdb-rhbz1350436-type-printers-error.patch +Patch103: gdb-rhbz1350436-type-printers-error.patch # Fix '[ppc64] and [s390x] wrong prologue skip on -O2 -g code' (Jan # Kratochvil, RH BZ 1084404). #=fedoratest -Patch105: gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch +Patch104: gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch # Never kill PID on: gdb exec PID (Jan Kratochvil, RH BZ 1219747). #=push+jan -Patch106: gdb-bz1219747-attach-kills.patch +Patch105: gdb-bz1219747-attach-kills.patch # Force libncursesw over libncurses to match the includes (RH BZ 1270534). #=push+jan -Patch107: gdb-fedora-libncursesw.patch +Patch106: gdb-fedora-libncursesw.patch # Test clflushopt instruction decode (for RH BZ 1262471). #=fedoratest -Patch108: gdb-opcodes-clflushopt-test.patch +Patch107: gdb-opcodes-clflushopt-test.patch # [rhel6] DTS backward Python compatibility API (BZ 1020004, Phil Muldoon). #=fedora -Patch109: gdb-dts-rhel6-python-compat.patch +Patch108: gdb-dts-rhel6-python-compat.patch # [SCL] Skip deprecated .gdb_index warning for Red Hat built files (BZ 953585). #=push+jan -Patch110: gdb-6.6-buildid-locate-rpm-scl.patch +Patch109: gdb-6.6-buildid-locate-rpm-scl.patch # Work around readline-6.2 incompatibility not asking for --more-- (BZ 701131). #=fedora -Patch111: gdb-readline62-ask-more-rh.patch +Patch110: gdb-readline62-ask-more-rh.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 . -Patch112: gdb-6.8-quit-never-aborts.patch +Patch111: gdb-6.8-quit-never-aborts.patch # [aarch64] Fix hardware watchpoints (RH BZ 1261564). #=fedoratest -Patch113: gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch +Patch112: gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch # Add messages suggesting more recent RHEL gdbserver (RH BZ 1321114). #=fedora -Patch114: gdb-container-rh-pkg.patch +Patch113: gdb-container-rh-pkg.patch # New test for Python "Cannot locate object file for block" (for RH BZ 1325795). #=fedoratest -Patch115: gdb-rhbz1325795-framefilters-test.patch +Patch114: gdb-rhbz1325795-framefilters-test.patch # [dts+el7] [x86*] Bundle linux_perf.h for libipt (RH BZ 1256513). #=fedora -Patch116: gdb-linux_perf-bundle.patch +Patch115: gdb-linux_perf-bundle.patch # Fix gdb-headless /usr/bin/ executables (BZ 1390251). #=fedora -Patch117: gdb-libexec-add-index.patch +Patch116: gdb-libexec-add-index.patch # New testcase for: Fix -completion crash (Gary Benson, RH BZ 1398387). #=fedoratest -Patch118: gdb-rhbz1398387-tab-crash-test.patch +Patch117: gdb-rhbz1398387-tab-crash-test.patch # [testsuite] Fix false selftest.exp FAIL from system readline-6.3+ (Patrick Palka). #=fedoratest -Patch119: gdb-testsuite-readline63-sigint.patch +Patch118: gdb-testsuite-readline63-sigint.patch # Python patches of: http://sourceware.org/gdb/wiki/ProjectArcher #=push -Patch120: gdb-archer.patch +Patch119: gdb-archer.patch # Revert upstream commit 469412dd9ccc4de5874fd3299b105833f36b34cd -Patch121: gdb-vla-intel-fix-print-char-array.patch +Patch120: gdb-vla-intel-fix-print-char-array.patch # [s390x] Backport arch12 instructions decoding (RH BZ 1553104). # =fedoratest -Patch122: gdb-rhbz1553104-s390x-arch12-test.patch +Patch121: gdb-rhbz1553104-s390x-arch12-test.patch diff --git a/_gdb.spec.patch.include b/_gdb.spec.patch.include index 131cf93..a663edb 100644 --- a/_gdb.spec.patch.include +++ b/_gdb.spec.patch.include @@ -119,4 +119,3 @@ %patch119 -p1 %patch120 -p1 %patch121 -p1 -%patch122 -p1 diff --git a/_git_upstream_commit b/_git_upstream_commit index e853d25..bcd1724 100644 --- a/_git_upstream_commit +++ b/_git_upstream_commit @@ -1 +1 @@ -75d74ccace05f6166a45dbaa352abf753891d3be +fd1ae9058720aa2738cc4852647097dd89c2bb88 diff --git a/_patch_order b/_patch_order index aaec704..1b3a5fe 100644 --- a/_patch_order +++ b/_patch_order @@ -77,7 +77,6 @@ gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch gdb-test-ivy-bridge.patch gdb-runtest-pie-override.patch gdb-attach-fail-reasons-5of5.patch -gdb-stale-frame_info.patch gdb-glibc-strstr-workaround.patch gdb-rhel5.9-testcase-xlf-var-inside-mod.patch gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch diff --git a/gdb-6.3-attach-see-vdso-test.patch b/gdb-6.3-attach-see-vdso-test.patch index ef27270..14fff21 100644 --- a/gdb-6.3-attach-see-vdso-test.patch +++ b/gdb-6.3-attach-see-vdso-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-attach-see-vdso-test.patch -FileName: gdb-6.3-attach-see-vdso-test.patch - ;; Test kernel VDSO decoding while attaching to an i386 process. ;;=fedoratest diff --git a/gdb-6.3-bz140532-ppc-unwinding-test.patch b/gdb-6.3-bz140532-ppc-unwinding-test.patch index c4b7105..4a96e8e 100644 --- a/gdb-6.3-bz140532-ppc-unwinding-test.patch +++ b/gdb-6.3-bz140532-ppc-unwinding-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-bz140532-ppc-unwinding-test.patch -FileName: gdb-6.3-bz140532-ppc-unwinding-test.patch - ;; Update PPC unwinding patches to their upstream variants (BZ 140532). ;;=fedoratest @@ -306,7 +304,6 @@ new file mode 100644 + } +} diff --git a/gdb/testsuite/gdb.arch/powerpc-prologue.exp b/gdb/testsuite/gdb.arch/powerpc-prologue.exp -index 5251dfa9c3..f3933e2295 100644 --- a/gdb/testsuite/gdb.arch/powerpc-prologue.exp +++ b/gdb/testsuite/gdb.arch/powerpc-prologue.exp @@ -16,8 +16,9 @@ diff --git a/gdb-6.3-bz202689-exec-from-pthread-test.patch b/gdb-6.3-bz202689-exec-from-pthread-test.patch index cbc2426..df59b77 100644 --- a/gdb-6.3-bz202689-exec-from-pthread-test.patch +++ b/gdb-6.3-bz202689-exec-from-pthread-test.patch @@ -3,8 +3,6 @@ From: Jan Kratochvil Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-bz202689-exec-from-pthread-test.patch -FileName: gdb-6.3-bz202689-exec-from-pthread-test.patch - ;; Testcase for exec() from threaded program (BZ 202689). ;;=fedoratest diff --git a/gdb-6.3-focus-cmd-prev-test.patch b/gdb-6.3-focus-cmd-prev-test.patch index 17c81a7..27c85f1 100644 --- a/gdb-6.3-focus-cmd-prev-test.patch +++ b/gdb-6.3-focus-cmd-prev-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-focus-cmd-prev-test.patch -FileName: gdb-6.3-focus-cmd-prev-test.patch - ;; Test a crash on `focus cmd', `focus prev' commands. ;;=fedoratest diff --git a/gdb-6.3-gstack-20050411.patch b/gdb-6.3-gstack-20050411.patch index 449b7db..37b09de 100644 --- a/gdb-6.3-gstack-20050411.patch +++ b/gdb-6.3-gstack-20050411.patch @@ -3,8 +3,6 @@ From: Andrew Cagney Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-gstack-20050411.patch -FileName: gdb-6.3-gstack-20050411.patch - ;; Add a wrapper script to GDB that implements pstack using the ;; --readnever option. ;;=push @@ -16,10 +14,9 @@ FileName: gdb-6.3-gstack-20050411.patch * gstack.sh, gstack.1: New files. diff --git a/gdb/Makefile.in b/gdb/Makefile.in -index 09a2ad2ca3..1ea7a36c69 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in -@@ -1727,7 +1727,7 @@ info install-info clean-info dvi pdf install-pdf html install-html: force +@@ -1735,7 +1735,7 @@ info install-info clean-info dvi pdf install-pdf html install-html: force install: all @$(MAKE) $(FLAGS_TO_PASS) install-only @@ -28,7 +25,7 @@ index 09a2ad2ca3..1ea7a36c69 100644 transformed_name=`t='$(program_transform_name)'; \ echo gdb | sed -e "$$t"` ; \ if test "x$$transformed_name" = x; then \ -@@ -1776,7 +1776,25 @@ install-guile: +@@ -1784,7 +1784,25 @@ install-guile: install-python: $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb @@ -55,7 +52,7 @@ index 09a2ad2ca3..1ea7a36c69 100644 transformed_name=`t='$(program_transform_name)'; \ echo gdb | sed -e $$t` ; \ if test "x$$transformed_name" = x; then \ -@@ -1799,6 +1817,18 @@ uninstall: force $(CONFIG_UNINSTALL) +@@ -1807,6 +1825,18 @@ uninstall: force $(CONFIG_UNINSTALL) fi @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do diff --git a/gdb-6.3-inferior-notification-20050721.patch b/gdb-6.3-inferior-notification-20050721.patch index c37fe6e..b94b432 100644 --- a/gdb-6.3-inferior-notification-20050721.patch +++ b/gdb-6.3-inferior-notification-20050721.patch @@ -3,8 +3,6 @@ From: Jeff Johnston Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-inferior-notification-20050721.patch -FileName: gdb-6.3-inferior-notification-20050721.patch - ;; Notify observers that the inferior has been created ;;=fedoratest diff --git a/gdb-6.3-inheritancetest-20050726.patch b/gdb-6.3-inheritancetest-20050726.patch index 73a4d72..6b22011 100644 --- a/gdb-6.3-inheritancetest-20050726.patch +++ b/gdb-6.3-inheritancetest-20050726.patch @@ -3,8 +3,6 @@ From: Jeff Johnston Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-inheritancetest-20050726.patch -FileName: gdb-6.3-inheritancetest-20050726.patch - ;; Verify printing of inherited members test ;;=fedoratest diff --git a/gdb-6.3-mapping-zero-inode-test.patch b/gdb-6.3-mapping-zero-inode-test.patch index 900fa9a..1ef25d9 100644 --- a/gdb-6.3-mapping-zero-inode-test.patch +++ b/gdb-6.3-mapping-zero-inode-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-mapping-zero-inode-test.patch -FileName: gdb-6.3-mapping-zero-inode-test.patch - ;; Test GCORE for shmid 0 shared memory mappings. ;;=fedoratest: But it is broken anyway, sometimes the case being tested is not reproducible. diff --git a/gdb-6.3-ppc64displaysymbol-20041124.patch b/gdb-6.3-ppc64displaysymbol-20041124.patch index 7e5a4fd..a09b0fe 100644 --- a/gdb-6.3-ppc64displaysymbol-20041124.patch +++ b/gdb-6.3-ppc64displaysymbol-20041124.patch @@ -3,8 +3,6 @@ From: Andrew Cagney Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-ppc64displaysymbol-20041124.patch -FileName: gdb-6.3-ppc64displaysymbol-20041124.patch - ;; Include the pc's section when doing a symbol lookup so that the ;; correct symbol is found. ;;=push: Write new testcase. @@ -15,10 +13,9 @@ FileName: gdb-6.3-ppc64displaysymbol-20041124.patch address. diff --git a/gdb/printcmd.c b/gdb/printcmd.c -index 0dfea34753..82fe1db9a7 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c -@@ -600,6 +600,14 @@ build_address_symbolic (struct gdbarch *gdbarch, +@@ -587,6 +587,14 @@ build_address_symbolic (struct gdbarch *gdbarch, addr = overlay_mapped_address (addr, section); } } diff --git a/gdb-6.3-ppc64syscall-20040622.patch b/gdb-6.3-ppc64syscall-20040622.patch index 1bdc4b8..e6319be 100644 --- a/gdb-6.3-ppc64syscall-20040622.patch +++ b/gdb-6.3-ppc64syscall-20040622.patch @@ -3,8 +3,6 @@ From: Andrew Cagney Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-ppc64syscall-20040622.patch -FileName: gdb-6.3-ppc64syscall-20040622.patch - ;; Better parse 64-bit PPC system call prologues. ;;=push: Write new testcase. @@ -17,7 +15,6 @@ FileName: gdb-6.3-ppc64syscall-20040622.patch "func_start". diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c -index c5b49c5f46..4d1a241cdf 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -134,6 +134,7 @@ static const char *powerpc_vector_abi_string = "auto"; @@ -28,7 +25,7 @@ index c5b49c5f46..4d1a241cdf 100644 int offset; /* total size of frame --- the distance by which we decrement sp to allocate the frame */ -@@ -1610,7 +1611,6 @@ static CORE_ADDR +@@ -1426,7 +1427,6 @@ static CORE_ADDR skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc, struct rs6000_framedata *fdata) { @@ -36,7 +33,7 @@ index c5b49c5f46..4d1a241cdf 100644 CORE_ADDR last_prologue_pc = pc; CORE_ADDR li_found_pc = 0; gdb_byte buf[4]; -@@ -1629,12 +1629,14 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc, +@@ -1445,12 +1445,14 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc, int minimal_toc_loaded = 0; int prev_insn_was_prologue_insn = 1; int num_skip_non_prologue_insns = 0; @@ -51,7 +48,7 @@ index c5b49c5f46..4d1a241cdf 100644 fdata->saved_gpr = -1; fdata->saved_fpr = -1; fdata->saved_vr = -1; -@@ -1668,6 +1670,55 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc, +@@ -1484,6 +1486,55 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc, break; op = extract_unsigned_integer (buf, 4, byte_order); @@ -107,7 +104,7 @@ index c5b49c5f46..4d1a241cdf 100644 if ((op & 0xfc1fffff) == 0x7c0802a6) { /* mflr Rx */ /* Since shared library / PIC code, which needs to get its -@@ -1857,9 +1908,9 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc, +@@ -1673,9 +1724,9 @@ skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc, CORE_ADDR lim_pc, we have no line table information or the line info tells us that the subroutine call is not part of the line associated with the prologue. */ diff --git a/gdb-6.3-readnever-20050907.patch b/gdb-6.3-readnever-20050907.patch index bb7c408..b70b58f 100644 --- a/gdb-6.3-readnever-20050907.patch +++ b/gdb-6.3-readnever-20050907.patch @@ -3,8 +3,6 @@ From: Andrew Cagney Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-readnever-20050907.patch -FileName: gdb-6.3-readnever-20050907.patch - ;; Add readnever option ;;=push @@ -24,7 +22,6 @@ FileName: gdb-6.3-readnever-20050907.patch Pushed upstream: https://sourceware.org/ml/gdb-cvs/2017-12/msg00007.html diff --git a/gdb/gcore.in b/gdb/gcore.in -index 233c00d366..009e4181dd 100644 --- a/gdb/gcore.in +++ b/gdb/gcore.in @@ -97,7 +97,7 @@ for pid in "$@" diff --git a/gdb-6.3-rh-testversion-20041202.patch b/gdb-6.3-rh-testversion-20041202.patch index 063e37c..ebfbf1b 100644 --- a/gdb-6.3-rh-testversion-20041202.patch +++ b/gdb-6.3-rh-testversion-20041202.patch @@ -1,10 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Elena Zannoni Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: gdb.gdb/selftest.exp: Add matching on specific Red Hat only version - string - -FileName: gdb-6.3-rh-testversion-20041202.patch +Subject: gdb-6.3-rh-testversion-20041202.patch ;; Match the Fedora's version info. ;;=fedora @@ -15,7 +12,6 @@ FileName: gdb-6.3-rh-testversion-20041202.patch string. diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp -index 20f34983ef..4108e088a9 100644 --- a/gdb/testsuite/gdb.gdb/selftest.exp +++ b/gdb/testsuite/gdb.gdb/selftest.exp @@ -53,6 +53,9 @@ proc test_with_self { } { diff --git a/gdb-6.3-test-dtorfix-20050121.patch b/gdb-6.3-test-dtorfix-20050121.patch index 89334e4..6586303 100644 --- a/gdb-6.3-test-dtorfix-20050121.patch +++ b/gdb-6.3-test-dtorfix-20050121.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-test-dtorfix-20050121.patch -FileName: gdb-6.3-test-dtorfix-20050121.patch - ;; Test support of multiple destructors just like multiple constructors ;;=fedoratest diff --git a/gdb-6.3-test-movedir-20050125.patch b/gdb-6.3-test-movedir-20050125.patch index 68767a4..bcce9fa 100644 --- a/gdb-6.3-test-movedir-20050125.patch +++ b/gdb-6.3-test-movedir-20050125.patch @@ -3,8 +3,6 @@ From: Elena Zannoni Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-test-movedir-20050125.patch -FileName: gdb-6.3-test-movedir-20050125.patch - ;; Fix to support executable moving ;;=fedoratest diff --git a/gdb-6.3-test-pie-20050107.patch b/gdb-6.3-test-pie-20050107.patch index 47f58c6..85f133b 100644 --- a/gdb-6.3-test-pie-20050107.patch +++ b/gdb-6.3-test-pie-20050107.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-test-pie-20050107.patch -FileName: gdb-6.3-test-pie-20050107.patch - ;; VSYSCALL and PIE ;;=fedoratest diff --git a/gdb-6.3-test-self-20050110.patch b/gdb-6.3-test-self-20050110.patch index 8817bb9..5662a0e 100644 --- a/gdb-6.3-test-self-20050110.patch +++ b/gdb-6.3-test-self-20050110.patch @@ -3,8 +3,6 @@ From: Elena Zannoni Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-test-self-20050110.patch -FileName: gdb-6.3-test-self-20050110.patch - ;; Get selftest working with sep-debug-info ;;=fedoratest @@ -17,10 +15,9 @@ FileName: gdb-6.3-test-self-20050110.patch * gdb.gdb/observer.exp: Ditto. diff --git a/gdb/testsuite/lib/selftest-support.exp b/gdb/testsuite/lib/selftest-support.exp -index f7169e0955..3c06154192 100644 --- a/gdb/testsuite/lib/selftest-support.exp +++ b/gdb/testsuite/lib/selftest-support.exp -@@ -156,18 +156,18 @@ proc do_self_tests {function body} { +@@ -151,18 +151,18 @@ proc do_self_tests {function body} { } # Remove any old copy lying around. diff --git a/gdb-6.3-threaded-watchpoints2-20050225.patch b/gdb-6.3-threaded-watchpoints2-20050225.patch index 2f54e80..42b89bf 100644 --- a/gdb-6.3-threaded-watchpoints2-20050225.patch +++ b/gdb-6.3-threaded-watchpoints2-20050225.patch @@ -3,8 +3,6 @@ From: Jeff Johnston Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.3-threaded-watchpoints2-20050225.patch -FileName: gdb-6.3-threaded-watchpoints2-20050225.patch - ;; Test sibling threads to set threaded watchpoints for x86 and x86-64 ;;=fedoratest diff --git a/gdb-6.5-BEA-testsuite.patch b/gdb-6.5-BEA-testsuite.patch index dda9b27..84e1c9f 100644 --- a/gdb-6.5-BEA-testsuite.patch +++ b/gdb-6.5-BEA-testsuite.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-BEA-testsuite.patch -FileName: gdb-6.5-BEA-testsuite.patch - ;; Improved testsuite results by the testsuite provided by the courtesy of BEA. ;;=fedoratest: For upstream it should be rewritten as a dejagnu test, the test of no "??" was useful. diff --git a/gdb-6.5-bz109921-DW_AT_decl_file-test.patch b/gdb-6.5-bz109921-DW_AT_decl_file-test.patch index eba1f96..a27c8f3 100644 --- a/gdb-6.5-bz109921-DW_AT_decl_file-test.patch +++ b/gdb-6.5-bz109921-DW_AT_decl_file-test.patch @@ -3,8 +3,6 @@ From: Jan Kratochvil Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-bz109921-DW_AT_decl_file-test.patch -FileName: gdb-6.5-bz109921-DW_AT_decl_file-test.patch - ;; Find symbols properly at their original (included) file (BZ 109921). ;;=fedoratest diff --git a/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch b/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch index 9027d5e..fbeb88c 100644 --- a/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch +++ b/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch @@ -3,8 +3,6 @@ From: Jan Kratochvil Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch -FileName: gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch - ;; Support TLS symbols (+`errno' suggestion if no pthread is found) (BZ 185337). ;;=push+jan: It should be replaced by Infinity project. @@ -44,10 +42,9 @@ glibc-debuginfo-2.7-2.x86_64: /usr/lib/debug/lib64/libc.so.6.debug: <81a8> DW_AT_MIPS_linkage_name: (indirect string, offset: 0x2808): *__GI___errno_location diff --git a/gdb/printcmd.c b/gdb/printcmd.c -index 82fe1db9a7..c921022a59 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c -@@ -1203,6 +1203,10 @@ print_command_1 (const char *exp, int voidprint) +@@ -1190,6 +1190,10 @@ print_command_1 (const char *exp, int voidprint) if (exp && *exp) { diff --git a/gdb-6.5-bz203661-emit-relocs.patch b/gdb-6.5-bz203661-emit-relocs.patch index dd2db52..75ca84f 100644 --- a/gdb-6.5-bz203661-emit-relocs.patch +++ b/gdb-6.5-bz203661-emit-relocs.patch @@ -3,16 +3,13 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-bz203661-emit-relocs.patch -FileName: gdb-6.5-bz203661-emit-relocs.patch - ;; Fix debuginfo addresses resolving for --emit-relocs Linux kernels (BZ 203661). ;;=push+jan: There was some mail thread about it, this patch may be a hack. diff --git a/gdb/symfile.c b/gdb/symfile.c -index 7bc03fbb8f..661125dec5 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c -@@ -3492,6 +3492,12 @@ default_symfile_relocate (struct objfile *objfile, asection *sectp, +@@ -3584,6 +3584,12 @@ default_symfile_relocate (struct objfile *objfile, asection *sectp, DWO file. */ bfd *abfd = sectp->owner; diff --git a/gdb-6.5-bz216711-clone-is-outermost.patch b/gdb-6.5-bz216711-clone-is-outermost.patch index d98cdcb..e90bd77 100644 --- a/gdb-6.5-bz216711-clone-is-outermost.patch +++ b/gdb-6.5-bz216711-clone-is-outermost.patch @@ -3,8 +3,6 @@ From: Jan Kratochvil Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-bz216711-clone-is-outermost.patch -FileName: gdb-6.5-bz216711-clone-is-outermost.patch - ;; Fix bogus 0x0 unwind of the thread's topmost function clone(3) (BZ 216711). ;;=fedora @@ -34,7 +32,6 @@ instead. Port to GDB-6.7. diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c -index 2bd3d31b75..2623bae42d 100644 --- a/gdb/amd64-linux-tdep.c +++ b/gdb/amd64-linux-tdep.c @@ -291,6 +291,80 @@ amd64_linux_register_reggroup_p (struct gdbarch *gdbarch, int regnum, @@ -128,10 +125,9 @@ index 2bd3d31b75..2623bae42d 100644 set_gdbarch_write_pc (gdbarch, amd64_linux_write_pc); diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c -index d555465c2f..186690af30 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c -@@ -2597,6 +2597,7 @@ amd64_frame_unwind_stop_reason (struct frame_info *this_frame, +@@ -2595,6 +2595,7 @@ amd64_frame_unwind_stop_reason (struct frame_info *this_frame, { struct amd64_frame_cache *cache = amd64_frame_cache (this_frame, this_cache); @@ -139,7 +135,7 @@ index d555465c2f..186690af30 100644 if (!cache->base_p) return UNWIND_UNAVAILABLE; -@@ -2605,6 +2606,10 @@ amd64_frame_unwind_stop_reason (struct frame_info *this_frame, +@@ -2603,6 +2604,10 @@ amd64_frame_unwind_stop_reason (struct frame_info *this_frame, if (cache->base == 0) return UNWIND_OUTERMOST; @@ -150,7 +146,7 @@ index d555465c2f..186690af30 100644 return UNWIND_NO_REASON; } -@@ -2739,6 +2744,7 @@ amd64_sigtramp_frame_this_id (struct frame_info *this_frame, +@@ -2737,6 +2742,7 @@ amd64_sigtramp_frame_this_id (struct frame_info *this_frame, { struct amd64_frame_cache *cache = amd64_sigtramp_frame_cache (this_frame, this_cache); @@ -158,7 +154,7 @@ index d555465c2f..186690af30 100644 if (!cache->base_p) (*this_id) = frame_id_build_unavailable_stack (get_frame_pc (this_frame)); -@@ -2747,6 +2753,11 @@ amd64_sigtramp_frame_this_id (struct frame_info *this_frame, +@@ -2745,6 +2751,11 @@ amd64_sigtramp_frame_this_id (struct frame_info *this_frame, /* This marks the outermost frame. */ return; } @@ -171,10 +167,9 @@ index d555465c2f..186690af30 100644 (*this_id) = frame_id_build (cache->base + 16, get_frame_pc (this_frame)); } diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c -index 646f305edc..a0e872c01f 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c -@@ -8428,6 +8428,9 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) +@@ -8404,6 +8404,9 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) tdep->xsave_xcr0_offset = -1; @@ -185,7 +180,6 @@ index 646f305edc..a0e872c01f 100644 set_gdbarch_type_align (gdbarch, i386_type_align); diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h -index 81a93f11af..461ae06258 100644 --- a/gdb/i386-tdep.h +++ b/gdb/i386-tdep.h @@ -251,6 +251,9 @@ struct gdbarch_tdep diff --git a/gdb-6.5-bz218379-ppc-solib-trampoline-test.patch b/gdb-6.5-bz218379-ppc-solib-trampoline-test.patch index abc0a0d..8a648a3 100644 --- a/gdb-6.5-bz218379-ppc-solib-trampoline-test.patch +++ b/gdb-6.5-bz218379-ppc-solib-trampoline-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-bz218379-ppc-solib-trampoline-test.patch -FileName: gdb-6.5-bz218379-ppc-solib-trampoline-test.patch - ;; Test sideeffects of skipping ppc .so libs trampolines (BZ 218379). ;;=fedoratest diff --git a/gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch b/gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch index fc5ca9a..45d8570 100644 --- a/gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch +++ b/gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch @@ -3,15 +3,12 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch -FileName: gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch - ;; Fix lockup on trampoline vs. its function lookup; unreproducible (BZ 218379). ;;=fedora https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=218379 diff --git a/gdb/symtab.c b/gdb/symtab.c -index e1f033d1d8..1d9e0b9180 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -3165,6 +3165,13 @@ find_pc_sect_line (CORE_ADDR pc, struct obj_section *section, int notcurrent) diff --git a/gdb-6.5-bz243845-stale-testing-zombie-test.patch b/gdb-6.5-bz243845-stale-testing-zombie-test.patch index ae32cff..a0520d7 100644 --- a/gdb-6.5-bz243845-stale-testing-zombie-test.patch +++ b/gdb-6.5-bz243845-stale-testing-zombie-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-bz243845-stale-testing-zombie-test.patch -FileName: gdb-6.5-bz243845-stale-testing-zombie-test.patch - ;; Test leftover zombie process (BZ 243845). ;;=fedoratest diff --git a/gdb-6.5-gcore-buffer-limit-test.patch b/gdb-6.5-gcore-buffer-limit-test.patch index 59fc108..f4ae65e 100644 --- a/gdb-6.5-gcore-buffer-limit-test.patch +++ b/gdb-6.5-gcore-buffer-limit-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-gcore-buffer-limit-test.patch -FileName: gdb-6.5-gcore-buffer-limit-test.patch - ;; Test gcore memory and time requirements for large inferiors. ;;=fedoratest diff --git a/gdb-6.5-ia64-libunwind-leak-test.patch b/gdb-6.5-ia64-libunwind-leak-test.patch index 51190cb..8a8a43a 100644 --- a/gdb-6.5-ia64-libunwind-leak-test.patch +++ b/gdb-6.5-ia64-libunwind-leak-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-ia64-libunwind-leak-test.patch -FileName: gdb-6.5-ia64-libunwind-leak-test.patch - ;; Test ia64 memory leaks of the code using libunwind. ;;=fedoratest diff --git a/gdb-6.5-last-address-space-byte-test.patch b/gdb-6.5-last-address-space-byte-test.patch index dce58d8..9c5779f 100644 --- a/gdb-6.5-last-address-space-byte-test.patch +++ b/gdb-6.5-last-address-space-byte-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-last-address-space-byte-test.patch -FileName: gdb-6.5-last-address-space-byte-test.patch - ;; Testcase for deadlocking on last address space byte; for corrupted backtraces. ;;=fedoratest diff --git a/gdb-6.5-missed-trap-on-step-test.patch b/gdb-6.5-missed-trap-on-step-test.patch index bf1873c..06a9f7e 100644 --- a/gdb-6.5-missed-trap-on-step-test.patch +++ b/gdb-6.5-missed-trap-on-step-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-missed-trap-on-step-test.patch -FileName: gdb-6.5-missed-trap-on-step-test.patch - ;; Test hiding unexpected breakpoints on intentional step commands. ;;=fedoratest diff --git a/gdb-6.5-readline-long-line-crash-test.patch b/gdb-6.5-readline-long-line-crash-test.patch index 1dd87d0..5410899 100644 --- a/gdb-6.5-readline-long-line-crash-test.patch +++ b/gdb-6.5-readline-long-line-crash-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-readline-long-line-crash-test.patch -FileName: gdb-6.5-readline-long-line-crash-test.patch - ;; Fix readline segfault on excessively long hand-typed lines. ;;=fedoratest diff --git a/gdb-6.5-section-num-fixup-test.patch b/gdb-6.5-section-num-fixup-test.patch index 787d4d4..012ba92 100644 --- a/gdb-6.5-section-num-fixup-test.patch +++ b/gdb-6.5-section-num-fixup-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-section-num-fixup-test.patch -FileName: gdb-6.5-section-num-fixup-test.patch - ;; Test a crash on libraries missing the .text section. ;;=fedoratest diff --git a/gdb-6.5-sharedlibrary-path.patch b/gdb-6.5-sharedlibrary-path.patch index 66e6fdb..6f31e88 100644 --- a/gdb-6.5-sharedlibrary-path.patch +++ b/gdb-6.5-sharedlibrary-path.patch @@ -3,8 +3,6 @@ From: Jan Kratochvil Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.5-sharedlibrary-path.patch -FileName: gdb-6.5-sharedlibrary-path.patch - ;; Fix TLS symbols resolving for shared libraries with a relative pathname. ;; The testsuite needs `gdb-6.5-tls-of-separate-debuginfo.patch'. ;;=fedoratest: One should recheck if it is really fixed upstream. diff --git a/gdb-6.6-buildid-locate-core-as-arg.patch b/gdb-6.6-buildid-locate-core-as-arg.patch index b9c8788..40938a5 100644 --- a/gdb-6.6-buildid-locate-core-as-arg.patch +++ b/gdb-6.6-buildid-locate-core-as-arg.patch @@ -1,9 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: print a more useful error message for "gdb core" - -FileName: gdb-6.6-buildid-locate-core-as-arg.patch +Subject: gdb-6.6-buildid-locate-core-as-arg.patch ;;=push+jan @@ -64,7 +62,6 @@ Http://sourceware.org/ml/gdb-patches/2010-01/msg00517.html user did "gdb core". diff --git a/gdb/common/common-exceptions.h b/gdb/common/common-exceptions.h -index 15c85e28ab..9fe2375bce 100644 --- a/gdb/common/common-exceptions.h +++ b/gdb/common/common-exceptions.h @@ -104,6 +104,9 @@ enum errors { @@ -78,7 +75,6 @@ index 15c85e28ab..9fe2375bce 100644 NR_ERRORS }; diff --git a/gdb/exec.c b/gdb/exec.c -index 3023ff7e5a..8308ec3d6f 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -36,6 +36,7 @@ @@ -121,7 +117,6 @@ index 3023ff7e5a..8308ec3d6f 100644 if (build_section_table (exec_bfd, §ions, §ions_end)) diff --git a/gdb/main.c b/gdb/main.c -index 189266f90e..4caefe2011 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -447,6 +447,37 @@ struct cmdarg diff --git a/gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch b/gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch index 543a3ba..a25057e 100644 --- a/gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch +++ b/gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch @@ -4,8 +4,6 @@ Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch -FileName: gdb-6.6-buildid-locate-misleading-warning-missing-debuginfo-rhbz981154.patch - ;; Fix 'gdb gives highly misleading error when debuginfo pkg is present, ;; but not corresponding binary pkg' (RH BZ 981154). ;;=push+jan @@ -28,7 +26,6 @@ Comments by Sergio Durigan Junior : valid and doesn't print the necessary warning ("Try: yum install ..."). diff --git a/gdb/build-id.c b/gdb/build-id.c -index 4e1477e950..5af9d66899 100644 --- a/gdb/build-id.c +++ b/gdb/build-id.c @@ -581,7 +581,10 @@ build_id_to_debug_bfd (size_t build_id_len, const bfd_byte *build_id, diff --git a/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch b/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch index 89dd35d..375b178 100644 --- a/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch +++ b/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch @@ -3,13 +3,10 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch -FileName: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch - ;; Workaround librpm BZ 643031 due to its unexpected exit() calls (BZ 642879). ;;=push+jan diff --git a/gdb/build-id.c b/gdb/build-id.c -index 39e741cf58..4e1477e950 100644 --- a/gdb/build-id.c +++ b/gdb/build-id.c @@ -652,6 +652,19 @@ build_id_to_filename (const struct bfd_build_id *build_id, char **link_return) @@ -33,7 +30,6 @@ index 39e741cf58..4e1477e950 100644 and avoid their duplicities during a single inferior run. */ diff --git a/gdb/proc-service.list b/gdb/proc-service.list -index 53f7ed8b1e..323f5e83c2 100644 --- a/gdb/proc-service.list +++ b/gdb/proc-service.list @@ -37,4 +37,7 @@ diff --git a/gdb-6.6-buildid-locate-rpm-scl.patch b/gdb-6.6-buildid-locate-rpm-scl.patch index dc6da5f..7e39488 100644 --- a/gdb-6.6-buildid-locate-rpm-scl.patch +++ b/gdb-6.6-buildid-locate-rpm-scl.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.6-buildid-locate-rpm-scl.patch -FileName: gdb-6.6-buildid-locate-rpm-scl.patch - ;; [SCL] Skip deprecated .gdb_index warning for Red Hat built files (BZ 953585). ;;=push+jan @@ -12,7 +10,6 @@ warning: Skipping deprecated .gdb_index section https://bugzilla.redhat.com/show_bug.cgi?id=953585 diff --git a/gdb/build-id.c b/gdb/build-id.c -index 5af9d66899..2ff93191c7 100644 --- a/gdb/build-id.c +++ b/gdb/build-id.c @@ -689,7 +689,11 @@ static int missing_rpm_list_entries; @@ -100,10 +97,9 @@ index 5af9d66899..2ff93191c7 100644 { return strcoll (*ap, *bp); diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index 328a07df82..45c22450b1 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -3478,6 +3478,16 @@ read_index_from_section (struct objfile *objfile, +@@ -3469,6 +3469,16 @@ read_gdb_index_from_section (struct objfile *objfile, "set use-deprecated-index-sections on". */ if (version < 6 && !deprecated_ok) { @@ -120,7 +116,7 @@ index 328a07df82..45c22450b1 100644 static int warning_printed = 0; if (!warning_printed) { -@@ -3489,6 +3499,10 @@ to use the section anyway."), +@@ -3480,6 +3490,10 @@ to use the section anyway."), warning_printed = 1; } return 0; diff --git a/gdb-6.6-buildid-locate-rpm.patch b/gdb-6.6-buildid-locate-rpm.patch index da8f81d..d5ec4b0 100644 --- a/gdb-6.6-buildid-locate-rpm.patch +++ b/gdb-6.6-buildid-locate-rpm.patch @@ -3,15 +3,12 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.6-buildid-locate-rpm.patch -FileName: gdb-6.6-buildid-locate-rpm.patch - ;;=push+jan diff --git a/gdb/aclocal.m4 b/gdb/aclocal.m4 -index e0d38ea267..da5ac313e3 100644 --- a/gdb/aclocal.m4 +++ b/gdb/aclocal.m4 -@@ -12,6 +12,221 @@ +@@ -11,7 +11,223 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @@ -229,12 +226,13 @@ index e0d38ea267..da5ac313e3 100644 + +AS_VAR_IF([$1], [""], [$5], [$4])dnl +])# PKG_CHECK_VAR ++ + m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) + # AM_AUX_DIR_EXPAND -*- Autoconf -*- - # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. + # Copyright (C) 2001-2017 Free Software Foundation, Inc. diff --git a/gdb/build-id.c b/gdb/build-id.c -index 7b9cbca14e..39e741cf58 100644 --- a/gdb/build-id.c +++ b/gdb/build-id.c @@ -35,6 +35,8 @@ @@ -680,7 +678,6 @@ index 7b9cbca14e..39e741cf58 100644 /* See build-id.h. */ diff --git a/gdb/config.in b/gdb/config.in -index aa46f07410..404e0bbddc 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -33,6 +33,9 @@ @@ -704,10 +701,9 @@ index aa46f07410..404e0bbddc 100644 #undef HAVE_LIBUNWIND_IA64_H diff --git a/gdb/configure b/gdb/configure -index 4186f7e160..30a6e86ff8 100755 --- a/gdb/configure +++ b/gdb/configure -@@ -716,6 +716,11 @@ PKGVERSION +@@ -749,6 +749,11 @@ CODESIGN_CERT HAVE_NATIVE_GCORE_TARGET TARGET_OBS subdirs @@ -719,7 +715,7 @@ index 4186f7e160..30a6e86ff8 100755 GDB_DATADIR DEBUGDIR MAKEINFO_EXTRA_FLAGS -@@ -820,6 +825,7 @@ with_gdb_datadir +@@ -853,6 +858,7 @@ with_gdb_datadir with_relocated_sources with_auto_load_dir with_auto_load_safe_path @@ -727,7 +723,7 @@ index 4186f7e160..30a6e86ff8 100755 enable_targets enable_64_bit_bfd enable_gdbcli -@@ -878,6 +884,11 @@ CCC +@@ -912,6 +918,11 @@ CCC CPP MAKEINFO MAKEINFOFLAGS @@ -739,7 +735,7 @@ index 4186f7e160..30a6e86ff8 100755 YACC YFLAGS XMKMF' -@@ -1548,6 +1559,8 @@ Optional Packages: +@@ -1583,6 +1594,8 @@ Optional Packages: [--with-auto-load-dir] --without-auto-load-safe-path do not restrict auto-loaded files locations @@ -748,7 +744,7 @@ index 4186f7e160..30a6e86ff8 100755 --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets --with-curses use the curses library instead of the termcap library -@@ -1605,6 +1618,13 @@ Some influential environment variables: +@@ -1640,6 +1653,13 @@ Some influential environment variables: MAKEINFO Parent configure detects if it is of sufficient version. MAKEINFOFLAGS Parameters for MAKEINFO. @@ -759,10 +755,10 @@ index 4186f7e160..30a6e86ff8 100755 + path overriding pkg-config's built-in search path + RPM_CFLAGS C compiler flags for RPM, overriding pkg-config + RPM_LIBS linker flags for RPM, overriding pkg-config - YACC The `Yet Another C Compiler' implementation to use. Defaults to - the first program found out of: `bison -y', `byacc', `yacc'. - YFLAGS The list of arguments that will be passed by default to $YACC. -@@ -6492,6 +6512,494 @@ _ACEOF + YACC The `Yet Another Compiler Compiler' implementation to use. + Defaults to the first program found out of: `bison -y', `byacc', + `yacc'. +@@ -6575,6 +6595,494 @@ _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5 $as_echo "$with_auto_load_safe_path" >&6; } @@ -1258,10 +1254,9 @@ index 4186f7e160..30a6e86ff8 100755 subdirs="$subdirs testsuite" diff --git a/gdb/configure.ac b/gdb/configure.ac -index e1f630cd38..39a777f647 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac -@@ -167,6 +167,199 @@ AC_DEFINE_DIR(AUTO_LOAD_SAFE_PATH, escape_dir, +@@ -166,6 +166,199 @@ AC_DEFINE_DIR(AUTO_LOAD_SAFE_PATH, escape_dir, [Directories safe to hold auto-loaded files.]) AC_MSG_RESULT([$with_auto_load_safe_path]) @@ -1462,10 +1457,9 @@ index e1f630cd38..39a777f647 100644 # Check whether to support alternative target configurations diff --git a/gdb/corelow.c b/gdb/corelow.c -index 76945950b9..4481128156 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c -@@ -368,7 +368,7 @@ build_id_locate_exec (int from_tty) +@@ -366,7 +366,7 @@ build_id_locate_exec (int from_tty) symfile_objfile->flags |= OBJF_BUILD_ID_CORE_LOADED; } else @@ -1475,7 +1469,6 @@ index 76945950b9..4481128156 100644 do_cleanups (back_to); diff --git a/gdb/event-top.c b/gdb/event-top.c -index 5852089f09..d9379b42c5 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -40,6 +40,7 @@ @@ -1508,10 +1501,9 @@ index 5852089f09..d9379b42c5 100644 } diff --git a/gdb/symfile.h b/gdb/symfile.h -index dbd0370cf9..adcf1fdaae 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h -@@ -538,6 +538,8 @@ void map_symbol_filenames (symbol_filename_ftype *fun, void *data, +@@ -540,6 +540,8 @@ void map_symbol_filenames (symbol_filename_ftype *fun, void *data, /* build-id support. */ extern struct bfd_build_id *build_id_addr_get (CORE_ADDR addr); extern void debug_print_missing (const char *binary, const char *debug); diff --git a/gdb-6.6-buildid-locate-solib-missing-ids.patch b/gdb-6.6-buildid-locate-solib-missing-ids.patch index 40b4071..2b96166 100644 --- a/gdb-6.6-buildid-locate-solib-missing-ids.patch +++ b/gdb-6.6-buildid-locate-solib-missing-ids.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.6-buildid-locate-solib-missing-ids.patch -FileName: gdb-6.6-buildid-locate-solib-missing-ids.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). @@ -14,7 +12,6 @@ gdb returns an incorrect back trace when applying a debuginfo https://bugzilla.redhat.com/show_bug.cgi?id=1339862 diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c -index aa95bc1ce6..9a7ef10963 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -1358,14 +1358,27 @@ svr4_read_so_list (CORE_ADDR lm, CORE_ADDR prev_lm, diff --git a/gdb-6.6-buildid-locate.patch b/gdb-6.6-buildid-locate.patch index c2b4209..618f41a 100644 --- a/gdb-6.6-buildid-locate.patch +++ b/gdb-6.6-buildid-locate.patch @@ -3,13 +3,10 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.6-buildid-locate.patch -FileName: gdb-6.6-buildid-locate.patch - ;; New locating of the matching binaries from the pure core file (build-id). ;;=push+jan diff --git a/gdb/build-id.c b/gdb/build-id.c -index c8eacbd1e8..7b9cbca14e 100644 --- a/gdb/build-id.c +++ b/gdb/build-id.c @@ -26,11 +26,67 @@ @@ -833,7 +830,6 @@ index c8eacbd1e8..7b9cbca14e 100644 + gdb::observers::executable_changed.attach (debug_print_executable_changed); +} diff --git a/gdb/build-id.h b/gdb/build-id.h -index 15fb609409..1f62db0239 100644 --- a/gdb/build-id.h +++ b/gdb/build-id.h @@ -22,9 +22,10 @@ @@ -872,7 +868,6 @@ index 15fb609409..1f62db0239 100644 #endif /* BUILD_ID_H */ diff --git a/gdb/coffread.c b/gdb/coffread.c -index f24ec0713a..5c1c3e61ea 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -733,7 +733,8 @@ coff_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) @@ -886,7 +881,6 @@ index f24ec0713a..5c1c3e61ea 100644 if (debugfile.empty ()) debugfile = find_separate_debug_file_by_debuglink (objfile); diff --git a/gdb/corelow.c b/gdb/corelow.c -index c6175279da..76945950b9 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -45,6 +45,10 @@ @@ -900,7 +894,7 @@ index c6175279da..76945950b9 100644 #ifndef O_LARGEFILE #define O_LARGEFILE 0 -@@ -323,6 +327,54 @@ add_to_thread_list (bfd *abfd, asection *asect, void *reg_sect_arg) +@@ -321,6 +325,54 @@ add_to_thread_list (bfd *abfd, asection *asect, void *reg_sect_arg) inferior_ptid = ptid; /* Yes, make it current. */ } @@ -918,7 +912,7 @@ index c6175279da..76945950b9 100644 + if (exec_bfd != NULL || symfile_objfile != NULL) + return; + -+ if (target_auxv_search (target_stack, AT_ENTRY, &at_entry) <= 0) ++ if (target_auxv_search (current_top_target (), AT_ENTRY, &at_entry) <= 0) + return; + + build_id = build_id_addr_get (at_entry); @@ -955,8 +949,8 @@ index c6175279da..76945950b9 100644 /* Issue a message saying we have no core to debug, if FROM_TTY. */ static void -@@ -466,6 +518,14 @@ core_target_open (const char *arg, int from_tty) - switch_to_thread (thread->ptid); +@@ -464,6 +516,14 @@ core_target_open (const char *arg, int from_tty) + switch_to_thread (thread); } + /* Find the build_id identifiers. If it gets executed after @@ -970,7 +964,7 @@ index c6175279da..76945950b9 100644 post_create_inferior (target, from_tty); /* Now go through the target stack looking for threads since there -@@ -1068,4 +1128,11 @@ void +@@ -1066,4 +1126,11 @@ void _initialize_corelow (void) { add_target (core_target_info, core_target_open, filename_completer); @@ -983,10 +977,9 @@ index c6175279da..76945950b9 100644 + &setlist, &showlist); } diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo -index 28f083f96e..403f5ca658 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo -@@ -19558,6 +19558,27 @@ information files. +@@ -19570,6 +19570,27 @@ information files. @end table @@ -1015,10 +1008,9 @@ index 28f083f96e..403f5ca658 100644 @cindex debug link sections A debug link is a special section of the executable file named diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index 4006f4a48f..266740f74c 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -2690,7 +2690,7 @@ dwarf2_get_dwz_file (struct dwarf2_per_objfile *dwarf2_per_objfile) +@@ -2683,7 +2683,7 @@ dwarf2_get_dwz_file (struct dwarf2_per_objfile *dwarf2_per_objfile) } if (dwz_bfd == NULL) @@ -1028,7 +1020,6 @@ index 4006f4a48f..266740f74c 100644 if (dwz_bfd == NULL) error (_("could not find '.gnu_debugaltlink' file for %s"), diff --git a/gdb/elfread.c b/gdb/elfread.c -index b4b4a1b24c..0824e37bf1 100644 --- a/gdb/elfread.c +++ b/gdb/elfread.c @@ -1290,7 +1290,9 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) @@ -1054,7 +1045,6 @@ index b4b4a1b24c..0824e37bf1 100644 } diff --git a/gdb/objfiles.h b/gdb/objfiles.h -index 28e66eca36..5ab0e33fb6 100644 --- a/gdb/objfiles.h +++ b/gdb/objfiles.h @@ -470,6 +470,10 @@ struct objfile @@ -1069,7 +1059,6 @@ index 28e66eca36..5ab0e33fb6 100644 extern struct gdbarch *get_objfile_arch (const struct objfile *); diff --git a/gdb/python/py-objfile.c b/gdb/python/py-objfile.c -index c2b40ff535..112cbf6560 100644 --- a/gdb/python/py-objfile.c +++ b/gdb/python/py-objfile.c @@ -137,7 +137,7 @@ objfpy_get_build_id (PyObject *self, void *closure) @@ -1091,7 +1080,6 @@ index c2b40ff535..112cbf6560 100644 continue; if (objfpy_build_id_matches (obfd_build_id, build_id)) diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c -index f9936b36de..aa95bc1ce6 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -45,6 +45,7 @@ @@ -1158,10 +1146,9 @@ index f9936b36de..aa95bc1ce6 100644 /* If this entry has no name, or its name matches the name for the main executable, don't include it in the list. */ diff --git a/gdb/symfile.h b/gdb/symfile.h -index d9185092ee..dbd0370cf9 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h -@@ -535,6 +535,10 @@ void expand_symtabs_matching +@@ -537,6 +537,10 @@ void expand_symtabs_matching void map_symbol_filenames (symbol_filename_ftype *fun, void *data, int need_fullname); @@ -1173,7 +1160,6 @@ index d9185092ee..dbd0370cf9 100644 /* Names for a dwarf2 debugging section. The field NORMAL is the normal diff --git a/gdb/testsuite/gdb.base/corefile.exp b/gdb/testsuite/gdb.base/corefile.exp -index 63a7fa8e5b..8a4fab77df 100644 --- a/gdb/testsuite/gdb.base/corefile.exp +++ b/gdb/testsuite/gdb.base/corefile.exp @@ -311,3 +311,33 @@ gdb_test_multiple "core-file $corefile" $test { @@ -1211,7 +1197,6 @@ index 63a7fa8e5b..8a4fab77df 100644 + pass $wholetest +} diff --git a/gdb/testsuite/gdb.base/new-ui-pending-input.exp b/gdb/testsuite/gdb.base/new-ui-pending-input.exp -index a6dc14e3c9..54a10df155 100644 --- a/gdb/testsuite/gdb.base/new-ui-pending-input.exp +++ b/gdb/testsuite/gdb.base/new-ui-pending-input.exp @@ -62,6 +62,7 @@ proc test_command_line_new_ui_pending_input {} { @@ -1223,10 +1208,9 @@ index a6dc14e3c9..54a10df155 100644 append options " -ex \"b $bpline\"" append options " -ex \"run\"" diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp -index 0f05d043f2..becda6a001 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp -@@ -1694,6 +1694,16 @@ proc default_gdb_start { } { +@@ -1695,6 +1695,16 @@ proc default_gdb_start { } { warning "Couldn't set the width to 0." } } @@ -1244,7 +1228,6 @@ index 0f05d043f2..becda6a001 100644 } diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp -index 851e490f4d..469ca592ab 100644 --- a/gdb/testsuite/lib/mi-support.exp +++ b/gdb/testsuite/lib/mi-support.exp @@ -309,6 +309,16 @@ proc default_mi_gdb_start { args } { diff --git a/gdb-6.6-bz229517-gcore-without-terminal.patch b/gdb-6.6-bz229517-gcore-without-terminal.patch index fa78c96..b4ddc9f 100644 --- a/gdb-6.6-bz229517-gcore-without-terminal.patch +++ b/gdb-6.6-bz229517-gcore-without-terminal.patch @@ -3,8 +3,6 @@ From: Jan Kratochvil Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.6-bz229517-gcore-without-terminal.patch -FileName: gdb-6.6-bz229517-gcore-without-terminal.patch - ;; Allow running `/usr/bin/gcore' with provided but inaccessible tty (BZ 229517). ;;=fedoratest diff --git a/gdb-6.6-bz230000-power6-disassembly-test.patch b/gdb-6.6-bz230000-power6-disassembly-test.patch index 3cffdd5..f40b6f6 100644 --- a/gdb-6.6-bz230000-power6-disassembly-test.patch +++ b/gdb-6.6-bz230000-power6-disassembly-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.6-bz230000-power6-disassembly-test.patch -FileName: gdb-6.6-bz230000-power6-disassembly-test.patch - ;; Testcase for PPC Power6/DFP instructions disassembly (BZ 230000). ;;=fedoratest diff --git a/gdb-6.6-bz237572-ppc-atomic-sequence-test.patch b/gdb-6.6-bz237572-ppc-atomic-sequence-test.patch index 087a0cc..89f2d64 100644 --- a/gdb-6.6-bz237572-ppc-atomic-sequence-test.patch +++ b/gdb-6.6-bz237572-ppc-atomic-sequence-test.patch @@ -3,8 +3,6 @@ From: Jan Kratochvil Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.6-bz237572-ppc-atomic-sequence-test.patch -FileName: gdb-6.6-bz237572-ppc-atomic-sequence-test.patch - ;; Support for stepping over PPC atomic instruction sequences (BZ 237572). ;;=fedoratest diff --git a/gdb-6.6-scheduler_locking-step-is-default.patch b/gdb-6.6-scheduler_locking-step-is-default.patch index 47d73d0..ebc4aa6 100644 --- a/gdb-6.6-scheduler_locking-step-is-default.patch +++ b/gdb-6.6-scheduler_locking-step-is-default.patch @@ -3,16 +3,13 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.6-scheduler_locking-step-is-default.patch -FileName: gdb-6.6-scheduler_locking-step-is-default.patch - ;; Make upstream `set scheduler-locking step' as default. ;;=push+jan: How much is scheduler-locking relevant after non-stop? diff --git a/gdb/infrun.c b/gdb/infrun.c -index df19478ef3..78ffc10b23 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c -@@ -2202,7 +2202,7 @@ static const char *const scheduler_enums[] = { +@@ -2193,7 +2193,7 @@ static const char *const scheduler_enums[] = { schedlock_replay, NULL }; @@ -22,7 +19,6 @@ index df19478ef3..78ffc10b23 100644 show_scheduler_mode (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) diff --git a/gdb/testsuite/gdb.mi/mi-cli.exp b/gdb/testsuite/gdb.mi/mi-cli.exp -index 6ce6439eb7..4f405b5fc1 100644 --- a/gdb/testsuite/gdb.mi/mi-cli.exp +++ b/gdb/testsuite/gdb.mi/mi-cli.exp @@ -199,7 +199,7 @@ mi_expect_stop "breakpoint-hit" "main" "" ".*basics.c" \ @@ -35,7 +31,6 @@ index 6ce6439eb7..4f405b5fc1 100644 # Test that the new current source line is output to the console diff --git a/gdb/testsuite/gdb.mi/mi-console.exp b/gdb/testsuite/gdb.mi/mi-console.exp -index ec4b006018..05cf7fb889 100644 --- a/gdb/testsuite/gdb.mi/mi-console.exp +++ b/gdb/testsuite/gdb.mi/mi-console.exp @@ -60,6 +60,9 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb @@ -49,7 +44,6 @@ index ec4b006018..05cf7fb889 100644 # we are semihosted (e.g., the sim or a remote target that supports # the File I/O remote protocol extension), we see the target I/O diff --git a/gdb/testsuite/gdb.mi/mi-logging.exp b/gdb/testsuite/gdb.mi/mi-logging.exp -index b09cde2d37..e51d46edb5 100644 --- a/gdb/testsuite/gdb.mi/mi-logging.exp +++ b/gdb/testsuite/gdb.mi/mi-logging.exp @@ -53,7 +53,7 @@ close $chan @@ -71,7 +65,6 @@ index b09cde2d37..e51d46edb5 100644 } else { fail "redirect log file contents" diff --git a/gdb/testsuite/gdb.opt/inline-cmds.exp b/gdb/testsuite/gdb.opt/inline-cmds.exp -index 5227d63f5d..782f31c080 100644 --- a/gdb/testsuite/gdb.opt/inline-cmds.exp +++ b/gdb/testsuite/gdb.opt/inline-cmds.exp @@ -331,7 +331,7 @@ proc mi_cli_step {cli_output_re message} { diff --git a/gdb-6.6-testsuite-timeouts.patch b/gdb-6.6-testsuite-timeouts.patch index 8085776..a896313 100644 --- a/gdb-6.6-testsuite-timeouts.patch +++ b/gdb-6.6-testsuite-timeouts.patch @@ -3,13 +3,10 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.6-testsuite-timeouts.patch -FileName: gdb-6.6-testsuite-timeouts.patch - ;; Avoid too long timeouts on failing cases of "annota1.exp annota3.exp". ;;=fedoratest diff --git a/gdb/testsuite/gdb.base/annota1.exp b/gdb/testsuite/gdb.base/annota1.exp -index 4b34aa84f2..40e08a4db2 100644 --- a/gdb/testsuite/gdb.base/annota1.exp +++ b/gdb/testsuite/gdb.base/annota1.exp @@ -39,6 +39,8 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb @@ -22,7 +19,6 @@ index 4b34aa84f2..40e08a4db2 100644 # to continue" prompts. gdb_test_no_output "set height 0" diff --git a/gdb/testsuite/gdb.base/annota3.exp b/gdb/testsuite/gdb.base/annota3.exp -index a899be69ea..af472af8a5 100644 --- a/gdb/testsuite/gdb.base/annota3.exp +++ b/gdb/testsuite/gdb.base/annota3.exp @@ -38,6 +38,8 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb diff --git a/gdb-6.7-charsign-test.patch b/gdb-6.7-charsign-test.patch index 059c774..8c89b13 100644 --- a/gdb-6.7-charsign-test.patch +++ b/gdb-6.7-charsign-test.patch @@ -3,8 +3,6 @@ From: Jan Kratochvil Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.7-charsign-test.patch -FileName: gdb-6.7-charsign-test.patch - ;; Fix displaying of numeric char arrays as strings (BZ 224128). ;;=fedoratest: But it is failing anyway, one should check the behavior more. diff --git a/gdb-6.7-ppc-clobbered-registers-O2-test.patch b/gdb-6.7-ppc-clobbered-registers-O2-test.patch index e06827e..08ee2f9 100644 --- a/gdb-6.7-ppc-clobbered-registers-O2-test.patch +++ b/gdb-6.7-ppc-clobbered-registers-O2-test.patch @@ -3,8 +3,6 @@ From: Jan Kratochvil Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.7-ppc-clobbered-registers-O2-test.patch -FileName: gdb-6.7-ppc-clobbered-registers-O2-test.patch - ;; Test PPC hiding of call-volatile parameter register. ;;=fedoratest diff --git a/gdb-6.7-testsuite-stable-results.patch b/gdb-6.7-testsuite-stable-results.patch index 234f6f3..ec8f9c2 100644 --- a/gdb-6.7-testsuite-stable-results.patch +++ b/gdb-6.7-testsuite-stable-results.patch @@ -3,8 +3,6 @@ From: Jan Kratochvil Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.7-testsuite-stable-results.patch -FileName: gdb-6.7-testsuite-stable-results.patch - ;; Testsuite fixes for more stable/comparable results. ;;=fedoratest @@ -28,7 +26,6 @@ gdb-6.8.50.20090209/gdb/testsuite/gdb.base/annota1.exp: frames-invalid can happen asynchronously. diff --git a/gdb/testsuite/gdb.base/fileio.c b/gdb/testsuite/gdb.base/fileio.c -index 7f482a34d3..1caadbae84 100644 --- a/gdb/testsuite/gdb.base/fileio.c +++ b/gdb/testsuite/gdb.base/fileio.c @@ -560,6 +560,28 @@ strerrno (int err) @@ -61,7 +58,6 @@ index 7f482a34d3..1caadbae84 100644 test_open (); test_write (); diff --git a/gdb/testsuite/gdb.base/fileio.exp b/gdb/testsuite/gdb.base/fileio.exp -index bc409c26aa..e1e5e2e5d0 100644 --- a/gdb/testsuite/gdb.base/fileio.exp +++ b/gdb/testsuite/gdb.base/fileio.exp @@ -24,9 +24,9 @@ if [target_info exists gdb,nofileio] { diff --git a/gdb-6.8-bz436037-reg-no-longer-active.patch b/gdb-6.8-bz436037-reg-no-longer-active.patch index 9326314..ea240af 100644 --- a/gdb-6.8-bz436037-reg-no-longer-active.patch +++ b/gdb-6.8-bz436037-reg-no-longer-active.patch @@ -3,13 +3,10 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.8-bz436037-reg-no-longer-active.patch -FileName: gdb-6.8-bz436037-reg-no-longer-active.patch - ;; Fix register assignments with no GDB stack frames (BZ 436037). ;;=push+jan: This fix is incorrect. diff --git a/gdb/valops.c b/gdb/valops.c -index 9b6600b538..cdc5c8014c 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1104,6 +1104,8 @@ value_assign (struct value *toval, struct value *fromval) diff --git a/gdb-6.8-bz442765-threaded-exec-test.patch b/gdb-6.8-bz442765-threaded-exec-test.patch index fb202c8..e2ed431 100644 --- a/gdb-6.8-bz442765-threaded-exec-test.patch +++ b/gdb-6.8-bz442765-threaded-exec-test.patch @@ -3,15 +3,12 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.8-bz442765-threaded-exec-test.patch -FileName: gdb-6.8-bz442765-threaded-exec-test.patch - ;; Test various forms of threads tracking across exec() (BZ 442765). ;;=fedoratest Test various forms of threads tracking across exec(2). diff --git a/gdb/testsuite/gdb.threads/threaded-exec.c b/gdb/testsuite/gdb.threads/threaded-exec.c -index 522b24671d..7079317d3a 100644 --- a/gdb/testsuite/gdb.threads/threaded-exec.c +++ b/gdb/testsuite/gdb.threads/threaded-exec.c @@ -18,21 +18,95 @@ @@ -151,7 +148,6 @@ index 522b24671d..7079317d3a 100644 + assert (0); } diff --git a/gdb/testsuite/gdb.threads/threaded-exec.exp b/gdb/testsuite/gdb.threads/threaded-exec.exp -index 77c8a7dc85..8c43162b36 100644 --- a/gdb/testsuite/gdb.threads/threaded-exec.exp +++ b/gdb/testsuite/gdb.threads/threaded-exec.exp @@ -20,9 +20,14 @@ diff --git a/gdb-6.8-bz466901-backtrace-full-prelinked.patch b/gdb-6.8-bz466901-backtrace-full-prelinked.patch index 3d52e8d..542a956 100644 --- a/gdb-6.8-bz466901-backtrace-full-prelinked.patch +++ b/gdb-6.8-bz466901-backtrace-full-prelinked.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.8-bz466901-backtrace-full-prelinked.patch -FileName: gdb-6.8-bz466901-backtrace-full-prelinked.patch - ;; Fix resolving of variables at locations lists in prelinked libs (BZ 466901). ;;=fedoratest diff --git a/gdb-6.8-quit-never-aborts.patch b/gdb-6.8-quit-never-aborts.patch index 647ca40..f3765de 100644 --- a/gdb-6.8-quit-never-aborts.patch +++ b/gdb-6.8-quit-never-aborts.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.8-quit-never-aborts.patch -FileName: gdb-6.8-quit-never-aborts.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 . @@ -16,7 +14,6 @@ should have been detached with SIGSTOP (as they are accidentally left running on the debugger termination). diff --git a/gdb/defs.h b/gdb/defs.h -index ce5fee3ba3..8b16aca2a0 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -168,6 +168,10 @@ extern void default_quit_handler (void); @@ -31,7 +28,6 @@ index ce5fee3ba3..8b16aca2a0 100644 /* Helper for the QUIT macro. */ diff --git a/gdb/extension.c b/gdb/extension.c -index e5c014667a..1c54f03272 100644 --- a/gdb/extension.c +++ b/gdb/extension.c @@ -820,6 +820,11 @@ check_quit_flag (void) @@ -47,10 +43,9 @@ index e5c014667a..1c54f03272 100644 { if (extlang->ops->check_quit_flag != NULL) diff --git a/gdb/top.c b/gdb/top.c -index 07b386dacb..e6c595505f 100644 --- a/gdb/top.c +++ b/gdb/top.c -@@ -1604,7 +1604,13 @@ quit_force (int *exit_arg, int from_tty) +@@ -1611,7 +1611,13 @@ quit_force (int *exit_arg, int from_tty) qt.from_tty = from_tty; @@ -65,7 +60,6 @@ index 07b386dacb..e6c595505f 100644 /* Get out of tfind mode, and kill or detach all inferiors. */ TRY diff --git a/gdb/utils.c b/gdb/utils.c -index c816e2f897..db1c534560 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -108,6 +108,13 @@ static std::chrono::steady_clock::duration prompt_for_continue_wait_time; diff --git a/gdb-6.8-sparc64-silence-memcpy-check.patch b/gdb-6.8-sparc64-silence-memcpy-check.patch index 07cf3fd..6c0848d 100644 --- a/gdb-6.8-sparc64-silence-memcpy-check.patch +++ b/gdb-6.8-sparc64-silence-memcpy-check.patch @@ -3,13 +3,10 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.8-sparc64-silence-memcpy-check.patch -FileName: gdb-6.8-sparc64-silence-memcpy-check.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. diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c -index 7300080d8d..9860e12729 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -1462,6 +1462,7 @@ sparc32_store_return_value (struct type *type, struct regcache *regcache, @@ -18,5 +15,5 @@ index 7300080d8d..9860e12729 100644 /* Floating return values. */ + len = (len <= 8) ? len : 8; memcpy (buf, valbuf, len); - regcache_cooked_write (regcache, SPARC_F0_REGNUM, buf); + regcache->cooked_write (SPARC_F0_REGNUM, buf); if (len > 4) diff --git a/gdb-6.8-watchpoint-conditionals-test.patch b/gdb-6.8-watchpoint-conditionals-test.patch index 1890f5e..5096a67 100644 --- a/gdb-6.8-watchpoint-conditionals-test.patch +++ b/gdb-6.8-watchpoint-conditionals-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-6.8-watchpoint-conditionals-test.patch -FileName: gdb-6.8-watchpoint-conditionals-test.patch - ;; Test the watchpoints conditionals works. ;;=fedoratest diff --git a/gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch b/gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch index caefb72..fc75329 100644 --- a/gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch +++ b/gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch -FileName: gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.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. @@ -19,7 +17,6 @@ FileName: gdb-7.2.50-sparc-add-workaround-to-broken-debug-files.patch ;;=push diff --git a/gdb/gdb_bfd.c b/gdb/gdb_bfd.c -index 8fedeb438d..057f5e1ae9 100644 --- a/gdb/gdb_bfd.c +++ b/gdb/gdb_bfd.c @@ -24,12 +24,14 @@ diff --git a/gdb-archer-next-over-throw-cxx-exec.patch b/gdb-archer-next-over-throw-cxx-exec.patch index 5d6541a..26643f8 100644 --- a/gdb-archer-next-over-throw-cxx-exec.patch +++ b/gdb-archer-next-over-throw-cxx-exec.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-archer-next-over-throw-cxx-exec.patch -FileName: gdb-archer-next-over-throw-cxx-exec.patch - ;; Fix follow-exec for C++ programs (bugreported by Martin Stransky). ;;=fedoratest diff --git a/gdb-archer-pie-addons-keep-disabled.patch b/gdb-archer-pie-addons-keep-disabled.patch index c29cb68..4dc78f6 100644 --- a/gdb-archer-pie-addons-keep-disabled.patch +++ b/gdb-archer-pie-addons-keep-disabled.patch @@ -3,15 +3,12 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-archer-pie-addons-keep-disabled.patch -FileName: gdb-archer-pie-addons-keep-disabled.patch - ;;=push+jan: Breakpoints disabling matching should not be based on address. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c -index 721afd2c04..a04b1183b7 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c -@@ -15511,6 +15511,50 @@ initialize_breakpoint_ops (void) +@@ -15519,6 +15519,50 @@ initialize_breakpoint_ops (void) static struct cmd_list_element *enablebreaklist = NULL; @@ -63,10 +60,9 @@ index 721afd2c04..a04b1183b7 100644 _initialize_breakpoint (void) { diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h -index 4223158fbc..407cc531db 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h -@@ -1683,6 +1683,9 @@ extern const char *ep_parse_optional_if_clause (const char **arg); +@@ -1684,6 +1684,9 @@ extern const char *ep_parse_optional_if_clause (const char **arg); UIOUT iff debugging multiple threads. */ extern void maybe_print_thread_hit_breakpoint (struct ui_out *uiout); @@ -77,7 +73,6 @@ index 4223158fbc..407cc531db 100644 extern void print_breakpoint (breakpoint *bp); diff --git a/gdb/objfiles.c b/gdb/objfiles.c -index f57f4f58b0..d31c0d6f56 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -875,6 +875,11 @@ objfile_relocate1 (struct objfile *objfile, diff --git a/gdb-archer-pie-addons.patch b/gdb-archer-pie-addons.patch index 590fdb8..9aef617 100644 --- a/gdb-archer-pie-addons.patch +++ b/gdb-archer-pie-addons.patch @@ -3,12 +3,9 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-archer-pie-addons.patch -FileName: gdb-archer-pie-addons.patch - ;;=push+jan: May get obsoleted by Tom's unrelocated objfiles patch. diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h -index 878c8b0302..cf1346161d 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -505,6 +505,7 @@ enum field_loc_kind @@ -27,7 +24,7 @@ index 878c8b0302..cf1346161d 100644 CORE_ADDR physaddr; const char *physname; -@@ -1453,6 +1455,7 @@ extern void set_type_vptr_basetype (struct type *, struct type *); +@@ -1438,6 +1440,7 @@ extern void set_type_vptr_basetype (struct type *, struct type *); #define FIELD_ENUMVAL_LVAL(thisfld) ((thisfld).loc.enumval) #define FIELD_ENUMVAL(thisfld) (FIELD_ENUMVAL_LVAL (thisfld) + 0) #define FIELD_STATIC_PHYSNAME(thisfld) ((thisfld).loc.physname) @@ -35,7 +32,7 @@ index 878c8b0302..cf1346161d 100644 #define FIELD_STATIC_PHYSADDR(thisfld) ((thisfld).loc.physaddr) #define FIELD_DWARF_BLOCK(thisfld) ((thisfld).loc.dwarf_block) #define SET_FIELD_BITPOS(thisfld, bitpos) \ -@@ -1464,6 +1467,7 @@ extern void set_type_vptr_basetype (struct type *, struct type *); +@@ -1449,6 +1452,7 @@ extern void set_type_vptr_basetype (struct type *, struct type *); #define SET_FIELD_PHYSNAME(thisfld, name) \ (FIELD_LOC_KIND (thisfld) = FIELD_LOC_KIND_PHYSNAME, \ FIELD_STATIC_PHYSNAME (thisfld) = (name)) @@ -43,7 +40,7 @@ index 878c8b0302..cf1346161d 100644 #define SET_FIELD_PHYSADDR(thisfld, addr) \ (FIELD_LOC_KIND (thisfld) = FIELD_LOC_KIND_PHYSADDR, \ FIELD_STATIC_PHYSADDR (thisfld) = (addr)) -@@ -1480,6 +1484,7 @@ extern void set_type_vptr_basetype (struct type *, struct type *); +@@ -1465,6 +1469,7 @@ extern void set_type_vptr_basetype (struct type *, struct type *); #define TYPE_FIELD_BITPOS(thistype, n) FIELD_BITPOS (TYPE_FIELD (thistype, n)) #define TYPE_FIELD_ENUMVAL(thistype, n) FIELD_ENUMVAL (TYPE_FIELD (thistype, n)) #define TYPE_FIELD_STATIC_PHYSNAME(thistype, n) FIELD_STATIC_PHYSNAME (TYPE_FIELD (thistype, n)) @@ -52,10 +49,9 @@ index 878c8b0302..cf1346161d 100644 #define TYPE_FIELD_DWARF_BLOCK(thistype, n) FIELD_DWARF_BLOCK (TYPE_FIELD (thistype, n)) #define TYPE_FIELD_ARTIFICIAL(thistype, n) FIELD_ARTIFICIAL(TYPE_FIELD(thistype,n)) diff --git a/gdb/value.c b/gdb/value.c -index aa6ca43b41..98c060c65f 100644 --- a/gdb/value.c +++ b/gdb/value.c -@@ -2830,7 +2830,8 @@ value_static_field (struct type *type, int fieldno) +@@ -2829,7 +2829,8 @@ value_static_field (struct type *type, int fieldno) { case FIELD_LOC_KIND_PHYSADDR: retval = value_at_lazy (TYPE_FIELD_TYPE (type, fieldno), diff --git a/gdb-archer-vla-tests.patch b/gdb-archer-vla-tests.patch index 7c3a64c..fa4fa0d 100644 --- a/gdb-archer-vla-tests.patch +++ b/gdb-archer-vla-tests.patch @@ -3,12 +3,9 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-archer-vla-tests.patch -FileName: gdb-archer-vla-tests.patch - ;;=fedoratest diff --git a/gdb/testsuite/gdb.ada/packed_array.exp b/gdb/testsuite/gdb.ada/packed_array.exp -index 3e614b788a..0ae87786db 100644 --- a/gdb/testsuite/gdb.ada/packed_array.exp +++ b/gdb/testsuite/gdb.ada/packed_array.exp @@ -56,5 +56,11 @@ gdb_test_multiple "$test" "$test" { @@ -1086,7 +1083,6 @@ new file mode 100644 + +gdb_test "ptype array" "type = char \\\[78\\\]" "second: ptype array" diff --git a/gdb/testsuite/gdb.base/arrayidx.c b/gdb/testsuite/gdb.base/arrayidx.c -index 5a0d01d04f..9e4b16e902 100644 --- a/gdb/testsuite/gdb.base/arrayidx.c +++ b/gdb/testsuite/gdb.base/arrayidx.c @@ -17,6 +17,13 @@ @@ -1104,7 +1100,6 @@ index 5a0d01d04f..9e4b16e902 100644 main (void) { diff --git a/gdb/testsuite/gdb.base/arrayidx.exp b/gdb/testsuite/gdb.base/arrayidx.exp -index 91eb3c6056..af29a51f23 100644 --- a/gdb/testsuite/gdb.base/arrayidx.exp +++ b/gdb/testsuite/gdb.base/arrayidx.exp @@ -49,4 +49,12 @@ gdb_test "print array" \ @@ -3692,10 +3687,9 @@ new file mode 100644 + writeln(s); { set breakpoint 2 here } +end. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp -index becda6a001..067be70c7a 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp -@@ -169,6 +169,11 @@ proc gdb_unload {} { +@@ -170,6 +170,11 @@ proc gdb_unload {} { send_gdb "y\n" exp_continue } @@ -3708,7 +3702,6 @@ index becda6a001..067be70c7a 100644 send_gdb "y\n" exp_continue diff --git a/gdb/testsuite/lib/pascal.exp b/gdb/testsuite/lib/pascal.exp -index 03d1b1bc06..9f9e143dff 100644 --- a/gdb/testsuite/lib/pascal.exp +++ b/gdb/testsuite/lib/pascal.exp @@ -37,6 +37,9 @@ proc pascal_init {} { diff --git a/gdb-archer.patch b/gdb-archer.patch index c92d1ad..dcb989c 100644 --- a/gdb-archer.patch +++ b/gdb-archer.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-archer.patch -FileName: gdb-archer.patch - ;; Python patches of: http://sourceware.org/gdb/wiki/ProjectArcher ;;=push @@ -17,10 +15,9 @@ commit 718a1618b2f691a7f407213bb50f100ac59f91c3 tromey/python diff --git a/gdb/Makefile.in b/gdb/Makefile.in -index 1ea7a36c69..b767caa735 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in -@@ -2094,6 +2094,12 @@ stamp-h: $(srcdir)/config.in config.status +@@ -2112,6 +2112,12 @@ stamp-h: $(srcdir)/config.in config.status CONFIG_LINKS= \ $(SHELL) config.status @@ -30,23 +27,21 @@ index 1ea7a36c69..b767caa735 100644 + CONFIG_HEADERS= \ + $(SHELL) config.status + - config.status: $(srcdir)/configure configure.tgt configure.host ../bfd/development.sh + config.status: $(srcdir)/configure configure.nat configure.tgt configure.host ../bfd/development.sh $(SHELL) config.status --recheck diff --git a/gdb/data-directory/Makefile.in b/gdb/data-directory/Makefile.in -index 5c7c0b4c2e..2014607e9e 100644 --- a/gdb/data-directory/Makefile.in +++ b/gdb/data-directory/Makefile.in -@@ -80,6 +80,8 @@ PYTHON_FILE_LIST = \ +@@ -80,6 +80,7 @@ PYTHON_FILE_LIST = \ gdb/unwinder.py \ gdb/xmethod.py \ gdb/command/__init__.py \ + gdb/command/ignore_errors.py \ -+ gdb/command/pahole.py \ gdb/command/explore.py \ gdb/command/backtrace.py \ gdb/command/frame_filters.py \ -@@ -92,6 +94,8 @@ PYTHON_FILE_LIST = \ +@@ -92,6 +93,8 @@ PYTHON_FILE_LIST = \ gdb/function/as_string.py \ gdb/function/caller_is.py \ gdb/function/strfns.py \ @@ -56,7 +51,6 @@ index 5c7c0b4c2e..2014607e9e 100644 gdb/printer/bound_registers.py diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo -index 403f5ca658..4788dd9f0d 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -1245,6 +1245,16 @@ for remote debugging. @@ -77,7 +71,6 @@ index 403f5ca658..4788dd9f0d 100644 @item -tui @cindex @code{--tui} diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi -index fb074faf43..8d8fbfeaa9 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -88,8 +88,6 @@ containing @code{end}. For example: @@ -90,7 +83,6 @@ index fb074faf43..8d8fbfeaa9 100644 >end 23 diff --git a/gdb/gdb-gdb.gdb.in b/gdb/gdb-gdb.gdb.in -index 05a38b2670..9801fdff67 100644 --- a/gdb/gdb-gdb.gdb.in +++ b/gdb/gdb-gdb.gdb.in @@ -1,5 +1,15 @@ @@ -110,7 +102,6 @@ index 05a38b2670..9801fdff67 100644 set variable $gdb_init_done = 1 diff --git a/gdb/main.c b/gdb/main.c -index 84e6126ad4..80d84ea246 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -33,6 +33,7 @@ @@ -319,92 +310,6 @@ new file mode 100644 + pass + +IgnoreErrorsCommand () -diff --git a/gdb/python/lib/gdb/command/pahole.py b/gdb/python/lib/gdb/command/pahole.py -new file mode 100644 ---- /dev/null -+++ b/gdb/python/lib/gdb/command/pahole.py -@@ -0,0 +1,81 @@ -+# pahole command for gdb -+ -+# Copyright (C) 2008, 2009, 2012 Free Software Foundation, Inc. -+ -+# This program is free software; you can redistribute it and/or modify -+# it under the terms of the GNU General Public License as published by -+# the Free Software Foundation; either version 3 of the License, or -+# (at your option) any later version. -+# -+# This program is distributed in the hope that it will be useful, -+# but WITHOUT ANY WARRANTY; without even the implied warranty of -+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -+# GNU General Public License for more details. -+# -+# You should have received a copy of the GNU General Public License -+# along with this program. If not, see . -+ -+import gdb -+ -+class Pahole (gdb.Command): -+ """Show the holes in a structure. -+This command takes a single argument, a type name. -+It prints the type and displays comments showing where holes are.""" -+ -+ def __init__ (self): -+ super (Pahole, self).__init__ ("pahole", gdb.COMMAND_NONE, -+ gdb.COMPLETE_SYMBOL) -+ -+ def maybe_print_hole(self, bitpos, field_bitpos): -+ if bitpos != field_bitpos: -+ hole = field_bitpos - bitpos -+ print (' /* XXX %d bit hole, try to pack */' % hole) -+ -+ def pahole (self, type, level, name): -+ if name is None: -+ name = '' -+ tag = type.tag -+ if tag is None: -+ tag = '' -+ print ('%sstruct %s {' % (' ' * (2 * level), tag)) -+ bitpos = 0 -+ for field in type.fields (): -+ # Skip static fields. -+ if not hasattr (field, ('bitpos')): -+ continue -+ -+ ftype = field.type.strip_typedefs() -+ -+ self.maybe_print_hole(bitpos, field.bitpos) -+ bitpos = field.bitpos -+ if field.bitsize > 0: -+ fieldsize = field.bitsize -+ else: -+ # TARGET_CHAR_BIT here... -+ fieldsize = 8 * ftype.sizeof -+ -+ # TARGET_CHAR_BIT -+ print (' /* %3d %3d */' % (int (bitpos / 8), int (fieldsize / 8)), end = "") -+ bitpos = bitpos + fieldsize -+ -+ if ftype.code == gdb.TYPE_CODE_STRUCT: -+ self.pahole (ftype, level + 1, field.name) -+ else: -+ print (' ' * (2 + 2 * level), end = "") -+ print ('%s %s' % (str (ftype), field.name)) -+ -+ if level == 0: -+ self.maybe_print_hole(bitpos, 8 * type.sizeof) -+ -+ print (' ' * (14 + 2 * level), end = "") -+ print ('} %s' % name) -+ -+ def invoke (self, arg, from_tty): -+ type = gdb.lookup_type (arg) -+ type = type.strip_typedefs () -+ if type.code != gdb.TYPE_CODE_STRUCT: -+ raise (TypeError, '%s is not a struct type' % arg) -+ print (' ' * 14, end = "") -+ self.pahole (type, 0, '') -+ -+Pahole() diff --git a/gdb/python/lib/gdb/function/in_scope.py b/gdb/python/lib/gdb/function/in_scope.py new file mode 100644 --- /dev/null @@ -458,10 +363,9 @@ new file mode 100644 + +InScope () diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h -index b8e2d9049d..deb87c6a71 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h -@@ -641,6 +641,9 @@ class gdbpy_enter_varobj : public gdbpy_enter +@@ -644,6 +644,9 @@ class gdbpy_enter_varobj : public gdbpy_enter }; @@ -472,7 +376,6 @@ index b8e2d9049d..deb87c6a71 100644 extern const struct language_defn *python_language; diff --git a/gdb/python/python.c b/gdb/python/python.c -index 4233b37fa8..cc4b710df7 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -95,6 +95,8 @@ const struct extension_language_defn extension_language_python = @@ -607,7 +510,7 @@ index 4233b37fa8..cc4b710df7 100644 static PyObject * gdbpy_get_current_progspace (PyObject *unused1, PyObject *unused2) -@@ -2045,6 +2156,8 @@ PyMethodDef python_GdbMethods[] = +@@ -2057,6 +2168,8 @@ PyMethodDef python_GdbMethods[] = Evaluate command, a string, as a gdb CLI command. Optionally returns\n\ a Python String containing the output of the command if to_string is\n\ set to True." }, @@ -617,7 +520,6 @@ index 4233b37fa8..cc4b710df7 100644 "Return a gdb parameter's value" }, diff --git a/gdb/python/python.h b/gdb/python/python.h -index de58fd81df..237a84a0b2 100644 --- a/gdb/python/python.h +++ b/gdb/python/python.h @@ -25,4 +25,6 @@ @@ -628,7 +530,6 @@ index de58fd81df..237a84a0b2 100644 + #endif /* GDB_PYTHON_H */ diff --git a/gdb/testsuite/gdb.python/py-frame.exp b/gdb/testsuite/gdb.python/py-frame.exp -index f186fa9578..0327284226 100644 --- a/gdb/testsuite/gdb.python/py-frame.exp +++ b/gdb/testsuite/gdb.python/py-frame.exp @@ -95,6 +95,8 @@ gdb_test "python print ('result = %s' % f0.read_var ('a'))" " = 1" "test Frame.r @@ -641,7 +542,6 @@ index f186fa9578..0327284226 100644 gdb_test "python print ('result = %s' % (gdb.selected_frame ().read_register ('sp') == gdb.parse_and_eval ('\$sp')))" \ " = True" \ diff --git a/gdb/testsuite/gdb.python/py-value.exp b/gdb/testsuite/gdb.python/py-value.exp -index eb82a7776f..3069a5c6d7 100644 --- a/gdb/testsuite/gdb.python/py-value.exp +++ b/gdb/testsuite/gdb.python/py-value.exp @@ -384,6 +384,15 @@ proc test_value_after_death {} { @@ -669,7 +569,6 @@ index eb82a7776f..3069a5c6d7 100644 # Test either C or C++ values. diff --git a/gdb/varobj.c b/gdb/varobj.c -index a0df485ae9..ab8248a781 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -218,6 +218,14 @@ is_root_p (const struct varobj *var) @@ -688,7 +587,6 @@ index a0df485ae9..ab8248a781 100644 /* See python-internal.h. */ gdbpy_enter_varobj::gdbpy_enter_varobj (const struct varobj *var) diff --git a/gdb/varobj.h b/gdb/varobj.h -index 3aba0cda67..42dfad83f8 100644 --- a/gdb/varobj.h +++ b/gdb/varobj.h @@ -328,6 +328,8 @@ extern bool varobj_has_more (const struct varobj *var, int to); diff --git a/gdb-attach-fail-reasons-5of5.patch b/gdb-attach-fail-reasons-5of5.patch index 443baa4..6842d18 100644 --- a/gdb-attach-fail-reasons-5of5.patch +++ b/gdb-attach-fail-reasons-5of5.patch @@ -1,9 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: attach-fail-reasons: SELinux deny_ptrace - -FileName: gdb-attach-fail-reasons-5of5.patch +Subject: gdb-attach-fail-reasons-5of5.patch ;; Print reasons for failed attach/spawn incl. SELinux deny_ptrace (BZ 786878). ;;=push+jan @@ -45,7 +43,6 @@ gdb/gdbserver/ direct ptrace. diff --git a/gdb/config.in b/gdb/config.in -index 404e0bbddc..97d2f7f518 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -276,6 +276,9 @@ @@ -69,10 +66,9 @@ index 404e0bbddc..97d2f7f518 100644 #undef HAVE_SETLOCALE diff --git a/gdb/configure b/gdb/configure -index 30a6e86ff8..3b604feb11 100755 --- a/gdb/configure +++ b/gdb/configure -@@ -15747,6 +15747,64 @@ cat >>confdefs.h <<_ACEOF +@@ -15854,6 +15854,64 @@ cat >>confdefs.h <<_ACEOF _ACEOF @@ -138,10 +134,9 @@ index 30a6e86ff8..3b604feb11 100755 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR, # except that the argument to --with-sysroot is optional. diff --git a/gdb/configure.ac b/gdb/configure.ac -index 39a777f647..c707e7b152 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac -@@ -2048,6 +2048,10 @@ case $host_os in +@@ -2054,6 +2054,10 @@ case $host_os in esac AC_DEFINE_UNQUOTED(GDBINIT,"$gdbinit",[The .gdbinit filename.]) @@ -153,7 +148,6 @@ index 39a777f647..c707e7b152 100644 # Support for --with-sysroot is a copy of GDB_AC_WITH_DIR, diff --git a/gdb/gdbserver/config.in b/gdb/gdbserver/config.in -index dda7c1f150..b2a34b92ce 100644 --- a/gdb/gdbserver/config.in +++ b/gdb/gdbserver/config.in @@ -126,6 +126,9 @@ @@ -177,10 +171,9 @@ index dda7c1f150..b2a34b92ce 100644 #undef HAVE_SETNS diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure -index b2e2e8f955..3269bbe553 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure -@@ -8465,6 +8465,64 @@ if $want_ipa ; then +@@ -8535,6 +8535,64 @@ if $want_ipa ; then fi fi @@ -246,10 +239,9 @@ index b2e2e8f955..3269bbe553 100755 diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac -index 99801681ff..56f28797ca 100644 --- a/gdb/gdbserver/configure.ac +++ b/gdb/gdbserver/configure.ac -@@ -488,6 +488,10 @@ if $want_ipa ; then +@@ -486,6 +486,10 @@ if $want_ipa ; then fi fi @@ -261,10 +253,9 @@ index 99801681ff..56f28797ca 100644 AC_SUBST(GDBSERVER_LIBS) AC_SUBST(srv_xmlbuiltin) diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c -index e64949504d..6bcaf3700f 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c -@@ -966,7 +966,16 @@ linux_ptrace_fun () +@@ -967,7 +967,16 @@ linux_ptrace_fun () { if (ptrace (PTRACE_TRACEME, 0, (PTRACE_TYPE_ARG3) 0, (PTRACE_TYPE_ARG4) 0) < 0) @@ -283,7 +274,6 @@ index e64949504d..6bcaf3700f 100644 if (setpgid (0, 0) < 0) trace_start_error_with_name ("setpgid"); diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c -index 445b59fa4a..05344316a7 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -1088,7 +1088,17 @@ linux_nat_target::create_inferior (const char *exec_file, @@ -306,7 +296,6 @@ index 445b59fa4a..05344316a7 100644 /* Callback for linux_proc_attach_tgid_threads. Attach to PTID if not diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c -index 1f21ef03a3..53c9a0de17 100644 --- a/gdb/nat/linux-ptrace.c +++ b/gdb/nat/linux-ptrace.c @@ -25,6 +25,10 @@ @@ -356,10 +345,9 @@ index 1f21ef03a3..53c9a0de17 100644 int diff --git a/gdb/nat/linux-ptrace.h b/gdb/nat/linux-ptrace.h -index dc180fbf82..32e3d33bc8 100644 --- a/gdb/nat/linux-ptrace.h +++ b/gdb/nat/linux-ptrace.h -@@ -189,6 +189,7 @@ extern std::string linux_ptrace_attach_fail_reason (pid_t pid); +@@ -184,6 +184,7 @@ extern std::string linux_ptrace_attach_fail_reason (pid_t pid); extern std::string linux_ptrace_attach_fail_reason_string (ptid_t ptid, int err); extern void linux_ptrace_init_warnings (void); diff --git a/gdb-btrobust.patch b/gdb-btrobust.patch index 2b1044d..40d406c 100644 --- a/gdb-btrobust.patch +++ b/gdb-btrobust.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-btrobust.patch -FileName: gdb-btrobust.patch - ;; Continue backtrace even if a frame filter throws an exception (Phil Muldoon). ;;=push @@ -14,7 +12,6 @@ printed, but a default backtrace will occur in this case. -- diff --git a/gdb/python/py-framefilter.c b/gdb/python/py-framefilter.c -index 4edefd48f9..af5fcae654 100644 --- a/gdb/python/py-framefilter.c +++ b/gdb/python/py-framefilter.c @@ -1151,6 +1151,7 @@ gdbpy_apply_frame_filter (const struct extension_language_defn *extlang, diff --git a/gdb-bz1219747-attach-kills.patch b/gdb-bz1219747-attach-kills.patch index 66a0b3b..6ae10a2 100644 --- a/gdb-bz1219747-attach-kills.patch +++ b/gdb-bz1219747-attach-kills.patch @@ -1,9 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: Never kill PID on: gdb exec PID - -FileName: gdb-bz1219747-attach-kills.patch +Subject: gdb-bz1219747-attach-kills.patch ;; Never kill PID on: gdb exec PID (Jan Kratochvil, RH BZ 1219747). ;;=push+jan @@ -80,7 +78,6 @@ gdb/testsuite/ChangeLog * gdb.base/attach-kills.exp: New. diff --git a/gdb/main.c b/gdb/main.c -index 4caefe2011..84e6126ad4 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -1115,7 +1115,10 @@ captured_main_1 (struct captured_main_args *context) diff --git a/gdb-bz533176-fortran-omp-step.patch b/gdb-bz533176-fortran-omp-step.patch index 86479cd..c42c458 100644 --- a/gdb-bz533176-fortran-omp-step.patch +++ b/gdb-bz533176-fortran-omp-step.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-bz533176-fortran-omp-step.patch -FileName: gdb-bz533176-fortran-omp-step.patch - ;; Fix stepping with OMP parallel Fortran sections (BZ 533176). ;;=push+jan: It requires some better DWARF annotations. @@ -30,10 +28,9 @@ threads need to get synchronized at some point. This is a more general debugging problem of GOMP outside of the scope of this Bug. diff --git a/gdb/infrun.c b/gdb/infrun.c -index 78ffc10b23..443e2123f0 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c -@@ -6699,6 +6699,16 @@ process_event_stop_test (struct execution_control_state *ecs) +@@ -6694,6 +6694,16 @@ process_event_stop_test (struct execution_control_state *ecs) if (ecs->event_thread->control.step_over_calls == STEP_OVER_ALL) { @@ -50,7 +47,7 @@ index 78ffc10b23..443e2123f0 100644 /* We're doing a "next". Normal (forward) execution: set a breakpoint at the -@@ -6732,6 +6742,7 @@ process_event_stop_test (struct execution_control_state *ecs) +@@ -6727,6 +6737,7 @@ process_event_stop_test (struct execution_control_state *ecs) keep_going (ecs); return; diff --git a/gdb-bz541866-rwatch-before-run.patch b/gdb-bz541866-rwatch-before-run.patch index e740c71..d5595fa 100644 --- a/gdb-bz541866-rwatch-before-run.patch +++ b/gdb-bz541866-rwatch-before-run.patch @@ -3,17 +3,14 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-bz541866-rwatch-before-run.patch -FileName: gdb-bz541866-rwatch-before-run.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+jan: It should be fixed properly instead. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c -index a04b1183b7..305bb3f6c0 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c -@@ -8808,7 +8808,7 @@ init_breakpoint_sal (struct breakpoint *b, struct gdbarch *gdbarch, +@@ -8804,7 +8804,7 @@ init_breakpoint_sal (struct breakpoint *b, struct gdbarch *gdbarch, int enabled, int internal, unsigned flags, int display_canonical) { @@ -22,7 +19,7 @@ index a04b1183b7..305bb3f6c0 100644 if (type == bp_hardware_breakpoint) { -@@ -14345,7 +14345,7 @@ enable_breakpoint_disp (struct breakpoint *bpt, enum bpdisp disposition, +@@ -14353,7 +14353,7 @@ enable_breakpoint_disp (struct breakpoint *bpt, enum bpdisp disposition, if (bpt->type == bp_hardware_breakpoint) { @@ -98,10 +95,9 @@ new file mode 100644 + +#endif /* NM_LINUX64_H */ diff --git a/gdb/configure.nat b/gdb/configure.nat -index 6b0f44fede..dd0c63c256 100644 --- a/gdb/configure.nat +++ b/gdb/configure.nat -@@ -237,6 +237,7 @@ case ${gdb_host} in +@@ -238,6 +238,7 @@ case ${gdb_host} in ;; i386) # Host: Intel 386 running GNU/Linux. @@ -109,7 +105,7 @@ index 6b0f44fede..dd0c63c256 100644 NATDEPFILES="${NATDEPFILES} x86-nat.o x86-dregs.o \ i386-linux-nat.o x86-linux-nat.o linux-btrace.o \ x86-linux.o x86-linux-dregs.o" -@@ -289,6 +290,7 @@ case ${gdb_host} in +@@ -290,6 +291,7 @@ case ${gdb_host} in case ${gdb_host_cpu} in i386) # Host: GNU/Linux x86-64 @@ -118,16 +114,15 @@ index 6b0f44fede..dd0c63c256 100644 amd64-nat.o amd64-linux-nat.o x86-linux-nat.o linux-btrace.o \ x86-linux.o x86-linux-dregs.o amd64-linux-siginfo.o" diff --git a/gdb/target.h b/gdb/target.h -index e2d1e61cdc..6e13809397 100644 --- a/gdb/target.h +++ b/gdb/target.h -@@ -1908,9 +1908,11 @@ extern struct thread_info *target_thread_handle_to_thread_info +@@ -1953,9 +1953,11 @@ extern struct thread_info *target_thread_handle_to_thread_info one. OTHERTYPE is the number of watchpoints of other types than this one used so far. */ +#ifndef target_can_use_hardware_watchpoint #define target_can_use_hardware_watchpoint(TYPE,CNT,OTHERTYPE) \ - (target_stack->can_use_hw_breakpoint) ( \ + (current_top_target ()->can_use_hw_breakpoint) ( \ TYPE, CNT, OTHERTYPE) +#endif diff --git a/gdb-bz568248-oom-is-error.patch b/gdb-bz568248-oom-is-error.patch index 161d621..f3f61da 100644 --- a/gdb-bz568248-oom-is-error.patch +++ b/gdb-bz568248-oom-is-error.patch @@ -1,9 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: nomem: internal_error -> error - -FileName: gdb-bz568248-oom-is-error.patch +Subject: gdb-bz568248-oom-is-error.patch ;; Out of memory is just an error, not fatal (uninitialized VLS vars, BZ 568248). ;;=push+jan: Inferior objects should be read in parts, then this patch gets obsoleted. @@ -53,7 +51,6 @@ gdb/ * utils.c (nomem): Change internal_error to error. diff --git a/gdb/utils.c b/gdb/utils.c -index 9c5bf68e5a..7813df1436 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -746,13 +746,11 @@ malloc_failure (long size) diff --git a/gdb-bz601887-dwarf4-rh-test.patch b/gdb-bz601887-dwarf4-rh-test.patch index 0d08498..87b7817 100644 --- a/gdb-bz601887-dwarf4-rh-test.patch +++ b/gdb-bz601887-dwarf4-rh-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-bz601887-dwarf4-rh-test.patch -FileName: gdb-bz601887-dwarf4-rh-test.patch - ;; Backport DWARF-4 support (BZ 601887, Tom Tromey). ;;=fedoratest diff --git a/gdb-bz634108-solib_address.patch b/gdb-bz634108-solib_address.patch index d68fb2b..abbc407 100644 --- a/gdb-bz634108-solib_address.patch +++ b/gdb-bz634108-solib_address.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-bz634108-solib_address.patch -FileName: gdb-bz634108-solib_address.patch - ;; Verify GDB Python built-in function gdb.solib_address exists (BZ # 634108). ;;=fedoratest diff --git a/gdb-ccache-workaround.patch b/gdb-ccache-workaround.patch index d9cd975..60bc5cc 100644 --- a/gdb-ccache-workaround.patch +++ b/gdb-ccache-workaround.patch @@ -3,13 +3,10 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-ccache-workaround.patch -FileName: gdb-ccache-workaround.patch - ;; Workaround ccache making lineno non-zero for command-line definitions. ;;=fedoratest: ccache is rarely used and it is even fixed now. diff --git a/gdb/testsuite/gdb.base/macscp.exp b/gdb/testsuite/gdb.base/macscp.exp -index 27dc991ce9..a3b9458b44 100644 --- a/gdb/testsuite/gdb.base/macscp.exp +++ b/gdb/testsuite/gdb.base/macscp.exp @@ -25,6 +25,14 @@ if { [test_compiler_info "gcc-*"] || [test_compiler_info "clang-*"] } { diff --git a/gdb-container-rh-pkg.patch b/gdb-container-rh-pkg.patch index 99efe00..35eb798 100644 --- a/gdb-container-rh-pkg.patch +++ b/gdb-container-rh-pkg.patch @@ -3,16 +3,13 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-container-rh-pkg.patch -FileName: gdb-container-rh-pkg.patch - ;; Add messages suggesting more recent RHEL gdbserver (RH BZ 1321114). ;;=fedora diff --git a/gdb/remote.c b/gdb/remote.c -index 635cb266e8..a683df4a83 100644 --- a/gdb/remote.c +++ b/gdb/remote.c -@@ -13667,7 +13667,17 @@ remote_target::pid_to_exec_file (int pid) +@@ -13904,7 +13904,17 @@ remote_target::pid_to_exec_file (int pid) char *annex = NULL; if (packet_support (PACKET_qXfer_exec_file) != PACKET_ENABLE) diff --git a/gdb-core-open-vdso-warning.patch b/gdb-core-open-vdso-warning.patch index 9368bca..b0a7311 100644 --- a/gdb-core-open-vdso-warning.patch +++ b/gdb-core-open-vdso-warning.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-core-open-vdso-warning.patch -FileName: gdb-core-open-vdso-warning.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. ;;=fedoratest: It should be in glibc: libc-alpha: <20091004161706.GA27450@.*> @@ -19,7 +17,6 @@ Author: Ulrich Weigand Date: Wed Sep 25 11:52:50 2013 +0000 diff --git a/gdb/testsuite/gdb.base/solib-symbol.exp b/gdb/testsuite/gdb.base/solib-symbol.exp -index 20c1d47a03..893efe0b2d 100644 --- a/gdb/testsuite/gdb.base/solib-symbol.exp +++ b/gdb/testsuite/gdb.base/solib-symbol.exp @@ -29,6 +29,7 @@ set testfile "solib-symbol-main" diff --git a/gdb-dts-rhel6-python-compat.patch b/gdb-dts-rhel6-python-compat.patch index 9abc91e..697c6f0 100644 --- a/gdb-dts-rhel6-python-compat.patch +++ b/gdb-dts-rhel6-python-compat.patch @@ -3,15 +3,12 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-dts-rhel6-python-compat.patch -FileName: gdb-dts-rhel6-python-compat.patch - ;; [rhel6] DTS backward Python compatibility API (BZ 1020004, Phil Muldoon). ;;=fedora https://bugzilla.redhat.com/show_bug.cgi?id=1020004 diff --git a/gdb/data-directory/Makefile.in b/gdb/data-directory/Makefile.in -index 753e0b69a3..5c7c0b4c2e 100644 --- a/gdb/data-directory/Makefile.in +++ b/gdb/data-directory/Makefile.in @@ -71,6 +71,8 @@ PYTHON_FILE_LIST = \ diff --git a/gdb-fedora-libncursesw.patch b/gdb-fedora-libncursesw.patch index 1bd195b..5037e29 100644 --- a/gdb-fedora-libncursesw.patch +++ b/gdb-fedora-libncursesw.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-fedora-libncursesw.patch -FileName: gdb-fedora-libncursesw.patch - ;; Force libncursesw over libncurses to match the includes (RH BZ 1270534). ;;=push+jan @@ -12,18 +10,17 @@ Fedora: Force libncursesw over libncurses to match the includes. https://bugzilla.redhat.com/show_bug.cgi?id=1270534 diff --git a/gdb/configure b/gdb/configure -index 9f236ae26a..a2d480c1e5 100755 --- a/gdb/configure +++ b/gdb/configure -@@ -9304,6 +9304,7 @@ if test x"$prefer_curses" = xyes; then +@@ -9393,6 +9393,7 @@ if test x"$prefer_curses" = xyes; then # search /usr/local/include, if ncurses is installed in /usr/local. A # default installation of ncurses on alpha*-dec-osf* will lead to such # a situation. + # Fedora: Force libncursesw over libncurses to match the includes. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5 $as_echo_n "checking for library containing waddstr... " >&6; } - if test "${ac_cv_search_waddstr+set}" = set; then : -@@ -9328,7 +9329,7 @@ return waddstr (); + if ${ac_cv_search_waddstr+:} false; then : +@@ -9417,7 +9418,7 @@ return waddstr (); return 0; } _ACEOF @@ -32,15 +29,15 @@ index 9f236ae26a..a2d480c1e5 100755 if test -z "$ac_lib"; then ac_res="none required" else -@@ -9402,6 +9403,7 @@ case $host_os in +@@ -9491,6 +9492,7 @@ case $host_os in esac # These are the libraries checked by Readline. +# Fedora: Force libncursesw over libncurses to match the includes. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 $as_echo_n "checking for library containing tgetent... " >&6; } - if test "${ac_cv_search_tgetent+set}" = set; then : -@@ -9426,7 +9428,7 @@ return tgetent (); + if ${ac_cv_search_tgetent+:} false; then : +@@ -9515,7 +9517,7 @@ return tgetent (); return 0; } _ACEOF @@ -50,10 +47,9 @@ index 9f236ae26a..a2d480c1e5 100755 ac_res="none required" else diff --git a/gdb/configure.ac b/gdb/configure.ac -index dc0acd035b..57ebcaeb08 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac -@@ -760,7 +760,8 @@ if test x"$prefer_curses" = xyes; then +@@ -766,7 +766,8 @@ if test x"$prefer_curses" = xyes; then # search /usr/local/include, if ncurses is installed in /usr/local. A # default installation of ncurses on alpha*-dec-osf* will lead to such # a situation. @@ -63,7 +59,7 @@ index dc0acd035b..57ebcaeb08 100644 if test "$ac_cv_search_waddstr" != no; then curses_found=yes -@@ -802,7 +803,8 @@ case $host_os in +@@ -808,7 +809,8 @@ case $host_os in esac # These are the libraries checked by Readline. diff --git a/gdb-follow-child-stale-parent.patch b/gdb-follow-child-stale-parent.patch index 09b4042..ab3a765 100644 --- a/gdb-follow-child-stale-parent.patch +++ b/gdb-follow-child-stale-parent.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-follow-child-stale-parent.patch -FileName: gdb-follow-child-stale-parent.patch - ;; Fix regression by python on ia64 due to stale current frame. ;;=push+jan @@ -24,7 +22,6 @@ unwinders try to access it, breaking: +FAIL: gdb.threads/watchpoint-fork.exp: child: singlethreaded: finish diff --git a/gdb/infrun.c b/gdb/infrun.c -index 443e2123f0..16ee1c2e31 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -752,6 +752,9 @@ follow_fork (void) diff --git a/gdb-fortran-frame-string.patch b/gdb-fortran-frame-string.patch index 2c52d65..a7b7b58 100644 --- a/gdb-fortran-frame-string.patch +++ b/gdb-fortran-frame-string.patch @@ -1,9 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: Display Fortran strings in backtraces - -FileName: gdb-fortran-frame-string.patch +Subject: gdb-fortran-frame-string.patch ;; Display Fortran strings in backtraces. ;;=fedoratest diff --git a/gdb-glibc-strstr-workaround.patch b/gdb-glibc-strstr-workaround.patch index dec6245..952be44 100644 --- a/gdb-glibc-strstr-workaround.patch +++ b/gdb-glibc-strstr-workaround.patch @@ -3,16 +3,13 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-glibc-strstr-workaround.patch -FileName: gdb-glibc-strstr-workaround.patch - ;; Workaround PR libc/14166 for inferior calls of strstr. ;;=fedora: Compatibility with RHELs (unchecked which ones). diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index 266740f74c..d69f154af3 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -21376,6 +21376,26 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu, +@@ -21255,6 +21255,26 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu, /* Cache this symbol's name and the name's demangled form (if any). */ SYMBOL_SET_LANGUAGE (sym, cu->language, &objfile->objfile_obstack); linkagename = dwarf2_physname (name, die, cu); diff --git a/gdb-gnat-dwarf-crash-3of3.patch b/gdb-gnat-dwarf-crash-3of3.patch index 5763a6c..5b270bf 100644 --- a/gdb-gnat-dwarf-crash-3of3.patch +++ b/gdb-gnat-dwarf-crash-3of3.patch @@ -1,9 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: gdb_assert -> complaint for weird DWARF - -FileName: gdb-gnat-dwarf-crash-3of3.patch +Subject: gdb-gnat-dwarf-crash-3of3.patch ;; Fix crash of -readnow /usr/lib/debug/usr/bin/gnatbind.debug (BZ 1069211). ;;=push+jan @@ -42,17 +40,15 @@ gdb/ * dwarf2read.c (process_die): Change gdb_assert to complaint. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index 420c3e6bd5..328a07df82 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -10516,6 +10516,14 @@ private: +@@ -10483,6 +10483,13 @@ private: static void process_die (struct die_info *die, struct dwarf2_cu *cu) { + if (die->in_process) + { -+ complaint (&symfile_complaints, -+ _("DIE at 0x%s attempted to be processed twice"), ++ complaint (_("DIE at 0x%s attempted to be processed twice"), + sect_offset_str (die->sect_off)); + return; + } @@ -61,10 +57,9 @@ index 420c3e6bd5..328a07df82 100644 switch (die->tag) diff --git a/gdb/infrun.c b/gdb/infrun.c -index 16ee1c2e31..82b9cedc90 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c -@@ -609,6 +609,13 @@ holding the child stopped. Try \"set detach-on-fork\" or \ +@@ -607,6 +607,13 @@ holding the child stopped. Try \"set detach-on-fork\" or \ target_pid_to_str (process_ptid)); } @@ -79,7 +74,6 @@ index 16ee1c2e31..82b9cedc90 100644 } diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c -index 05344316a7..30a94b47c9 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -191,6 +191,12 @@ struct linux_nat_target *linux_target; @@ -105,7 +99,7 @@ index 05344316a7..30a94b47c9 100644 /* The process is definitely stopped. It is in a job control stop, unless the kernel predates the TASK_STOPPED / -@@ -1359,6 +1368,25 @@ get_detach_signal (struct lwp_info *lp) +@@ -1358,6 +1367,25 @@ get_detach_signal (struct lwp_info *lp) return gdb_signal_to_host (signo); } @@ -131,7 +125,7 @@ index 05344316a7..30a94b47c9 100644 return 0; } -@@ -1507,6 +1535,10 @@ linux_nat_target::detach (inferior *inf, int from_tty) +@@ -1506,6 +1534,10 @@ linux_nat_target::detach (inferior *inf, int from_tty) detach_one_lwp (main_lwp, &signo); detach_success (inf); @@ -142,7 +136,7 @@ index 05344316a7..30a94b47c9 100644 } } -@@ -1765,6 +1797,16 @@ linux_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signo) +@@ -1764,6 +1796,16 @@ linux_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signo) return; } @@ -159,7 +153,7 @@ index 05344316a7..30a94b47c9 100644 if (resume_many) iterate_over_lwps (ptid, linux_nat_resume_callback, lp); -@@ -3754,6 +3796,10 @@ linux_nat_target::mourn_inferior () +@@ -3760,6 +3802,10 @@ linux_nat_target::mourn_inferior () /* Let the arch-specific native code know this process is gone. */ linux_target->low_forget_process (pid); @@ -171,7 +165,6 @@ index 05344316a7..30a94b47c9 100644 /* Convert a native/host siginfo object, into/from the siginfo in the diff --git a/gdb/testsuite/gdb.threads/attach-stopped.exp b/gdb/testsuite/gdb.threads/attach-stopped.exp -index a3916c6354..9f004b4179 100644 --- a/gdb/testsuite/gdb.threads/attach-stopped.exp +++ b/gdb/testsuite/gdb.threads/attach-stopped.exp @@ -56,7 +56,65 @@ proc corefunc { threadtype } { diff --git a/gdb-jit-reader-multilib.patch b/gdb-jit-reader-multilib.patch index 6ac9589..2aa41c2 100644 --- a/gdb-jit-reader-multilib.patch +++ b/gdb-jit-reader-multilib.patch @@ -3,16 +3,13 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-jit-reader-multilib.patch -FileName: gdb-jit-reader-multilib.patch - ;; Fix jit-reader.h for multi-lib. ;;=push+jan diff --git a/gdb/configure b/gdb/configure -index 3b604feb11..9f236ae26a 100755 --- a/gdb/configure +++ b/gdb/configure -@@ -9594,10 +9594,12 @@ _ACEOF +@@ -9680,10 +9680,12 @@ _ACEOF @@ -29,10 +26,9 @@ index 3b604feb11..9f236ae26a 100755 TARGET_PTR="unsigned __int128" else diff --git a/gdb/configure.ac b/gdb/configure.ac -index c707e7b152..dc0acd035b 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac -@@ -837,10 +837,12 @@ AC_CHECK_SIZEOF(unsigned long long) +@@ -843,10 +843,12 @@ AC_CHECK_SIZEOF(unsigned long long) AC_CHECK_SIZEOF(unsigned long) AC_CHECK_SIZEOF(unsigned __int128) diff --git a/gdb-libexec-add-index.patch b/gdb-libexec-add-index.patch index 483413b..af19eab 100644 --- a/gdb-libexec-add-index.patch +++ b/gdb-libexec-add-index.patch @@ -3,13 +3,10 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-libexec-add-index.patch -FileName: gdb-libexec-add-index.patch - ;; Fix gdb-headless /usr/bin/ executables (BZ 1390251). ;;=fedora diff --git a/gdb/contrib/gdb-add-index.sh b/gdb/contrib/gdb-add-index.sh -index 71146966ab..500b2f62d5 100755 --- a/gdb/contrib/gdb-add-index.sh +++ b/gdb/contrib/gdb-add-index.sh @@ -21,6 +21,11 @@ diff --git a/gdb-lineno-makeup-test.patch b/gdb-lineno-makeup-test.patch index cf4b40b..313421d 100644 --- a/gdb-lineno-makeup-test.patch +++ b/gdb-lineno-makeup-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-lineno-makeup-test.patch -FileName: gdb-lineno-makeup-test.patch - ;; Testcase for "Do not make up line information" fix by Daniel Jacobowitz. ;;=fedoratest diff --git a/gdb-linux_perf-bundle.patch b/gdb-linux_perf-bundle.patch index e18947b..c7533f7 100644 --- a/gdb-linux_perf-bundle.patch +++ b/gdb-linux_perf-bundle.patch @@ -3,16 +3,13 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-linux_perf-bundle.patch -FileName: gdb-linux_perf-bundle.patch - ;; [dts+el7] [x86*] Bundle linux_perf.h for libipt (RH BZ 1256513). ;;=fedora diff --git a/gdb/configure b/gdb/configure -index a2d480c1e5..4f102c3ede 100755 --- a/gdb/configure +++ b/gdb/configure -@@ -11973,7 +11973,7 @@ else +@@ -12059,7 +12059,7 @@ else #include #ifndef PERF_ATTR_SIZE_VER5 @@ -22,20 +19,18 @@ index a2d480c1e5..4f102c3ede 100755 _ACEOF diff --git a/gdb/configure.ac b/gdb/configure.ac -index 57ebcaeb08..1840f91651 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac -@@ -1471,7 +1471,7 @@ else - AC_PREPROC_IFELSE(AC_LANG_SOURCE([[ +@@ -1477,7 +1477,7 @@ else + AC_PREPROC_IFELSE([AC_LANG_SOURCE([[ #include #ifndef PERF_ATTR_SIZE_VER5 -# error +// error // PERF_ATTR_SIZE_VER5_BUNDLE is not available here - Fedora+RHEL #endif - ]]), [perf_event=yes], [perf_event=no]) + ]])], [perf_event=yes], [perf_event=no]) if test "$perf_event" != yes; then diff --git a/gdb/gdb.c b/gdb/gdb.c -index b97500e579..151545105c 100644 --- a/gdb/gdb.c +++ b/gdb/gdb.c @@ -20,11 +20,19 @@ @@ -59,7 +54,6 @@ index b97500e579..151545105c 100644 args.argc = argc; args.argv = argv; diff --git a/gdb/nat/linux-btrace.h b/gdb/nat/linux-btrace.h -index 118030190d..ba4e618b11 100644 --- a/gdb/nat/linux-btrace.h +++ b/gdb/nat/linux-btrace.h @@ -28,6 +28,177 @@ diff --git a/gdb-moribund-utrace-workaround.patch b/gdb-moribund-utrace-workaround.patch index a999619..36f985c 100644 --- a/gdb-moribund-utrace-workaround.patch +++ b/gdb-moribund-utrace-workaround.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-moribund-utrace-workaround.patch -FileName: gdb-moribund-utrace-workaround.patch - ;; Workaround non-stop moribund locations exploited by kernel utrace (BZ 590623). ;;=push+jan: Currently it is still not fully safe. @@ -14,10 +12,9 @@ http://sources.redhat.com/bugzilla/show_bug.cgi?id=11593 Bug in FSF GDB exploited by the ptrace-on-utrace interaction. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c -index 305bb3f6c0..0106ce8dd5 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c -@@ -12017,6 +12017,8 @@ update_global_location_list (enum ugll_insert_mode insert_mode) +@@ -12013,6 +12013,8 @@ update_global_location_list (enum ugll_insert_mode insert_mode) traps we can no longer explain. */ old_loc->events_till_retirement = 3 * (thread_count () + 1); diff --git a/gdb-opcodes-clflushopt-test.patch b/gdb-opcodes-clflushopt-test.patch index ed7b70c..f95999e 100644 --- a/gdb-opcodes-clflushopt-test.patch +++ b/gdb-opcodes-clflushopt-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-opcodes-clflushopt-test.patch -FileName: gdb-opcodes-clflushopt-test.patch - ;; Test clflushopt instruction decode (for RH BZ 1262471). ;;=fedoratest diff --git a/gdb-physname-pr11734-test.patch b/gdb-physname-pr11734-test.patch index 5901e46..e862eea 100644 --- a/gdb-physname-pr11734-test.patch +++ b/gdb-physname-pr11734-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-physname-pr11734-test.patch -FileName: gdb-physname-pr11734-test.patch - ;; Fix regressions on C++ names resolving (PR 11734, PR 12273, Keith Seitz). ;;=fedoratest diff --git a/gdb-physname-pr12273-test.patch b/gdb-physname-pr12273-test.patch index 4d826c7..6c943ad 100644 --- a/gdb-physname-pr12273-test.patch +++ b/gdb-physname-pr12273-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-physname-pr12273-test.patch -FileName: gdb-physname-pr12273-test.patch - ;; Fix regressions on C++ names resolving (PR 11734, PR 12273, Keith Seitz). ;;=fedoratest diff --git a/gdb-ppc-power7-test.patch b/gdb-ppc-power7-test.patch index 6d5fe6c..3ca7667 100644 --- a/gdb-ppc-power7-test.patch +++ b/gdb-ppc-power7-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-ppc-power7-test.patch -FileName: gdb-ppc-power7-test.patch - ;; Test power7 ppc disassembly. ;;=fedoratest diff --git a/gdb-python-gil.patch b/gdb-python-gil.patch index 9ba2b09..9ff2e45 100644 --- a/gdb-python-gil.patch +++ b/gdb-python-gil.patch @@ -3,13 +3,10 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-python-gil.patch -FileName: gdb-python-gil.patch - ;; Fix Python GIL with gdb.execute("continue") (Phil Muldoon, BZ 1116957). ;;=push diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi -index 4182b60ca3..fb074faf43 100644 --- a/gdb/doc/python.texi +++ b/gdb/doc/python.texi @@ -232,6 +232,14 @@ returned as a string. The default is @code{False}, in which case the @@ -28,7 +25,6 @@ index 4182b60ca3..fb074faf43 100644 @findex gdb.breakpoints diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h -index 26400f4fba..b8e2d9049d 100644 --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h @@ -148,6 +148,8 @@ typedef int Py_ssize_t; @@ -41,7 +37,6 @@ index 26400f4fba..b8e2d9049d 100644 #endif diff --git a/gdb/python/python.c b/gdb/python/python.c -index db37331dc4..4233b37fa8 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -556,12 +556,16 @@ execute_gdb_command (PyObject *self, PyObject *args, PyObject *kw) diff --git a/gdb-readline62-ask-more-rh.patch b/gdb-readline62-ask-more-rh.patch index a1f7e97..a1f1171 100644 --- a/gdb-readline62-ask-more-rh.patch +++ b/gdb-readline62-ask-more-rh.patch @@ -3,13 +3,10 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-readline62-ask-more-rh.patch -FileName: gdb-readline62-ask-more-rh.patch - ;; Work around readline-6.2 incompatibility not asking for --more-- (BZ 701131). ;;=fedora diff --git a/gdb/event-top.c b/gdb/event-top.c -index d9379b42c5..44d9a8c4e6 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -1183,6 +1183,13 @@ gdb_setup_readline (int editing) diff --git a/gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch b/gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch index f45095c..20e5f75 100644 --- a/gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch +++ b/gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch -FileName: gdb-rhbz-818343-set-solib-absolute-prefix-testcase.patch - ;; Testcase for `Setting solib-absolute-prefix breaks vDSO' (BZ 818343). ;;=fedoratest diff --git a/gdb-rhbz1007614-memleak-infpy_read_memory-test.patch b/gdb-rhbz1007614-memleak-infpy_read_memory-test.patch index a4ff75a..4d05ba5 100644 --- a/gdb-rhbz1007614-memleak-infpy_read_memory-test.patch +++ b/gdb-rhbz1007614-memleak-infpy_read_memory-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-rhbz1007614-memleak-infpy_read_memory-test.patch -FileName: gdb-rhbz1007614-memleak-infpy_read_memory-test.patch - ;; Fix 'memory leak in infpy_read_memory()' (RH BZ 1007614) ;;=fedoratest diff --git a/gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch b/gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch index eab1ca5..d92bfc3 100644 --- a/gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch +++ b/gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch -FileName: gdb-rhbz1084404-ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch - ;; Fix '[ppc64] and [s390x] wrong prologue skip on -O2 -g code' (Jan ;; Kratochvil, RH BZ 1084404). ;;=fedoratest diff --git a/gdb-rhbz1149205-catch-syscall-after-fork-test.patch b/gdb-rhbz1149205-catch-syscall-after-fork-test.patch index a1660dc..63c4051 100644 --- a/gdb-rhbz1149205-catch-syscall-after-fork-test.patch +++ b/gdb-rhbz1149205-catch-syscall-after-fork-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-rhbz1149205-catch-syscall-after-fork-test.patch -FileName: gdb-rhbz1149205-catch-syscall-after-fork-test.patch - ;; Fix '`catch syscall' doesn't work for parent after `fork' is called' ;; (Philippe Waroquiers, RH BZ 1149205). ;;=fedoratest diff --git a/gdb-rhbz1156192-recursive-dlopen-test.patch b/gdb-rhbz1156192-recursive-dlopen-test.patch index 31f5104..6ca0c7b 100644 --- a/gdb-rhbz1156192-recursive-dlopen-test.patch +++ b/gdb-rhbz1156192-recursive-dlopen-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-rhbz1156192-recursive-dlopen-test.patch -FileName: gdb-rhbz1156192-recursive-dlopen-test.patch - ;; Testcase for '[SAP] Recursive dlopen causes SAP HANA installer to ;; crash.' (RH BZ 1156192). ;;=fedoratest diff --git a/gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch b/gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch index 2b53ec5..21a1a08 100644 --- a/gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch +++ b/gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch -FileName: gdb-rhbz1186476-internal-error-unqualified-name-re-set-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). diff --git a/gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch b/gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch index 294b28d..b4e3109 100644 --- a/gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch +++ b/gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch -FileName: gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch - ;; [aarch64] Fix hardware watchpoints (RH BZ 1261564). ;;=fedoratest diff --git a/gdb-rhbz1325795-framefilters-test.patch b/gdb-rhbz1325795-framefilters-test.patch index 3a4050e..cfe309d 100644 --- a/gdb-rhbz1325795-framefilters-test.patch +++ b/gdb-rhbz1325795-framefilters-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-rhbz1325795-framefilters-test.patch -FileName: gdb-rhbz1325795-framefilters-test.patch - ;; New test for Python "Cannot locate object file for block" (for RH BZ 1325795). ;;=fedoratest diff --git a/gdb-rhbz1350436-type-printers-error.patch b/gdb-rhbz1350436-type-printers-error.patch index bec81e8..d06e121 100644 --- a/gdb-rhbz1350436-type-printers-error.patch +++ b/gdb-rhbz1350436-type-printers-error.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-rhbz1350436-type-printers-error.patch -FileName: gdb-rhbz1350436-type-printers-error.patch - ;; Test 'info type-printers' Python error (RH BZ 1350436). ;;=fedoratest @@ -15,7 +13,6 @@ https://bugzilla.redhat.com/show_bug.cgi?id=1350436 https://sourceware.org/ml/gdb-patches/2016-06/msg00455.html diff --git a/gdb/testsuite/gdb.python/py-typeprint.cc b/gdb/testsuite/gdb.python/py-typeprint.cc -index 8135a5aa26..fb961f347d 100644 --- a/gdb/testsuite/gdb.python/py-typeprint.cc +++ b/gdb/testsuite/gdb.python/py-typeprint.cc @@ -31,6 +31,12 @@ templ s; @@ -32,7 +29,6 @@ index 8135a5aa26..fb961f347d 100644 { return 0; diff --git a/gdb/testsuite/gdb.python/py-typeprint.exp b/gdb/testsuite/gdb.python/py-typeprint.exp -index 15135b6f12..885457a853 100644 --- a/gdb/testsuite/gdb.python/py-typeprint.exp +++ b/gdb/testsuite/gdb.python/py-typeprint.exp @@ -50,3 +50,7 @@ gdb_test_no_output "enable type-printer string" @@ -44,7 +40,6 @@ index 15135b6f12..885457a853 100644 + "info type-printers for other" +gdb_test "whatis ovar" "type = Another" diff --git a/gdb/testsuite/gdb.python/py-typeprint.py b/gdb/testsuite/gdb.python/py-typeprint.py -index db5ea71b3b..69fc8c3886 100644 --- a/gdb/testsuite/gdb.python/py-typeprint.py +++ b/gdb/testsuite/gdb.python/py-typeprint.py @@ -15,7 +15,7 @@ diff --git a/gdb-rhbz1398387-tab-crash-test.patch b/gdb-rhbz1398387-tab-crash-test.patch index 64a82e0..c8fe7b4 100644 --- a/gdb-rhbz1398387-tab-crash-test.patch +++ b/gdb-rhbz1398387-tab-crash-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-rhbz1398387-tab-crash-test.patch -FileName: gdb-rhbz1398387-tab-crash-test.patch - ;; New testcase for: Fix -completion crash (Gary Benson, RH BZ 1398387). ;;=fedoratest diff --git a/gdb-rhbz1553104-s390x-arch12-test.patch b/gdb-rhbz1553104-s390x-arch12-test.patch index 04394ee..2cb15e5 100644 --- a/gdb-rhbz1553104-s390x-arch12-test.patch +++ b/gdb-rhbz1553104-s390x-arch12-test.patch @@ -3,8 +3,6 @@ From: Jan Kratochvil Date: Fri, 23 Mar 2018 20:42:44 +0100 Subject: gdb-rhbz1553104-s390x-arch12-test.patch -FileName: gdb-rhbz1553104-s390x-arch12-test.patch - ;; [s390x] Backport arch12 instructions decoding (RH BZ 1553104). ;; =fedoratest diff --git a/gdb-rhbz795424-bitpos-20of25.patch b/gdb-rhbz795424-bitpos-20of25.patch index 8aad2e2..85691f0 100644 --- a/gdb-rhbz795424-bitpos-20of25.patch +++ b/gdb-rhbz795424-bitpos-20of25.patch @@ -1,9 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: Expand bitpos and type.length to LONGEST and ULONGEST - -FileName: gdb-rhbz795424-bitpos-20of25.patch +Subject: gdb-rhbz795424-bitpos-20of25.patch ;; Fix `GDB cannot access struct member whose offset is larger than 256MB' ;; (RH BZ 795424). @@ -473,10 +471,9 @@ Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=bitpos-main.patch diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c -index 908b83a49a..dd69f50785 100644 --- a/gdb/aarch64-linux-nat.c +++ b/gdb/aarch64-linux-nat.c -@@ -743,7 +743,7 @@ aarch64_linux_nat_target::remove_watchpoint (CORE_ADDR addr, int len, +@@ -808,7 +808,7 @@ aarch64_linux_nat_target::remove_watchpoint (CORE_ADDR addr, int len, /* Implement the "region_ok_for_hw_watchpoint" target_ops method. */ int @@ -486,7 +483,6 @@ index 908b83a49a..dd69f50785 100644 return aarch64_linux_region_ok_for_watchpoint (addr, len); } diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c -index eaf30585f5..1962e4f07e 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -78,7 +78,7 @@ static struct type *desc_bounds_type (struct type *); @@ -688,7 +684,7 @@ index eaf30585f5..1962e4f07e 100644 val = value_cast (value_type (component), val); -@@ -4468,7 +4470,7 @@ ensure_lval (struct value *val) +@@ -4462,7 +4464,7 @@ ensure_lval (struct value *val) if (VALUE_LVAL (val) == not_lval || VALUE_LVAL (val) == lval_internalvar) { @@ -697,7 +693,7 @@ index eaf30585f5..1962e4f07e 100644 const CORE_ADDR addr = value_as_long (value_allocate_space_in_inferior (len)); -@@ -4552,7 +4554,7 @@ static CORE_ADDR +@@ -4546,7 +4548,7 @@ static CORE_ADDR value_pointer (struct value *value, struct type *type) { struct gdbarch *gdbarch = get_type_arch (type); @@ -706,7 +702,7 @@ index eaf30585f5..1962e4f07e 100644 gdb_byte *buf = (gdb_byte *) alloca (len); CORE_ADDR addr; -@@ -6685,7 +6687,7 @@ value_tag_from_contents_and_address (struct type *type, +@@ -6657,7 +6659,7 @@ value_tag_from_contents_and_address (struct type *type, const gdb_byte *valaddr, CORE_ADDR address) { @@ -715,7 +711,7 @@ index eaf30585f5..1962e4f07e 100644 struct type *tag_type; if (find_struct_field ("_tag", type, 0, &tag_type, &tag_byte_offset, -@@ -7178,7 +7180,7 @@ ada_in_variant (LONGEST val, struct type *type, int field_num) +@@ -7150,7 +7152,7 @@ ada_in_variant (LONGEST val, struct type *type, int field_num) only in that it can handle packed values of arbitrary type. */ static struct value * @@ -724,7 +720,7 @@ index eaf30585f5..1962e4f07e 100644 struct type *arg_type) { struct type *type; -@@ -7190,7 +7192,7 @@ ada_value_primitive_field (struct value *arg1, int offset, int fieldno, +@@ -7162,7 +7164,7 @@ ada_value_primitive_field (struct value *arg1, int offset, int fieldno, if (TYPE_FIELD_BITSIZE (arg_type, fieldno) != 0) { @@ -733,7 +729,7 @@ index eaf30585f5..1962e4f07e 100644 int bit_size = TYPE_FIELD_BITSIZE (arg_type, fieldno); return ada_value_primitive_packed_val (arg1, value_contents (arg1), -@@ -7267,9 +7269,9 @@ ada_value_primitive_field (struct value *arg1, int offset, int fieldno, +@@ -7239,9 +7241,9 @@ ada_value_primitive_field (struct value *arg1, int offset, int fieldno, Returns 1 if found, 0 otherwise. */ static int @@ -745,7 +741,7 @@ index eaf30585f5..1962e4f07e 100644 int *index_p) { int i; -@@ -7288,8 +7290,8 @@ find_struct_field (const char *name, struct type *type, int offset, +@@ -7260,8 +7262,8 @@ find_struct_field (const char *name, struct type *type, int offset, for (i = 0; i < TYPE_NFIELDS (type); i += 1) { @@ -756,7 +752,7 @@ index eaf30585f5..1962e4f07e 100644 const char *t_field_name = TYPE_FIELD_NAME (type, i); if (t_field_name == NULL) -@@ -7391,7 +7393,7 @@ num_visible_fields (struct type *type) +@@ -7363,7 +7365,7 @@ num_visible_fields (struct type *type) long explanation in find_struct_field's function documentation. */ static struct value * @@ -765,7 +761,7 @@ index eaf30585f5..1962e4f07e 100644 struct type *type) { int i; -@@ -7439,7 +7441,7 @@ ada_search_struct_field (const char *name, struct value *arg, int offset, +@@ -7411,7 +7413,7 @@ ada_search_struct_field (const char *name, struct value *arg, int offset, int j; struct type *field_type = ada_check_typedef (TYPE_FIELD_TYPE (type, i)); @@ -774,7 +770,7 @@ index eaf30585f5..1962e4f07e 100644 for (j = 0; j < TYPE_NFIELDS (field_type); j += 1) { -@@ -7471,8 +7473,8 @@ ada_search_struct_field (const char *name, struct value *arg, int offset, +@@ -7443,8 +7445,8 @@ ada_search_struct_field (const char *name, struct value *arg, int offset, return NULL; } @@ -785,7 +781,7 @@ index eaf30585f5..1962e4f07e 100644 /* Return field #INDEX in ARG, where the index is that returned by -@@ -7481,7 +7483,7 @@ static struct value *ada_index_struct_field_1 (int *, struct value *, +@@ -7453,7 +7455,7 @@ static struct value *ada_index_struct_field_1 (int *, struct value *, * If found, return value, else return NULL. */ static struct value * @@ -794,7 +790,7 @@ index eaf30585f5..1962e4f07e 100644 struct type *type) { return ada_index_struct_field_1 (&index, arg, offset, type); -@@ -7493,7 +7495,7 @@ ada_index_struct_field (int index, struct value *arg, int offset, +@@ -7465,7 +7467,7 @@ ada_index_struct_field (int index, struct value *arg, int offset, * *INDEX_P. */ static struct value * @@ -803,7 +799,7 @@ index eaf30585f5..1962e4f07e 100644 struct type *type) { int i; -@@ -7583,7 +7585,8 @@ ada_value_struct_elt (struct value *arg, const char *name, int no_err) +@@ -7555,7 +7557,8 @@ ada_value_struct_elt (struct value *arg, const char *name, int no_err) v = ada_search_struct_field (name, arg, 0, t); else { @@ -813,7 +809,7 @@ index eaf30585f5..1962e4f07e 100644 struct type *field_type; CORE_ADDR address; -@@ -7927,8 +7930,8 @@ ada_coerce_ref (struct value *val0) +@@ -7899,8 +7902,8 @@ ada_coerce_ref (struct value *val0) /* Return OFF rounded upward if necessary to a multiple of ALIGNMENT (a power of 2). */ @@ -824,7 +820,7 @@ index eaf30585f5..1962e4f07e 100644 { return (off + alignment - 1) & ~(alignment - 1); } -@@ -8322,10 +8325,9 @@ ada_template_to_fixed_record_type_1 (struct type *type, +@@ -8290,10 +8293,9 @@ ada_template_to_fixed_record_type_1 (struct type *type, struct value *mark = value_mark (); struct value *dval; struct type *rtype; @@ -837,7 +833,7 @@ index eaf30585f5..1962e4f07e 100644 int f; /* Compute the number of fields in this record type that are going -@@ -8403,7 +8405,7 @@ ada_template_to_fixed_record_type_1 (struct type *type, +@@ -8370,7 +8372,7 @@ ada_template_to_fixed_record_type_1 (struct type *type, that follow this one. */ if (ada_is_aligner_type (field_type)) { @@ -846,7 +842,7 @@ index eaf30585f5..1962e4f07e 100644 field_valaddr = cond_offset_host (field_valaddr, field_offset); field_address = cond_offset_target (field_address, field_offset); -@@ -8539,11 +8541,11 @@ ada_template_to_fixed_record_type_1 (struct type *type, +@@ -8506,11 +8508,11 @@ ada_template_to_fixed_record_type_1 (struct type *type, if (TYPE_LENGTH (type) <= 0) { if (TYPE_NAME (rtype)) @@ -862,7 +858,7 @@ index eaf30585f5..1962e4f07e 100644 } else { -@@ -9009,7 +9011,8 @@ to_fixed_array_type (struct type *type0, struct value *dval, +@@ -8974,7 +8976,8 @@ to_fixed_array_type (struct type *type0, struct value *dval, type was a regular (non-packed) array type. As a result, the bitsize of the array elements needs to be set again, and the array length needs to be recomputed based on that bitsize. */ @@ -873,10 +869,9 @@ index eaf30585f5..1962e4f07e 100644 TYPE_FIELD_BITSIZE (result, 0) = TYPE_FIELD_BITSIZE (type0, 0); diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h -index a4192fc8a5..5a84ca8a35 100644 --- a/gdb/ada-lang.h +++ b/gdb/ada-lang.h -@@ -175,7 +175,7 @@ extern void ada_print_type (struct type *, const char *, struct ui_file *, int, +@@ -173,7 +173,7 @@ extern void ada_print_type (struct type *, const char *, struct ui_file *, int, extern void ada_print_typedef (struct type *type, struct symbol *new_symbol, struct ui_file *stream); @@ -885,7 +880,7 @@ index a4192fc8a5..5a84ca8a35 100644 struct ui_file *, int, struct value *, const struct value_print_options *); -@@ -190,7 +190,7 @@ extern void ada_emit_char (int, struct type *, struct ui_file *, int, int); +@@ -188,7 +188,7 @@ extern void ada_emit_char (int, struct type *, struct ui_file *, int, int); extern void ada_printchar (int, struct type *, struct ui_file *); extern void ada_printstr (struct ui_file *, struct type *, const gdb_byte *, @@ -894,7 +889,7 @@ index a4192fc8a5..5a84ca8a35 100644 const struct value_print_options *); struct value *ada_convert_actual (struct value *actual, -@@ -262,7 +262,7 @@ extern int ada_is_constrained_packed_array_type (struct type *); +@@ -261,7 +261,7 @@ extern int ada_is_constrained_packed_array_type (struct type *); extern struct value *ada_value_primitive_packed_val (struct value *, const gdb_byte *, @@ -904,7 +899,6 @@ index a4192fc8a5..5a84ca8a35 100644 extern struct type *ada_coerce_to_simple_array_type (struct type *); diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c -index 47ce897d01..9ef9b3c2f9 100644 --- a/gdb/ada-typeprint.c +++ b/gdb/ada-typeprint.c @@ -896,8 +896,8 @@ ada_print_type (struct type *type0, const char *varstring, @@ -929,7 +923,6 @@ index 47ce897d01..9ef9b3c2f9 100644 case TYPE_CODE_ENUM: if (show < 0) diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c -index a4869198a4..da5a9327e1 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -34,11 +34,11 @@ @@ -1077,10 +1070,9 @@ index a4869198a4..da5a9327e1 100644 struct value *val, const struct value_print_options *options) diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c -index 186690af30..338a0f2c87 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c -@@ -729,7 +729,7 @@ amd64_return_value (struct gdbarch *gdbarch, struct value *function, +@@ -727,7 +727,7 @@ amd64_return_value (struct gdbarch *gdbarch, struct value *function, gdb_byte *readbuf, const gdb_byte *writebuf) { enum amd64_reg_class theclass[2]; @@ -1089,24 +1081,20 @@ index 186690af30..338a0f2c87 100644 static int integer_regnum[] = { AMD64_RAX_REGNUM, AMD64_RDX_REGNUM }; static int sse_regnum[] = { AMD64_XMM0_REGNUM, AMD64_XMM1_REGNUM }; int integer_reg = 0; -@@ -845,11 +845,13 @@ amd64_return_value (struct gdbarch *gdbarch, struct value *function, - +@@ -844,10 +844,10 @@ amd64_return_value (struct gdbarch *gdbarch, struct value *function, gdb_assert (regnum != -1); -+ LONGEST nlen = len < 8 ? len : 8; -+ if (readbuf) -- regcache_raw_read_part (regcache, regnum, offset, std::min (len, 8), -+ regcache_raw_read_part (regcache, regnum, offset, nlen, - readbuf + i * 8); +- regcache->raw_read_part (regnum, offset, std::min (len, 8), ++ regcache->raw_read_part (regnum, offset, std::min (len, (LONGEST) 8), + readbuf + i * 8); if (writebuf) -- regcache_raw_write_part (regcache, regnum, offset, std::min (len, 8), -+ regcache_raw_write_part (regcache, regnum, offset, nlen, - writebuf + i * 8); +- regcache->raw_write_part (regnum, offset, std::min (len, 8), ++ regcache->raw_write_part (regnum, offset, std::min (len, (LONGEST) 8), + writebuf + i * 8); } diff --git a/gdb/annotate.c b/gdb/annotate.c -index 495aa2dba6..45e486ae64 100644 --- a/gdb/annotate.c +++ b/gdb/annotate.c @@ -531,21 +531,21 @@ annotate_frame_end (void) @@ -1136,7 +1124,6 @@ index 495aa2dba6..45e486ae64 100644 void diff --git a/gdb/annotate.h b/gdb/annotate.h -index 1b9d9dd034..d79ccc56ed 100644 --- a/gdb/annotate.h +++ b/gdb/annotate.h @@ -102,8 +102,8 @@ extern void annotate_frame_source_end (void); @@ -1151,7 +1138,6 @@ index 1b9d9dd034..d79ccc56ed 100644 extern void annotate_elt (void); extern void annotate_array_section_end (void); diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c -index e3cce491ee..d3117bdaa1 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -228,7 +228,7 @@ legacy_virtual_frame_pointer (struct gdbarch *gdbarch, @@ -1164,7 +1150,6 @@ index e3cce491ee..d3117bdaa1 100644 const struct floatformat **format = NULL; diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h -index 77ee9af2bf..e0bd701d5e 100644 --- a/gdb/arch-utils.h +++ b/gdb/arch-utils.h @@ -131,7 +131,7 @@ extern gdbarch_virtual_frame_pointer_ftype legacy_virtual_frame_pointer; @@ -1177,10 +1162,9 @@ index 77ee9af2bf..e0bd701d5e 100644 extern CORE_ADDR generic_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc); diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c -index 30030b4eb0..8e2abfb70c 100644 --- a/gdb/arm-linux-nat.c +++ b/gdb/arm-linux-nat.c -@@ -1104,7 +1104,7 @@ arm_linux_nat_target::remove_hw_breakpoint (struct gdbarch *gdbarch, +@@ -1098,7 +1098,7 @@ arm_linux_nat_target::remove_hw_breakpoint (struct gdbarch *gdbarch, /* Are we able to use a hardware watchpoint for the LEN bytes starting at ADDR? */ int @@ -1190,7 +1174,6 @@ index 30030b4eb0..8e2abfb70c 100644 const struct arm_linux_hwbp_cap *cap = arm_linux_get_hwbp_cap (); CORE_ADDR max_wp_length, aligned_addr; diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c -index 9a44d4b750..9961d92042 100644 --- a/gdb/ax-gdb.c +++ b/gdb/ax-gdb.c @@ -82,12 +82,12 @@ static void gen_traced_pop (struct agent_expr *, struct axs_value *); @@ -1290,7 +1273,6 @@ index 9a44d4b750..9961d92042 100644 int i, rslt; int nbases = TYPE_N_BASECLASSES (type); diff --git a/gdb/ax-general.c b/gdb/ax-general.c -index 360e91bf31..0804f1f907 100644 --- a/gdb/ax-general.c +++ b/gdb/ax-general.c @@ -177,7 +177,7 @@ ax_zero_ext (struct agent_expr *x, int n) @@ -1303,7 +1285,6 @@ index 360e91bf31..0804f1f907 100644 /* N must fit in a byte. */ if (n < 0 || n > 255) diff --git a/gdb/ax.h b/gdb/ax.h -index 6066b77076..d1c9d35030 100644 --- a/gdb/ax.h +++ b/gdb/ax.h @@ -193,7 +193,7 @@ extern void ax_ext (struct agent_expr *EXPR, int N); @@ -1316,7 +1297,6 @@ index 6066b77076..d1c9d35030 100644 /* Append a goto op to EXPR. OP is the actual op (must be aop_goto or aop_if_goto). We assume we don't know the target offset yet, diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c -index 0106ce8dd5..fe3a2d1350 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -2053,9 +2053,9 @@ should_be_inserted (struct bp_location *bl) @@ -1331,7 +1311,7 @@ index 0106ce8dd5..fe3a2d1350 100644 } return 0; } -@@ -6814,7 +6814,7 @@ breakpoint_address_match (const address_space *aspace1, CORE_ADDR addr1, +@@ -6819,7 +6819,7 @@ breakpoint_address_match (const address_space *aspace1, CORE_ADDR addr1, static int breakpoint_address_match_range (const address_space *aspace1, CORE_ADDR addr1, @@ -1340,7 +1320,7 @@ index 0106ce8dd5..fe3a2d1350 100644 CORE_ADDR addr2) { return ((gdbarch_has_global_breakpoints (target_gdbarch ()) -@@ -10906,7 +10906,7 @@ can_use_hardware_watchpoint (const std::vector &vals) +@@ -10902,7 +10902,7 @@ can_use_hardware_watchpoint (const std::vector &vals) && TYPE_CODE (vtype) != TYPE_CODE_ARRAY)) { CORE_ADDR vaddr = value_address (v); @@ -1350,10 +1330,9 @@ index 0106ce8dd5..fe3a2d1350 100644 len = (target_exact_watchpoints diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h -index 407cc531db..bc833e57eb 100644 --- a/gdb/breakpoint.h +++ b/gdb/breakpoint.h -@@ -251,7 +251,7 @@ struct bp_target_info +@@ -252,7 +252,7 @@ struct bp_target_info /* If this is a ranged breakpoint, then this field contains the length of the range that will be watched for execution. */ @@ -1362,7 +1341,7 @@ index 407cc531db..bc833e57eb 100644 /* If the breakpoint lives in memory and reading that memory would give back the breakpoint, instead of the original contents, then -@@ -428,7 +428,7 @@ public: +@@ -429,7 +429,7 @@ public: /* For hardware watchpoints, the size of the memory region being watched. For hardware ranged breakpoints, the size of the breakpoint range. */ @@ -1372,10 +1351,9 @@ index 407cc531db..bc833e57eb 100644 /* Type of hardware watchpoint. */ target_hw_bp_type watchpoint_type {}; diff --git a/gdb/c-lang.c b/gdb/c-lang.c -index 15e633f8c8..2bbfd9b721 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c -@@ -184,7 +184,7 @@ c_printchar (int c, struct type *type, struct ui_file *stream) +@@ -185,7 +185,7 @@ c_printchar (int c, struct type *type, struct ui_file *stream) void c_printstr (struct ui_file *stream, struct type *type, @@ -1384,7 +1362,7 @@ index 15e633f8c8..2bbfd9b721 100644 const char *user_encoding, int force_ellipses, const struct value_print_options *options) { -@@ -666,7 +666,7 @@ evaluate_subexp_c (struct type *expect_type, struct expression *exp, +@@ -664,7 +664,7 @@ evaluate_subexp_c (struct type *expect_type, struct expression *exp, } else { @@ -1393,7 +1371,7 @@ index 15e633f8c8..2bbfd9b721 100644 /* Write the terminating character. */ for (i = 0; i < TYPE_LENGTH (type); ++i) -@@ -675,7 +675,7 @@ evaluate_subexp_c (struct type *expect_type, struct expression *exp, +@@ -673,7 +673,7 @@ evaluate_subexp_c (struct type *expect_type, struct expression *exp, if (satisfy_expected) { LONGEST low_bound, high_bound; @@ -1403,10 +1381,9 @@ index 15e633f8c8..2bbfd9b721 100644 if (get_discrete_bounds (TYPE_INDEX_TYPE (expect_type), &low_bound, &high_bound) < 0) diff --git a/gdb/c-lang.h b/gdb/c-lang.h -index 18dedcc1fa..8afd3ee784 100644 --- a/gdb/c-lang.h +++ b/gdb/c-lang.h -@@ -77,7 +77,7 @@ extern void c_print_typedef (struct type *, +@@ -82,7 +82,7 @@ extern void c_print_typedef (struct type *, struct ui_file *); extern void c_val_print (struct type *, @@ -1415,7 +1392,7 @@ index 18dedcc1fa..8afd3ee784 100644 struct ui_file *, int, struct value *, const struct value_print_options *); -@@ -97,7 +97,7 @@ extern void c_printchar (int, struct type *, struct ui_file *); +@@ -102,7 +102,7 @@ extern void c_printchar (int, struct type *, struct ui_file *); extern void c_printstr (struct ui_file * stream, struct type *elttype, const gdb_byte *string, @@ -1424,33 +1401,7 @@ index 18dedcc1fa..8afd3ee784 100644 const char *user_encoding, int force_ellipses, const struct value_print_options *options); -diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c -index cb793f0770..fad41891e2 100644 ---- a/gdb/c-typeprint.c -+++ b/gdb/c-typeprint.c -@@ -934,7 +934,8 @@ c_print_type_union_field_offset (struct type *type, unsigned int field_idx, - { - struct type *ftype = check_typedef (TYPE_FIELD_TYPE (type, field_idx)); - -- fprintf_filtered (stream, "/* %4u */", TYPE_LENGTH (ftype)); -+ fprintf_filtered (stream, "/* %4s */", -+ pulongest (TYPE_LENGTH (ftype))); - } - - /* Helper function for ptype/o implementation that prints information -@@ -1530,8 +1531,8 @@ c_type_print_base_struct_union (struct type *type, struct ui_file *stream, - print_spaces_filtered_with_print_options (level + 4, - stream, - flags); -- fprintf_filtered (stream, "/* total size (bytes): %4u */\n", -- TYPE_LENGTH (type)); -+ fprintf_filtered (stream, "/* total size (bytes): %4s */\n", -+ pulongest (TYPE_LENGTH (type))); - } - - print_spaces_filtered (OFFSET_SPC_LEN, stream); diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c -index 3904fab260..a3b8e2551b 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -247,7 +247,7 @@ c_val_print_array (struct type *type, const gdb_byte *valaddr, @@ -1492,7 +1443,6 @@ index 3904fab260..a3b8e2551b 100644 struct value *original_value, const struct value_print_options *options) diff --git a/gdb/compile/compile-c-support.c b/gdb/compile/compile-c-support.c -index e694648288..43ed5a375a 100644 --- a/gdb/compile/compile-c-support.c +++ b/gdb/compile/compile-c-support.c @@ -307,11 +307,11 @@ generate_register_struct (struct ui_file *stream, struct gdbarch *gdbarch, @@ -1510,7 +1460,6 @@ index e694648288..43ed5a375a 100644 fputs_unfiltered (";\n", stream); } diff --git a/gdb/cp-abi.c b/gdb/cp-abi.c -index eb2f01444d..2f65bffa1d 100644 --- a/gdb/cp-abi.c +++ b/gdb/cp-abi.c @@ -64,12 +64,12 @@ is_operator_name (const char *name) @@ -1538,7 +1487,6 @@ index eb2f01444d..2f65bffa1d 100644 if ((current_cp_abi.virtual_fn_field) == NULL) return NULL; diff --git a/gdb/cp-abi.h b/gdb/cp-abi.h -index 8f2e4d9a66..86490a2c46 100644 --- a/gdb/cp-abi.h +++ b/gdb/cp-abi.h @@ -108,7 +108,7 @@ extern struct value *value_virtual_fn_field (struct value **valuep, @@ -1585,7 +1533,6 @@ index 8f2e4d9a66..86490a2c46 100644 struct type *type, struct ui_file *stream); diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c -index e019a60791..25f1512857 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -335,7 +335,7 @@ cp_print_value_fields (struct type *type, struct type *real_type, @@ -1598,10 +1545,9 @@ index e019a60791..25f1512857 100644 if (valprint_check_validity (stream, i_type, i_offset, val)) diff --git a/gdb/d-lang.h b/gdb/d-lang.h -index 391ea8665b..a8e72ae506 100644 --- a/gdb/d-lang.h +++ b/gdb/d-lang.h -@@ -81,7 +81,7 @@ extern struct block_symbol d_lookup_nested_symbol (struct type *, const char *, +@@ -79,7 +79,7 @@ extern struct block_symbol d_lookup_nested_symbol (struct type *, const char *, /* Defined in d-valprint.c */ extern void d_val_print (struct type *type, @@ -1611,7 +1557,6 @@ index 391ea8665b..a8e72ae506 100644 struct value *val, const struct value_print_options *options); diff --git a/gdb/d-valprint.c b/gdb/d-valprint.c -index 579d3c8c91..9dd430b2bc 100644 --- a/gdb/d-valprint.c +++ b/gdb/d-valprint.c @@ -73,7 +73,7 @@ dynamic_array_type (struct type *type, @@ -1624,7 +1569,6 @@ index 579d3c8c91..9dd430b2bc 100644 struct value *val, const struct value_print_options *options) diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c -index cfca1c2751..d91d69155d 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -1817,7 +1817,7 @@ rw_pieced_value (struct value *v, struct value *from) @@ -1688,10 +1632,9 @@ index cfca1c2751..d91d69155d 100644 if (subobj_byte_offset + len > max) diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index d69f154af3..420c3e6bd5 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -2024,12 +2024,12 @@ dwarf2_complex_location_expr_complaint (void) +@@ -2021,11 +2021,11 @@ dwarf2_complex_location_expr_complaint (void) } static void @@ -1700,15 +1643,14 @@ index d69f154af3..420c3e6bd5 100644 +dwarf2_const_value_length_mismatch_complaint (const char *arg1, LONGEST arg2, + LONGEST arg3) { - complaint (&symfile_complaints, -- _("const value length mismatch for '%s', got %d, expected %d"), +- complaint (_("const value length mismatch for '%s', got %d, expected %d"), - arg1, arg2, arg3); -+ _("const value length mismatch for '%s', got %s, expected %s"), ++ complaint (_("const value length mismatch for '%s', got %s, expected %s"), + arg1, plongest (arg2), plongest (arg3)); } static void -@@ -15004,8 +15004,8 @@ dwarf2_add_field (struct field_info *fip, struct die_info *die, +@@ -14934,8 +14934,8 @@ dwarf2_add_field (struct field_info *fip, struct die_info *die, object, and then subtract off the number of bits of the field itself. The result is the bit offset of the LSB of the field. */ @@ -1720,7 +1662,6 @@ index d69f154af3..420c3e6bd5 100644 attr = dwarf2_attr (die, DW_AT_byte_size, cu); if (attr) diff --git a/gdb/eval.c b/gdb/eval.c -index 50dde3ed4f..44259cd964 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -295,7 +295,8 @@ evaluate_struct_tuple (struct value *struct_val, @@ -1776,7 +1717,6 @@ index 50dde3ed4f..44259cd964 100644 if (get_discrete_bounds (range_type, &low_bound, &high_bound) < 0) diff --git a/gdb/f-lang.c b/gdb/f-lang.c -index 81922f73fb..9d19c114e2 100644 --- a/gdb/f-lang.c +++ b/gdb/f-lang.c @@ -101,7 +101,7 @@ f_printchar (int c, struct type *type, struct ui_file *stream) @@ -1789,10 +1729,9 @@ index 81922f73fb..9d19c114e2 100644 { const char *type_encoding = f_get_encoding (type); diff --git a/gdb/f-lang.h b/gdb/f-lang.h -index e9d0f3a857..9171a13bdf 100644 --- a/gdb/f-lang.h +++ b/gdb/f-lang.h -@@ -30,7 +30,7 @@ extern void f_yyerror (const char *); /* Defined in f-exp.y */ +@@ -28,7 +28,7 @@ extern int f_parse (struct parser_state *); extern void f_print_type (struct type *, const char *, struct ui_file *, int, int, const struct type_print_options *); @@ -1802,7 +1741,6 @@ index e9d0f3a857..9171a13bdf 100644 struct value *, const struct value_print_options *); diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c -index b4067a8460..0772f359f0 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -36,7 +36,7 @@ @@ -1862,7 +1800,6 @@ index b4067a8460..0772f359f0 100644 struct value *original_value, const struct value_print_options *options) diff --git a/gdb/findvar.c b/gdb/findvar.c -index 8ad5e25cb2..fcd0a0cdc9 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -821,7 +821,7 @@ struct value * @@ -1893,10 +1830,9 @@ index 8ad5e25cb2..fcd0a0cdc9 100644 /* If the register length is larger than the number of bytes remaining to copy, then only copy the appropriate bytes. */ diff --git a/gdb/frame.c b/gdb/frame.c -index 07fa2bc77d..b5a2c50ec9 100644 --- a/gdb/frame.c +++ b/gdb/frame.c -@@ -1382,7 +1382,7 @@ deprecated_frame_register_read (struct frame_info *frame, int regnum, +@@ -1396,7 +1396,7 @@ deprecated_frame_register_read (struct frame_info *frame, int regnum, int get_frame_register_bytes (struct frame_info *frame, int regnum, @@ -1905,7 +1841,7 @@ index 07fa2bc77d..b5a2c50ec9 100644 int *optimizedp, int *unavailablep) { struct gdbarch *gdbarch = get_frame_arch (frame); -@@ -1411,7 +1411,7 @@ get_frame_register_bytes (struct frame_info *frame, int regnum, +@@ -1425,7 +1425,7 @@ get_frame_register_bytes (struct frame_info *frame, int regnum, } if (len > maxsize) error (_("Bad debug information detected: " @@ -1915,10 +1851,9 @@ index 07fa2bc77d..b5a2c50ec9 100644 /* Copy the data. */ while (len > 0) diff --git a/gdb/frame.h b/gdb/frame.h -index d5800b78c2..ec70d94b58 100644 --- a/gdb/frame.h +++ b/gdb/frame.h -@@ -601,7 +601,7 @@ extern void put_frame_register (struct frame_info *frame, int regnum, +@@ -620,7 +620,7 @@ extern void put_frame_register (struct frame_info *frame, int regnum, contents are optimized out or unavailable, set *OPTIMIZEDP, *UNAVAILABLEP accordingly. */ extern int get_frame_register_bytes (struct frame_info *frame, int regnum, @@ -1928,10 +1863,9 @@ index d5800b78c2..ec70d94b58 100644 int *optimizedp, int *unavailablep); diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c -index c430ebe52a..6196bf8541 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c -@@ -1795,7 +1795,7 @@ set_gdbarch_wchar_signed (struct gdbarch *gdbarch, +@@ -1794,7 +1794,7 @@ set_gdbarch_wchar_signed (struct gdbarch *gdbarch, } const struct floatformat ** @@ -1941,7 +1875,6 @@ index c430ebe52a..6196bf8541 100644 gdb_assert (gdbarch != NULL); gdb_assert (gdbarch->floatformat_for_type != NULL); diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h -index 09edcd5eb2..ccb3cf87b8 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -193,8 +193,8 @@ extern void set_gdbarch_wchar_signed (struct gdbarch *gdbarch, int wchar_signed) @@ -1956,7 +1889,6 @@ index 09edcd5eb2..ccb3cf87b8 100644 /* For most targets, a pointer on the target and its representation as an diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh -index 7330430937..9258e61843 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -385,7 +385,7 @@ v;int;wchar_signed;;;1;-1;1 @@ -1969,10 +1901,9 @@ index 7330430937..9258e61843 100755 # For most targets, a pointer on the target and its representation as an # address in GDB have the same size and "look the same". For such a diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c -index 2aa5253100..06f48d3629 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c -@@ -2925,7 +2925,7 @@ floatformat_from_type (const struct type *type) +@@ -2906,7 +2906,7 @@ floatformat_from_type (const struct type *type) least as long as OBJFILE. */ struct type * @@ -1981,7 +1912,7 @@ index 2aa5253100..06f48d3629 100644 const char *name) { struct type *type; -@@ -3379,8 +3379,8 @@ is_public_ancestor (struct type *base, struct type *dclass) +@@ -3360,8 +3360,8 @@ is_public_ancestor (struct type *base, struct type *dclass) static int is_unique_ancestor_worker (struct type *base, struct type *dclass, @@ -1992,7 +1923,7 @@ index 2aa5253100..06f48d3629 100644 CORE_ADDR address, struct value *val) { int i, count = 0; -@@ -3391,7 +3391,7 @@ is_unique_ancestor_worker (struct type *base, struct type *dclass, +@@ -3372,7 +3372,7 @@ is_unique_ancestor_worker (struct type *base, struct type *dclass, for (i = 0; i < TYPE_N_BASECLASSES (dclass) && count < 2; ++i) { struct type *iter; @@ -2001,7 +1932,7 @@ index 2aa5253100..06f48d3629 100644 iter = check_typedef (TYPE_BASECLASS (dclass, i)); -@@ -3432,7 +3432,7 @@ is_unique_ancestor_worker (struct type *base, struct type *dclass, +@@ -3413,7 +3413,7 @@ is_unique_ancestor_worker (struct type *base, struct type *dclass, int is_unique_ancestor (struct type *base, struct value *val) { @@ -2010,7 +1941,7 @@ index 2aa5253100..06f48d3629 100644 return is_unique_ancestor_worker (base, value_type (val), &offset, value_contents_for_printing (val), -@@ -4677,7 +4677,7 @@ recursive_dump_type (struct type *type, int spaces) +@@ -4642,7 +4642,7 @@ recursive_dump_type (struct type *type, int spaces) break; } puts_filtered ("\n"); @@ -2019,7 +1950,7 @@ index 2aa5253100..06f48d3629 100644 if (TYPE_OBJFILE_OWNED (type)) { printfi_filtered (spaces, "objfile "); -@@ -5122,7 +5122,7 @@ copy_type (const struct type *type) +@@ -5085,7 +5085,7 @@ copy_type (const struct type *type) struct type * arch_type (struct gdbarch *gdbarch, @@ -2029,10 +1960,9 @@ index 2aa5253100..06f48d3629 100644 struct type *type; diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h -index cf1346161d..330e14d831 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h -@@ -876,7 +876,7 @@ struct type +@@ -862,7 +862,7 @@ struct type type_length_units function should be used in order to get the length expressed in target addressable memory units. */ @@ -2041,7 +1971,7 @@ index cf1346161d..330e14d831 100644 /* * Core type, shared by a group of qualified types. */ -@@ -1798,7 +1798,7 @@ extern unsigned int type_length_units (struct type *type); +@@ -1783,7 +1783,7 @@ extern unsigned int type_length_units (struct type *type); /* * Helper function to construct objfile-owned types. */ @@ -2050,7 +1980,7 @@ index cf1346161d..330e14d831 100644 const char *); extern struct type *init_integer_type (struct objfile *, int, int, const char *); -@@ -1815,7 +1815,7 @@ extern struct type *init_pointer_type (struct objfile *, int, const char *, +@@ -1800,7 +1800,7 @@ extern struct type *init_pointer_type (struct objfile *, int, const char *, struct type *); /* Helper functions to construct architecture-owned types. */ @@ -2060,7 +1990,6 @@ index cf1346161d..330e14d831 100644 extern struct type *arch_integer_type (struct gdbarch *, int, int, const char *); diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c -index 8a64157c55..ef1f851a91 100644 --- a/gdb/gnu-v2-abi.c +++ b/gdb/gnu-v2-abi.c @@ -82,7 +82,7 @@ gnuv2_is_operator_name (const char *name) @@ -2101,7 +2030,6 @@ index 8a64157c55..ef1f851a91 100644 embedded_offset, address, val); diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c -index ddbec13891..9334837c89 100644 --- a/gdb/gnu-v3-abi.c +++ b/gdb/gnu-v3-abi.c @@ -109,7 +109,7 @@ build_gdb_vtable_type (struct gdbarch *arch) @@ -2168,10 +2096,9 @@ index ddbec13891..9334837c89 100644 if (BASETYPE_VIA_VIRTUAL (domain, i)) diff --git a/gdb/go-lang.h b/gdb/go-lang.h -index 84af9389e7..0691f3914e 100644 --- a/gdb/go-lang.h +++ b/gdb/go-lang.h -@@ -85,7 +85,7 @@ extern void go_print_type (struct type *type, const char *varstring, +@@ -83,7 +83,7 @@ extern void go_print_type (struct type *type, const char *varstring, /* Defined in go-valprint.c. */ extern void go_val_print (struct type *type, @@ -2181,7 +2108,6 @@ index 84af9389e7..0691f3914e 100644 struct value *val, const struct value_print_options *options); diff --git a/gdb/go-valprint.c b/gdb/go-valprint.c -index eccf9a8181..4cca802e59 100644 --- a/gdb/go-valprint.c +++ b/gdb/go-valprint.c @@ -86,7 +86,7 @@ print_go_string (struct type *type, @@ -2194,10 +2120,9 @@ index eccf9a8181..4cca802e59 100644 struct value *val, const struct value_print_options *options) diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c -index a0e872c01f..d67e2e40c5 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c -@@ -8177,7 +8177,7 @@ i386_fast_tracepoint_valid_at (struct gdbarch *gdbarch, CORE_ADDR addr, +@@ -8153,7 +8153,7 @@ i386_fast_tracepoint_valid_at (struct gdbarch *gdbarch, CORE_ADDR addr, const struct floatformat ** i386_floatformat_for_type (struct gdbarch *gdbarch, @@ -2207,10 +2132,9 @@ index a0e872c01f..d67e2e40c5 100644 if (len == 128 && name) if (strcmp (name, "__float128") == 0 diff --git a/gdb/language.c b/gdb/language.c -index 22199e0c0d..5b7c4871b2 100644 --- a/gdb/language.c +++ b/gdb/language.c -@@ -773,7 +773,7 @@ unk_lang_printchar (int c, struct type *type, struct ui_file *stream) +@@ -766,7 +766,7 @@ unk_lang_printchar (int c, struct type *type, struct ui_file *stream) static void unk_lang_printstr (struct ui_file *stream, struct type *type, @@ -2219,7 +2143,7 @@ index 22199e0c0d..5b7c4871b2 100644 const char *encoding, int force_ellipses, const struct value_print_options *options) { -@@ -792,7 +792,7 @@ unk_lang_print_type (struct type *type, const char *varstring, +@@ -785,7 +785,7 @@ unk_lang_print_type (struct type *type, const char *varstring, static void unk_lang_val_print (struct type *type, @@ -2229,10 +2153,9 @@ index 22199e0c0d..5b7c4871b2 100644 struct value *val, const struct value_print_options *options) diff --git a/gdb/language.h b/gdb/language.h -index 029de4a7ab..2c0308fa93 100644 --- a/gdb/language.h +++ b/gdb/language.h -@@ -188,7 +188,7 @@ struct language_defn +@@ -184,7 +184,7 @@ struct language_defn struct ui_file * stream); void (*la_printstr) (struct ui_file * stream, struct type *elttype, @@ -2241,7 +2164,7 @@ index 029de4a7ab..2c0308fa93 100644 const char *encoding, int force_ellipses, const struct value_print_options *); -@@ -226,7 +226,7 @@ struct language_defn +@@ -222,7 +222,7 @@ struct language_defn printing. */ void (*la_val_print) (struct type *type, @@ -2251,7 +2174,6 @@ index 029de4a7ab..2c0308fa93 100644 struct value *val, const struct value_print_options *options); diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c -index 6e6434b846..9595d379f3 100644 --- a/gdb/m2-lang.c +++ b/gdb/m2-lang.c @@ -103,10 +103,10 @@ m2_printchar (int c, struct type *type, struct ui_file *stream) @@ -2289,10 +2211,9 @@ index 6e6434b846..9595d379f3 100644 things_printed += options->repeat_count_threshold; need_comma = 1; diff --git a/gdb/m2-lang.h b/gdb/m2-lang.h -index d7e1aec673..67f98f7d10 100644 --- a/gdb/m2-lang.h +++ b/gdb/m2-lang.h -@@ -34,7 +34,7 @@ extern void m2_print_typedef (struct type *, struct symbol *, +@@ -32,7 +32,7 @@ extern void m2_print_typedef (struct type *, struct symbol *, extern int m2_is_long_set (struct type *type); extern int m2_is_unbounded_array (struct type *type); @@ -2302,7 +2223,6 @@ index d7e1aec673..67f98f7d10 100644 struct value *, const struct value_print_options *); diff --git a/gdb/m2-typeprint.c b/gdb/m2-typeprint.c -index 27e9429211..4578ca2954 100644 --- a/gdb/m2-typeprint.c +++ b/gdb/m2-typeprint.c @@ -234,9 +234,12 @@ static void m2_array (struct type *type, struct ui_file *stream, @@ -2322,7 +2242,6 @@ index 27e9429211..4578ca2954 100644 fprintf_filtered (stream, "] OF "); m2_print_type (TYPE_TARGET_TYPE (type), "", stream, show, level, flags); diff --git a/gdb/m2-valprint.c b/gdb/m2-valprint.c -index 63c1560c6f..6991403f15 100644 --- a/gdb/m2-valprint.c +++ b/gdb/m2-valprint.c @@ -35,7 +35,7 @@ static int print_unpacked_pointer (struct type *type, @@ -2395,7 +2314,6 @@ index 63c1560c6f..6991403f15 100644 fputs_filtered ("{", stream); diff --git a/gdb/memrange.c b/gdb/memrange.c -index 2a337cc3cd..74f4c95ca9 100644 --- a/gdb/memrange.c +++ b/gdb/memrange.c @@ -22,8 +22,8 @@ @@ -2410,7 +2328,6 @@ index 2a337cc3cd..74f4c95ca9 100644 ULONGEST h, l; diff --git a/gdb/memrange.h b/gdb/memrange.h -index 46088ade53..038cd2f92c 100644 --- a/gdb/memrange.h +++ b/gdb/memrange.h @@ -28,7 +28,7 @@ struct mem_range @@ -2441,10 +2358,9 @@ index 46088ade53..038cd2f92c 100644 /* Returns true if ADDR is in RANGE. */ diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c -index a9f0b79076..36887b35cb 100644 --- a/gdb/mips-linux-nat.c +++ b/gdb/mips-linux-nat.c -@@ -622,7 +622,7 @@ mips_linux_nat_target::stopped_data_address (CORE_ADDR *paddr) +@@ -614,7 +614,7 @@ mips_linux_nat_target::stopped_data_address (CORE_ADDR *paddr) the specified region can be covered by the watch registers. */ int @@ -2454,7 +2370,6 @@ index a9f0b79076..36887b35cb 100644 struct pt_watch_regs dummy_regs; int i; diff --git a/gdb/nat/x86-dregs.c b/gdb/nat/x86-dregs.c -index 7604a36342..1ea4a3b107 100644 --- a/gdb/nat/x86-dregs.c +++ b/gdb/nat/x86-dregs.c @@ -380,7 +380,7 @@ x86_remove_aligned_watchpoint (struct x86_debug_reg_state *state, @@ -2476,7 +2391,6 @@ index 7604a36342..1ea4a3b107 100644 int nregs; diff --git a/gdb/nat/x86-dregs.h b/gdb/nat/x86-dregs.h -index e86e83aea0..4ce1a979a3 100644 --- a/gdb/nat/x86-dregs.h +++ b/gdb/nat/x86-dregs.h @@ -116,7 +116,7 @@ extern int x86_dr_remove_watchpoint (struct x86_debug_reg_state *state, @@ -2489,7 +2403,6 @@ index e86e83aea0..4ce1a979a3 100644 /* If the inferior has some break/watchpoint that triggered, set the address associated with that break/watchpoint and return true. diff --git a/gdb/opencl-lang.c b/gdb/opencl-lang.c -index 8af63f7620..62b8d4777b 100644 --- a/gdb/opencl-lang.c +++ b/gdb/opencl-lang.c @@ -76,11 +76,11 @@ builtin_opencl_type (struct gdbarch *gdbarch) @@ -2561,7 +2474,6 @@ index 8af63f7620..62b8d4777b 100644 if (!value_bits_synthetic_pointer (c->val, c->indices[i] * elsize + comp_offset, diff --git a/gdb/p-lang.c b/gdb/p-lang.c -index 3ff7f5694f..b3684d93fa 100644 --- a/gdb/p-lang.c +++ b/gdb/p-lang.c @@ -93,8 +93,8 @@ pascal_main_name (void) @@ -2612,10 +2524,9 @@ index 3ff7f5694f..b3684d93fa 100644 things_printed += options->repeat_count_threshold; need_comma = 1; diff --git a/gdb/p-lang.h b/gdb/p-lang.h -index 61ee752fe7..5510447e3f 100644 --- a/gdb/p-lang.h +++ b/gdb/p-lang.h -@@ -36,7 +36,7 @@ extern void pascal_print_type (struct type *, const char *, struct ui_file *, +@@ -34,7 +34,7 @@ extern void pascal_print_type (struct type *, const char *, struct ui_file *, extern void pascal_print_typedef (struct type *, struct symbol *, struct ui_file *); @@ -2624,7 +2535,7 @@ index 61ee752fe7..5510447e3f 100644 CORE_ADDR, struct ui_file *, int, struct value *, const struct value_print_options *); -@@ -50,13 +50,13 @@ extern void pascal_type_print_method_args (const char *, const char *, +@@ -48,13 +48,13 @@ extern void pascal_type_print_method_args (const char *, const char *, /* These are in p-lang.c: */ extern int @@ -2641,7 +2552,6 @@ index 61ee752fe7..5510447e3f 100644 extern struct type **const pascal_builtin_types[]; diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c -index 933dbfb6c4..e5c1b07040 100644 --- a/gdb/p-valprint.c +++ b/gdb/p-valprint.c @@ -60,7 +60,7 @@ static const struct generic_val_print_decorations p_decorations = @@ -2665,10 +2575,9 @@ index 933dbfb6c4..e5c1b07040 100644 CORE_ADDR addr; int want_space = 0; diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c -index 1423339339..b70f168106 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c -@@ -1496,7 +1496,7 @@ ppc_linux_nat_target::can_use_hw_breakpoint (enum bptype type, int cnt, int ot) +@@ -1308,7 +1308,7 @@ ppc_linux_nat_target::can_use_hw_breakpoint (enum bptype type, int cnt, int ot) } int @@ -2678,10 +2587,9 @@ index 1423339339..b70f168106 100644 /* Handle sub-8-byte quantities. */ if (len <= 0) diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c -index 6d3a64c4f0..3ace6096dd 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c -@@ -1637,7 +1637,7 @@ ppc_init_linux_record_tdep (struct linux_record_tdep *record_tdep, +@@ -1706,7 +1706,7 @@ ppc_init_linux_record_tdep (struct linux_record_tdep *record_tdep, const struct floatformat ** ppc_floatformat_for_type (struct gdbarch *gdbarch, @@ -2691,7 +2599,6 @@ index 6d3a64c4f0..3ace6096dd 100644 if (len == 128 && name) { diff --git a/gdb/printcmd.c b/gdb/printcmd.c -index c921022a59..f34b1535af 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -275,7 +275,7 @@ print_formatted (struct value *val, int size, @@ -2713,7 +2620,6 @@ index c921022a59..f34b1535af 100644 /* String printing should go through val_print_scalar_formatted. */ diff --git a/gdb/procfs.c b/gdb/procfs.c -index 70619f1c15..ca7cc221f9 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -3358,7 +3358,7 @@ procfs_target::remove_watchpoint (CORE_ADDR addr, int len, @@ -2726,53 +2632,37 @@ index 70619f1c15..ca7cc221f9 100644 /* The man page for proc(4) on Solaris 2.6 and up says that the system can support "thousands" of hardware watchpoints, but gives diff --git a/gdb/regcache.c b/gdb/regcache.c -index 83bcbd22a3..f810752102 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c -@@ -846,7 +846,7 @@ regcache::cooked_write (int regnum, const gdb_byte *buf) - operation. */ +@@ -795,7 +795,7 @@ regcache::cooked_write (int regnum, const gdb_byte *buf) + /* See regcache.h. */ enum register_status --readable_regcache::read_part (int regnum, int offset, int len, void *in, -+readable_regcache::read_part (int regnum, LONGEST offset, LONGEST len, void *in, - bool is_raw) +-readable_regcache::read_part (int regnum, int offset, int len, ++readable_regcache::read_part (int regnum, LONGEST offset, LONGEST len, + gdb_byte *out, bool is_raw) { - struct gdbarch *gdbarch = arch (); -@@ -875,7 +875,7 @@ readable_regcache::read_part (int regnum, int offset, int len, void *in, - } + int reg_size = register_size (arch (), regnum); +@@ -862,7 +862,7 @@ reg_buffer::raw_collect_part (int regnum, int offset, int len, + /* See regcache.h. */ enum register_status -regcache::write_part (int regnum, int offset, int len, +regcache::write_part (int regnum, LONGEST offset, LONGEST len, - const void *out, bool is_raw) + const gdb_byte *in, bool is_raw) { - struct gdbarch *gdbarch = arch (); -@@ -913,13 +913,14 @@ regcache::write_part (int regnum, int offset, int len, - - enum register_status - regcache_raw_read_part (struct regcache *regcache, int regnum, -- int offset, int len, gdb_byte *buf) -+ int offset, LONGEST len, gdb_byte *buf) - { - return regcache->raw_read_part (regnum, offset, len, buf); + int reg_size = register_size (arch (), regnum); +@@ -933,7 +933,7 @@ reg_buffer::raw_supply_part (int regnum, int offset, int len, } enum register_status --readable_regcache::raw_read_part (int regnum, int offset, int len, gdb_byte *buf) +-readable_regcache::raw_read_part (int regnum, int offset, int len, +readable_regcache::raw_read_part (int regnum, int offset, LONGEST len, -+ gdb_byte *buf) + gdb_byte *buf) { assert_regnum (regnum); - return read_part (regnum, offset, len, buf, true); -@@ -927,13 +928,13 @@ readable_regcache::raw_read_part (int regnum, int offset, int len, gdb_byte *buf - - void - regcache_raw_write_part (struct regcache *regcache, int regnum, -- int offset, int len, const gdb_byte *buf) -+ int offset, LONGEST len, const gdb_byte *buf) - { - regcache->raw_write_part (regnum, offset, len, buf); - } +@@ -943,7 +943,7 @@ readable_regcache::raw_read_part (int regnum, int offset, int len, + /* See regcache.h. */ void -regcache::raw_write_part (int regnum, int offset, int len, @@ -2780,16 +2670,8 @@ index 83bcbd22a3..f810752102 100644 const gdb_byte *buf) { assert_regnum (regnum); -@@ -942,14 +943,14 @@ regcache::raw_write_part (int regnum, int offset, int len, - - enum register_status - regcache_cooked_read_part (struct regcache *regcache, int regnum, -- int offset, int len, gdb_byte *buf) -+ LONGEST offset, LONGEST len, gdb_byte *buf) - { - return regcache->cooked_read_part (regnum, offset, len, buf); - } - +@@ -953,7 +953,7 @@ regcache::raw_write_part (int regnum, int offset, int len, + /* See regcache.h. */ enum register_status -readable_regcache::cooked_read_part (int regnum, int offset, int len, @@ -2797,15 +2679,8 @@ index 83bcbd22a3..f810752102 100644 gdb_byte *buf) { gdb_assert (regnum >= 0 && regnum < m_descr->nr_cooked_registers); -@@ -958,13 +959,13 @@ readable_regcache::cooked_read_part (int regnum, int offset, int len, - - void - regcache_cooked_write_part (struct regcache *regcache, int regnum, -- int offset, int len, const gdb_byte *buf) -+ LONGEST offset, LONGEST len, const gdb_byte *buf) - { - regcache->cooked_write_part (regnum, offset, len, buf); - } +@@ -963,7 +963,7 @@ readable_regcache::cooked_read_part (int regnum, int offset, int len, + /* See regcache.h. */ void -regcache::cooked_write_part (int regnum, int offset, int len, @@ -2814,99 +2689,67 @@ index 83bcbd22a3..f810752102 100644 { gdb_assert (regnum >= 0 && regnum < m_descr->nr_cooked_registers); diff --git a/gdb/regcache.h b/gdb/regcache.h -index d7bb8b5c93..06f878ab01 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h -@@ -74,9 +74,9 @@ extern LONGEST regcache_raw_get_signed (struct regcache *regcache, - - extern enum register_status - regcache_raw_read_part (struct regcache *regcache, int regnum, -- int offset, int len, gdb_byte *buf); -+ int offset, LONGEST len, gdb_byte *buf); - void regcache_raw_write_part (struct regcache *regcache, int regnum, -- int offset, int len, const gdb_byte *buf); -+ int offset, LONGEST len, const gdb_byte *buf); - - void regcache_invalidate (struct regcache *regcache, int regnum); - -@@ -113,10 +113,11 @@ extern void regcache_cooked_write_unsigned (struct regcache *regcache, - write style operations. */ - - enum register_status regcache_cooked_read_part (struct regcache *regcache, -- int regnum, int offset, -- int len, gdb_byte *buf); -+ int regnum, LONGEST offset, -+ LONGEST len, gdb_byte *buf); - void regcache_cooked_write_part (struct regcache *regcache, int regnum, -- int offset, int len, const gdb_byte *buf); -+ LONGEST offset, LONGEST len, -+ const gdb_byte *buf); - - /* Special routines to read/write the PC. */ - -@@ -259,8 +260,8 @@ public: - template> +@@ -244,8 +244,8 @@ public: enum register_status raw_read (int regnum, T *val); + /* Partial transfer of raw registers. Return the status of the register. */ - enum register_status raw_read_part (int regnum, int offset, int len, - gdb_byte *buf); + enum register_status raw_read_part (int regnum, int offset, + LONGEST len, gdb_byte *buf); + /* Make certain that the register REGNUM is up-to-date. */ virtual void raw_update (int regnum) = 0; - -@@ -268,14 +269,14 @@ public: - template> +@@ -257,8 +257,8 @@ public: enum register_status cooked_read (int regnum, T *val); + /* Partial transfer of a cooked register. */ - enum register_status cooked_read_part (int regnum, int offset, int len, - gdb_byte *buf); + enum register_status cooked_read_part (int regnum, LONGEST offset, + LONGEST len, gdb_byte *buf); - struct value *cooked_read_value (int regnum); + /* Read register REGNUM from the regcache and return a new value. This + will call mark_value_bytes_unavailable as appropriate. */ +@@ -268,7 +268,7 @@ protected: - protected: -- enum register_status read_part (int regnum, int offset, int len, void *in, -- bool is_raw); + /* Perform a partial register transfer using a read, modify, write + operation. Will fail if register is currently invalid. */ +- enum register_status read_part (int regnum, int offset, int len, + enum register_status read_part (int regnum, LONGEST offset, LONGEST len, -+ void *in, bool is_raw); + gdb_byte *out, bool is_raw); }; - /* Buffer of registers, can be read and written. */ -@@ -345,9 +346,10 @@ public: - void raw_collect_integer (int regnum, gdb_byte *addr, int addr_len, - bool is_signed) const; +@@ -326,11 +326,12 @@ public: + /* Partial transfer of raw registers. Perform read, modify, write style + operations. */ - void raw_write_part (int regnum, int offset, int len, const gdb_byte *buf); + void raw_write_part (int regnum, int offset, LONGEST len, + const gdb_byte *buf); + /* Partial transfer of a cooked register. Perform read, modify, write style + operations. */ - void cooked_write_part (int regnum, int offset, int len, + void cooked_write_part (int regnum, LONGEST offset, LONGEST len, const gdb_byte *buf); void supply_regset (const struct regset *regset, -@@ -377,13 +379,12 @@ protected: - static std::forward_list current_regcache; - - private: -- - void transfer_regset (const struct regset *regset, - struct regcache *out_regcache, - int regnum, const void *in_buf, - void *out_buf, size_t size) const; +@@ -381,7 +382,7 @@ private: + /* Perform a partial register transfer using a read, modify, write + operation. */ - enum register_status write_part (int regnum, int offset, int len, + enum register_status write_part (int regnum, LONGEST offset, LONGEST len, - const void *out, bool is_raw); - + const gdb_byte *in, bool is_raw); + /* The address space of this register cache (for registers where it diff --git a/gdb/remote.c b/gdb/remote.c -index 58ed9e4f4d..ce67d76195 100644 --- a/gdb/remote.c +++ b/gdb/remote.c -@@ -146,7 +146,7 @@ public: +@@ -462,7 +462,7 @@ public: int remove_hw_breakpoint (struct gdbarch *, struct bp_target_info *) override; @@ -2915,7 +2758,7 @@ index 58ed9e4f4d..ce67d76195 100644 int insert_watchpoint (CORE_ADDR, int, enum target_hw_bp_type, struct expression *) override; -@@ -10216,7 +10216,7 @@ int remote_hw_watchpoint_length_limit = -1; +@@ -10408,7 +10408,7 @@ int remote_hw_watchpoint_length_limit = -1; int remote_hw_breakpoint_limit = -1; int @@ -2925,10 +2768,9 @@ index 58ed9e4f4d..ce67d76195 100644 if (remote_hw_watchpoint_length_limit == 0) return 0; diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c -index 4be112b7a3..77d145549d 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c -@@ -286,7 +286,7 @@ rust_printchar (int c, struct type *type, struct ui_file *stream) +@@ -288,7 +288,7 @@ rust_printchar (int c, struct type *type, struct ui_file *stream) static void rust_printstr (struct ui_file *stream, struct type *type, @@ -2937,7 +2779,7 @@ index 4be112b7a3..77d145549d 100644 const char *user_encoding, int force_ellipses, const struct value_print_options *options) { -@@ -495,7 +495,7 @@ static const struct generic_val_print_decorations rust_decorations = +@@ -497,7 +497,7 @@ static const struct generic_val_print_decorations rust_decorations = /* la_val_print implementation for Rust. */ static void @@ -2947,7 +2789,6 @@ index 4be112b7a3..77d145549d 100644 struct value *val, const struct value_print_options *options) diff --git a/gdb/s390-linux-nat.c b/gdb/s390-linux-nat.c -index 3c65c5eaa5..d7c683e968 100644 --- a/gdb/s390-linux-nat.c +++ b/gdb/s390-linux-nat.c @@ -952,7 +952,8 @@ s390_linux_nat_target::remove_hw_breakpoint (struct gdbarch *gdbarch, @@ -2961,7 +2802,6 @@ index 3c65c5eaa5..d7c683e968 100644 return 1; } diff --git a/gdb/spu-multiarch.c b/gdb/spu-multiarch.c -index 5da5e4e7fc..29db0e8ea6 100644 --- a/gdb/spu-multiarch.c +++ b/gdb/spu-multiarch.c @@ -66,7 +66,7 @@ struct spu_multiarch_target final : public target_ops @@ -2973,17 +2813,16 @@ index 5da5e4e7fc..29db0e8ea6 100644 struct gdbarch *thread_architecture (ptid_t) override; }; -@@ -164,7 +164,7 @@ spu_multiarch_target::thread_architecture (ptid_t ptid) +@@ -163,7 +163,7 @@ spu_multiarch_target::thread_architecture (ptid_t ptid) /* Override the to_region_ok_for_hw_watchpoint routine. */ int -spu_multiarch_target::region_ok_for_hw_watchpoint (CORE_ADDR addr, int len) +spu_multiarch_target::region_ok_for_hw_watchpoint (CORE_ADDR addr, LONGEST len) { - struct target_ops *ops_beneath = find_target_beneath (this); - + /* We cannot watch SPU local store. */ + if (SPUADDR_SPU (addr) != -1) diff --git a/gdb/stack.c b/gdb/stack.c -index 74c92537da..10f246ecd1 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -190,7 +190,7 @@ print_stack_frame (struct frame_info *frame, int print_level, @@ -3025,7 +2864,6 @@ index 74c92537da..10f246ecd1 100644 if (highest_offset == -1) start = gdbarch_frame_args_skip (get_frame_arch (frame)); diff --git a/gdb/symmisc.c b/gdb/symmisc.c -index 91ddc578a8..addf9b873d 100644 --- a/gdb/symmisc.c +++ b/gdb/symmisc.c @@ -586,11 +586,11 @@ print_symbol (struct gdbarch *gdbarch, struct symbol *symbol, @@ -3044,7 +2882,6 @@ index 91ddc578a8..addf9b873d 100644 fprintf_filtered (outfile, " %02x", (unsigned) SYMBOL_VALUE_BYTES (symbol)[i]); diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c -index da74347122..ed625ed030 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -39,7 +39,7 @@ struct dummy_target : public target_ops @@ -3072,7 +2909,7 @@ index da74347122..ed625ed030 100644 -target_ops::region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1) +target_ops::region_ok_for_hw_watchpoint (CORE_ADDR arg0, LONGEST arg1) { - return this->beneath->region_ok_for_hw_watchpoint (arg0, arg1); + return this->beneath ()->region_ok_for_hw_watchpoint (arg0, arg1); } int @@ -3087,9 +2924,9 @@ index da74347122..ed625ed030 100644 +debug_target::region_ok_for_hw_watchpoint (CORE_ADDR arg0, LONGEST arg1) { int result; - fprintf_unfiltered (gdb_stdlog, "-> %s->region_ok_for_hw_watchpoint (...)\n", this->beneath->shortname ()); + fprintf_unfiltered (gdb_stdlog, "-> %s->region_ok_for_hw_watchpoint (...)\n", this->beneath ()->shortname ()); @@ -1118,7 +1118,7 @@ debug_target::region_ok_for_hw_watchpoint (CORE_ADDR arg0, int arg1) - fprintf_unfiltered (gdb_stdlog, "<- %s->region_ok_for_hw_watchpoint (", this->beneath->shortname ()); + fprintf_unfiltered (gdb_stdlog, "<- %s->region_ok_for_hw_watchpoint (", this->beneath ()->shortname ()); target_debug_print_CORE_ADDR (arg0); fputs_unfiltered (", ", gdb_stdlog); - target_debug_print_int (arg1); @@ -3098,7 +2935,6 @@ index da74347122..ed625ed030 100644 target_debug_print_int (result); fputs_unfiltered ("\n", gdb_stdlog); diff --git a/gdb/target.c b/gdb/target.c -index d96cdec418..7d0da32ec6 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -59,7 +59,7 @@ static int default_watchpoint_addr_within_range (struct target_ops *, @@ -3110,7 +2946,7 @@ index d96cdec418..7d0da32ec6 100644 static void default_rcmd (struct target_ops *, const char *, struct ui_file *); -@@ -3197,7 +3197,7 @@ target_fileio_read_stralloc (struct inferior *inf, const char *filename) +@@ -3181,7 +3181,7 @@ target_fileio_read_stralloc (struct inferior *inf, const char *filename) static int default_region_ok_for_hw_watchpoint (struct target_ops *self, @@ -3120,10 +2956,9 @@ index d96cdec418..7d0da32ec6 100644 return (len <= gdbarch_ptr_bit (target_gdbarch ()) / TARGET_CHAR_BIT); } diff --git a/gdb/target.h b/gdb/target.h -index 6e13809397..aaed35f690 100644 --- a/gdb/target.h +++ b/gdb/target.h -@@ -557,7 +557,7 @@ struct target_ops +@@ -562,7 +562,7 @@ struct target_ops /* Documentation of this routine is provided with the corresponding target_* macro. */ @@ -3133,7 +2968,6 @@ index 6e13809397..aaed35f690 100644 virtual bool can_accel_watchpoint_condition (CORE_ADDR, int, int, diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c -index 369f07581f..e7bcaa293f 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -829,10 +829,10 @@ collection_list::add_register (unsigned int regno) @@ -3230,7 +3064,6 @@ index 369f07581f..e7bcaa293f 100644 if (BLOCK_FUNCTION (block)) break; diff --git a/gdb/tracepoint.h b/gdb/tracepoint.h -index 42e413018a..978074cbc8 100644 --- a/gdb/tracepoint.h +++ b/gdb/tracepoint.h @@ -265,7 +265,7 @@ public: @@ -3242,11 +3075,34 @@ index 42e413018a..978074cbc8 100644 void collect_symbol (struct symbol *sym, struct gdbarch *gdbarch, long frame_regno, long frame_offset, +diff --git a/gdb/typeprint.c b/gdb/typeprint.c +--- a/gdb/typeprint.c ++++ b/gdb/typeprint.c +@@ -120,7 +120,8 @@ print_offset_data::update (struct type *type, unsigned int field_idx, + { + /* Since union fields don't have the concept of offsets, we just + print their sizes. */ +- fprintf_filtered (stream, "/* %4u */", TYPE_LENGTH (ftype)); ++ fprintf_filtered (stream, "/* %4s */", ++ pulongest (TYPE_LENGTH (ftype))); + return; + } + +@@ -183,8 +184,8 @@ print_offset_data::finish (struct type *type, int level, + + fputs_filtered ("\n", stream); + print_spaces_filtered (level + 4 + print_offset_data::indentation, stream); +- fprintf_filtered (stream, "/* total size (bytes): %4u */\n", +- TYPE_LENGTH (type)); ++ fprintf_filtered (stream, "/* total size (bytes): %4s */\n", ++ pulongest (TYPE_LENGTH (type))); + } + + diff --git a/gdb/valarith.c b/gdb/valarith.c -index 035def5466..67bd7cf03a 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c -@@ -184,7 +184,7 @@ value_subscript (struct value *array, LONGEST index) +@@ -182,7 +182,7 @@ value_subscript (struct value *array, LONGEST index) to doubles, but no longer does. */ struct value * @@ -3255,7 +3111,7 @@ index 035def5466..67bd7cf03a 100644 { struct type *array_type = check_typedef (value_type (array)); struct type *elt_type = check_typedef (TYPE_TARGET_TYPE (array_type)); -@@ -661,7 +661,7 @@ value_concat (struct value *arg1, struct value *arg2) +@@ -659,7 +659,7 @@ value_concat (struct value *arg1, struct value *arg2) struct value *inval1; struct value *inval2; struct value *outval = NULL; @@ -3264,7 +3120,7 @@ index 035def5466..67bd7cf03a 100644 int count, idx; char inchar; struct type *type1 = check_typedef (value_type (arg1)); -@@ -1421,7 +1421,7 @@ value_binop (struct value *arg1, struct value *arg2, enum exp_opcode op) +@@ -1419,7 +1419,7 @@ value_binop (struct value *arg1, struct value *arg2, enum exp_opcode op) int value_logical_not (struct value *arg1) { @@ -3273,7 +3129,7 @@ index 035def5466..67bd7cf03a 100644 const gdb_byte *p; struct type *type1; -@@ -1449,11 +1449,11 @@ value_logical_not (struct value *arg1) +@@ -1447,11 +1447,11 @@ value_logical_not (struct value *arg1) static int value_strcmp (struct value *arg1, struct value *arg2) { @@ -3289,7 +3145,6 @@ index 035def5466..67bd7cf03a 100644 for (i = 0; i < len; i++) { diff --git a/gdb/valops.c b/gdb/valops.c -index cdc5c8014c..96b922dbef 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -81,7 +81,7 @@ oload_classification classify_oload_match (struct badness_vector *, @@ -3371,7 +3226,6 @@ index cdc5c8014c..96b922dbef 100644 { struct type *real_type; diff --git a/gdb/valprint.c b/gdb/valprint.c -index 2537d77c19..be4ba05c91 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -879,7 +879,7 @@ generic_val_print_complex (struct type *type, @@ -3424,7 +3278,7 @@ index 2537d77c19..be4ba05c91 100644 annotate_elt_rep_end (); i = rep1 - 1; -@@ -2672,7 +2672,7 @@ print_converted_chars_to_obstack (struct obstack *obstack, +@@ -2669,7 +2669,7 @@ print_converted_chars_to_obstack (struct obstack *obstack, void generic_printstr (struct ui_file *stream, struct type *type, @@ -3434,7 +3288,6 @@ index 2537d77c19..be4ba05c91 100644 int quote_char, int c_style_terminator, const struct value_print_options *options) diff --git a/gdb/valprint.h b/gdb/valprint.h -index 1f62039be5..00e3cc5714 100644 --- a/gdb/valprint.h +++ b/gdb/valprint.h @@ -119,7 +119,7 @@ extern void val_print_array_elements (struct type *, LONGEST, @@ -3455,7 +3308,7 @@ index 1f62039be5..00e3cc5714 100644 extern void print_char_chars (struct ui_file *, struct type *, const gdb_byte *, unsigned int, enum bfd_endian); -@@ -191,7 +191,7 @@ struct generic_val_print_decorations +@@ -192,7 +192,7 @@ struct generic_val_print_decorations extern void generic_val_print (struct type *type, @@ -3464,7 +3317,7 @@ index 1f62039be5..00e3cc5714 100644 struct ui_file *stream, int recurse, struct value *original_value, const struct value_print_options *options, -@@ -201,7 +201,7 @@ extern void generic_emit_char (int c, struct type *type, struct ui_file *stream, +@@ -202,7 +202,7 @@ extern void generic_emit_char (int c, struct type *type, struct ui_file *stream, int quoter, const char *encoding); extern void generic_printstr (struct ui_file *stream, struct type *type, @@ -3474,10 +3327,9 @@ index 1f62039be5..00e3cc5714 100644 int quote_char, int c_style_terminator, const struct value_print_options *options); diff --git a/gdb/value.c b/gdb/value.c -index 98c060c65f..569281dbbd 100644 --- a/gdb/value.c +++ b/gdb/value.c -@@ -384,7 +384,8 @@ value_bytes_available (const struct value *value, +@@ -383,7 +383,8 @@ value_bytes_available (const struct value *value, } int @@ -3487,7 +3339,7 @@ index 98c060c65f..569281dbbd 100644 { gdb_assert (!value->lazy); -@@ -832,8 +833,8 @@ find_first_range_overlap_and_match (struct ranges_and_idx *rp1, +@@ -831,8 +832,8 @@ find_first_range_overlap_and_match (struct ranges_and_idx *rp1, Return true if the available bits match. */ static bool @@ -3498,7 +3350,7 @@ index 98c060c65f..569281dbbd 100644 int length) { /* Each array element corresponds to a ranges source (unavailable, -@@ -1424,7 +1425,8 @@ value_optimized_out (struct value *value) +@@ -1423,7 +1424,8 @@ value_optimized_out (struct value *value) the following LENGTH bytes. */ void @@ -3509,7 +3361,6 @@ index 98c060c65f..569281dbbd 100644 mark_value_bits_optimized_out (value, offset * TARGET_CHAR_BIT, diff --git a/gdb/value.h b/gdb/value.h -index e838fd580e..776e833fff 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -274,7 +274,7 @@ struct lval_funcs @@ -3569,7 +3420,6 @@ index e838fd580e..776e833fff 100644 /* User function handler. */ diff --git a/gdb/x86-nat.c b/gdb/x86-nat.c -index cfd293c17f..8886df2d4d 100644 --- a/gdb/x86-nat.c +++ b/gdb/x86-nat.c @@ -173,7 +173,7 @@ x86_remove_watchpoint (CORE_ADDR addr, int len, @@ -3582,7 +3432,6 @@ index cfd293c17f..8886df2d4d 100644 struct x86_debug_reg_state *state = x86_debug_reg_state (ptid_get_pid (inferior_ptid)); diff --git a/gdb/x86-nat.h b/gdb/x86-nat.h -index cc27fa43b4..bab15def7b 100644 --- a/gdb/x86-nat.h +++ b/gdb/x86-nat.h @@ -49,7 +49,7 @@ extern void x86_forget_process (pid_t pid); diff --git a/gdb-rhbz795424-bitpos-21of25.patch b/gdb-rhbz795424-bitpos-21of25.patch index 84f40f8..5617a50 100644 --- a/gdb-rhbz795424-bitpos-21of25.patch +++ b/gdb-rhbz795424-bitpos-21of25.patch @@ -1,9 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: Add a check to ensure that a type may fit into host memory - -FileName: gdb-rhbz795424-bitpos-21of25.patch +Subject: gdb-rhbz795424-bitpos-21of25.patch ;; Fix `GDB cannot access struct member whose offset is larger than 256MB' ;; (RH BZ 795424). @@ -62,7 +60,6 @@ Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=bitpos-ensure-size_t.patch diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c -index 78422faa6c..9b749559a1 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -413,6 +413,13 @@ alpha_push_dummy_call (struct gdbarch *gdbarch, struct value *function, @@ -80,7 +77,6 @@ index 78422faa6c..9b749559a1 100644 /* Keep sp aligned to a multiple of 16 as the ABI requires. */ diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c -index 25f1512857..823ac8fbd6 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -529,6 +529,7 @@ cp_print_value (struct type *type, struct type *real_type, @@ -92,10 +88,9 @@ index 25f1512857..823ac8fbd6 100644 if (target_read_memory (address + boffset, buf.data (), diff --git a/gdb/defs.h b/gdb/defs.h -index dc38a288c5..ce5fee3ba3 100644 --- a/gdb/defs.h +++ b/gdb/defs.h -@@ -674,4 +674,6 @@ DEF_ENUM_FLAGS_TYPE (enum user_selected_what_flag, user_selected_what); +@@ -665,4 +665,6 @@ DEF_ENUM_FLAGS_TYPE (enum user_selected_what_flag, user_selected_what); #include "utils.h" @@ -103,7 +98,6 @@ index dc38a288c5..ce5fee3ba3 100644 + #endif /* #ifndef DEFS_H */ diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c -index e5c1b07040..06fb3b77c9 100644 --- a/gdb/p-valprint.c +++ b/gdb/p-valprint.c @@ -773,6 +773,7 @@ pascal_object_print_value (struct type *type, const gdb_byte *valaddr, @@ -115,10 +109,9 @@ index e5c1b07040..06fb3b77c9 100644 base_valaddr = buf.data (); diff --git a/gdb/utils.c b/gdb/utils.c -index 7813df1436..c816e2f897 100644 --- a/gdb/utils.c +++ b/gdb/utils.c -@@ -2816,6 +2816,17 @@ string_to_core_addr (const char *my_string) +@@ -2834,6 +2834,17 @@ string_to_core_addr (const char *my_string) return addr; } @@ -137,7 +130,6 @@ index 7813df1436..c816e2f897 100644 static void diff --git a/gdb/valops.c b/gdb/valops.c -index 96b922dbef..a7f9be5f4e 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -2088,6 +2088,7 @@ search_struct_method (const char *name, struct value **arg1p, @@ -149,10 +141,9 @@ index 96b922dbef..a7f9be5f4e 100644 address = value_address (*arg1p); diff --git a/gdb/value.c b/gdb/value.c -index 569281dbbd..1964cf771c 100644 --- a/gdb/value.c +++ b/gdb/value.c -@@ -934,6 +934,7 @@ allocate_value_lazy (struct type *type) +@@ -933,6 +933,7 @@ allocate_value_lazy (struct type *type) description correctly. */ check_typedef (type); @@ -160,7 +151,7 @@ index 569281dbbd..1964cf771c 100644 val = new struct value (type); /* Values start out on the all_values chain. */ -@@ -1016,6 +1017,8 @@ check_type_length_before_alloc (const struct type *type) +@@ -1015,6 +1016,8 @@ check_type_length_before_alloc (const struct type *type) static void allocate_value_contents (struct value *val) { @@ -169,7 +160,7 @@ index 569281dbbd..1964cf771c 100644 if (!val->contents) { check_type_length_before_alloc (val->enclosing_type); -@@ -2877,6 +2880,7 @@ set_value_enclosing_type (struct value *val, struct type *new_encl_type) +@@ -2876,6 +2879,7 @@ set_value_enclosing_type (struct value *val, struct type *new_encl_type) if (TYPE_LENGTH (new_encl_type) > TYPE_LENGTH (value_enclosing_type (val))) { check_type_length_before_alloc (new_encl_type); @@ -178,7 +169,6 @@ index 569281dbbd..1964cf771c 100644 .reset ((gdb_byte *) xrealloc (val->contents.release (), TYPE_LENGTH (new_encl_type))); diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c -index 4c1ab2e73e..bd69fd2f48 100644 --- a/gdb/vax-tdep.c +++ b/gdb/vax-tdep.c @@ -218,6 +218,7 @@ vax_return_value (struct gdbarch *gdbarch, struct value *function, diff --git a/gdb-rhbz795424-bitpos-22of25.patch b/gdb-rhbz795424-bitpos-22of25.patch index 1f4d982..5788c27 100644 --- a/gdb-rhbz795424-bitpos-22of25.patch +++ b/gdb-rhbz795424-bitpos-22of25.patch @@ -1,9 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: Expand watchpoint lengths to LONGEST - -FileName: gdb-rhbz795424-bitpos-22of25.patch +Subject: gdb-rhbz795424-bitpos-22of25.patch ;; Fix `GDB cannot access struct member whose offset is larger than 256MB' ;; (RH BZ 795424). @@ -106,10 +104,9 @@ Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=bitpos-wp.patch diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c -index dd69f50785..a8e2621eca 100644 --- a/gdb/aarch64-linux-nat.c +++ b/gdb/aarch64-linux-nat.c -@@ -62,14 +62,14 @@ public: +@@ -63,14 +63,14 @@ public: int can_use_hw_breakpoint (enum bptype, int, int) override; int insert_hw_breakpoint (struct gdbarch *, struct bp_target_info *) override; int remove_hw_breakpoint (struct gdbarch *, struct bp_target_info *) override; @@ -126,7 +123,7 @@ index dd69f50785..a8e2621eca 100644 int can_do_single_step () override; -@@ -822,7 +822,8 @@ aarch64_linux_nat_target::stopped_by_watchpoint () +@@ -887,7 +887,8 @@ aarch64_linux_nat_target::stopped_by_watchpoint () bool aarch64_linux_nat_target::watchpoint_addr_within_range (CORE_ADDR addr, @@ -137,7 +134,6 @@ index dd69f50785..a8e2621eca 100644 return start <= addr && start + length - 1 >= addr; } diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c -index 8e2abfb70c..6e6318013f 100644 --- a/gdb/arm-linux-nat.c +++ b/gdb/arm-linux-nat.c @@ -80,7 +80,7 @@ public: @@ -158,7 +154,7 @@ index 8e2abfb70c..6e6318013f 100644 const struct target_desc *read_description () override; -@@ -1213,7 +1213,7 @@ arm_linux_nat_target::stopped_by_watchpoint () +@@ -1207,7 +1207,7 @@ arm_linux_nat_target::stopped_by_watchpoint () bool arm_linux_nat_target::watchpoint_addr_within_range (CORE_ADDR addr, CORE_ADDR start, @@ -168,7 +164,6 @@ index 8e2abfb70c..6e6318013f 100644 return start <= addr && start + length - 1 >= addr; } diff --git a/gdb/nat/aarch64-linux-hw-point.c b/gdb/nat/aarch64-linux-hw-point.c -index a3931ea6a9..06dfb83f7f 100644 --- a/gdb/nat/aarch64-linux-hw-point.c +++ b/gdb/nat/aarch64-linux-hw-point.c @@ -137,7 +137,7 @@ aarch64_point_encode_ctrl_reg (enum target_hw_bp_type type, int offset, int len) @@ -254,7 +249,6 @@ index a3931ea6a9..06dfb83f7f 100644 CORE_ADDR aligned_addr; diff --git a/gdb/nat/aarch64-linux-hw-point.h b/gdb/nat/aarch64-linux-hw-point.h -index 1940b06a89..79504a4640 100644 --- a/gdb/nat/aarch64-linux-hw-point.h +++ b/gdb/nat/aarch64-linux-hw-point.h @@ -176,7 +176,7 @@ int aarch64_handle_breakpoint (enum target_hw_bp_type type, CORE_ADDR addr, @@ -282,7 +276,6 @@ index 1940b06a89..79504a4640 100644 #endif /* AARCH64_LINUX_HW_POINT_H */ diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c -index b70f168106..a712197618 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -282,7 +282,7 @@ struct ppc_linux_nat_target final : public linux_nat_target @@ -306,7 +299,7 @@ index b70f168106..a712197618 100644 override; int masked_watch_num_registers (CORE_ADDR, CORE_ADDR) override; -@@ -1847,11 +1847,11 @@ can_use_watchpoint_cond_accel (void) +@@ -1659,11 +1659,11 @@ can_use_watchpoint_cond_accel (void) CONDITION_VALUE will hold the value which should be put in the DVC register. */ static void @@ -321,7 +314,7 @@ index b70f168106..a712197618 100644 CORE_ADDR addr_end_data, addr_end_dvc; /* The DVC register compares bytes within fixed-length windows which -@@ -1939,7 +1939,7 @@ num_memory_accesses (const std::vector &chain) +@@ -1751,7 +1751,7 @@ num_memory_accesses (const std::vector &chain) of the constant. */ static int check_condition (CORE_ADDR watch_addr, struct expression *cond, @@ -330,7 +323,7 @@ index b70f168106..a712197618 100644 { int pc = 1, num_accesses_left, num_accesses_right; struct value *left_val, *right_val; -@@ -1990,7 +1990,8 @@ check_condition (CORE_ADDR watch_addr, struct expression *cond, +@@ -1802,7 +1802,8 @@ check_condition (CORE_ADDR watch_addr, struct expression *cond, the condition expression, thus only triggering the watchpoint when it is true. */ bool @@ -340,7 +333,7 @@ index b70f168106..a712197618 100644 int rw, struct expression *cond) { -@@ -2008,7 +2009,7 @@ ppc_linux_nat_target::can_accel_watchpoint_condition (CORE_ADDR addr, int len, +@@ -1820,7 +1821,7 @@ ppc_linux_nat_target::can_accel_watchpoint_condition (CORE_ADDR addr, int len, static void create_watchpoint_request (struct ppc_hw_breakpoint *p, CORE_ADDR addr, @@ -349,7 +342,7 @@ index b70f168106..a712197618 100644 struct expression *cond, int insert) { if (len == 1 -@@ -2274,7 +2275,7 @@ ppc_linux_nat_target::stopped_by_watchpoint () +@@ -2086,7 +2087,7 @@ ppc_linux_nat_target::stopped_by_watchpoint () bool ppc_linux_nat_target::watchpoint_addr_within_range (CORE_ADDR addr, CORE_ADDR start, @@ -359,7 +352,6 @@ index b70f168106..a712197618 100644 int mask; diff --git a/gdb/procfs.c b/gdb/procfs.c -index ca7cc221f9..717a1130fe 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -1561,7 +1561,7 @@ procfs_address_to_host_pointer (CORE_ADDR addr) @@ -381,10 +373,9 @@ index ca7cc221f9..717a1130fe 100644 { int pflags = 0; diff --git a/gdb/remote.c b/gdb/remote.c -index ce67d76195..635cb266e8 100644 --- a/gdb/remote.c +++ b/gdb/remote.c -@@ -138,7 +138,7 @@ public: +@@ -454,7 +454,7 @@ public: bool stopped_data_address (CORE_ADDR *) override; @@ -393,7 +384,7 @@ index ce67d76195..635cb266e8 100644 int can_use_hw_breakpoint (enum bptype, int, int) override; -@@ -10145,7 +10145,7 @@ remote_target::insert_watchpoint (CORE_ADDR addr, int len, +@@ -10337,7 +10337,7 @@ remote_target::insert_watchpoint (CORE_ADDR addr, int len, p = strchr (rs->buf, '\0'); addr = remote_address_masked (addr); p += hexnumstr (p, (ULONGEST) addr); @@ -402,7 +393,7 @@ index ce67d76195..635cb266e8 100644 putpkt (rs->buf); getpkt (&rs->buf, &rs->buf_size, 0); -@@ -10165,7 +10165,7 @@ remote_target::insert_watchpoint (CORE_ADDR addr, int len, +@@ -10357,7 +10357,7 @@ remote_target::insert_watchpoint (CORE_ADDR addr, int len, bool remote_target::watchpoint_addr_within_range (CORE_ADDR addr, @@ -411,7 +402,7 @@ index ce67d76195..635cb266e8 100644 { CORE_ADDR diff = remote_address_masked (addr - start); -@@ -10194,7 +10194,7 @@ remote_target::remove_watchpoint (CORE_ADDR addr, int len, +@@ -10386,7 +10386,7 @@ remote_target::remove_watchpoint (CORE_ADDR addr, int len, p = strchr (rs->buf, '\0'); addr = remote_address_masked (addr); p += hexnumstr (p, (ULONGEST) addr); @@ -421,7 +412,6 @@ index ce67d76195..635cb266e8 100644 getpkt (&rs->buf, &rs->buf_size, 0); diff --git a/gdb/s390-linux-nat.c b/gdb/s390-linux-nat.c -index d7c683e968..2403d05a18 100644 --- a/gdb/s390-linux-nat.c +++ b/gdb/s390-linux-nat.c @@ -121,7 +121,7 @@ public: @@ -434,7 +424,6 @@ index d7c683e968..2403d05a18 100644 bool stopped_by_watchpoint () override; int insert_watchpoint (CORE_ADDR, int, enum target_hw_bp_type, diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c -index ed625ed030..3129ae295f 100644 --- a/gdb/target-delegates.c +++ b/gdb/target-delegates.c @@ -38,9 +38,9 @@ struct dummy_target : public target_ops @@ -468,7 +457,7 @@ index ed625ed030..3129ae295f 100644 -target_ops::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int arg2) +target_ops::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, LONGEST arg2) { - return this->beneath->watchpoint_addr_within_range (arg0, arg1, arg2); + return this->beneath ()->watchpoint_addr_within_range (arg0, arg1, arg2); } bool @@ -483,7 +472,7 @@ index ed625ed030..3129ae295f 100644 +debug_target::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, LONGEST arg2) { bool result; - fprintf_unfiltered (gdb_stdlog, "-> %s->watchpoint_addr_within_range (...)\n", this->beneath->shortname ()); + fprintf_unfiltered (gdb_stdlog, "-> %s->watchpoint_addr_within_range (...)\n", this->beneath ()->shortname ()); @@ -1090,7 +1090,7 @@ debug_target::watchpoint_addr_within_range (CORE_ADDR arg0, CORE_ADDR arg1, int fputs_unfiltered (", ", gdb_stdlog); target_debug_print_CORE_ADDR (arg1); @@ -500,7 +489,7 @@ index ed625ed030..3129ae295f 100644 -target_ops::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2, struct expression *arg3) +target_ops::can_accel_watchpoint_condition (CORE_ADDR arg0, LONGEST arg1, int arg2, struct expression *arg3) { - return this->beneath->can_accel_watchpoint_condition (arg0, arg1, arg2, arg3); + return this->beneath ()->can_accel_watchpoint_condition (arg0, arg1, arg2, arg3); } bool @@ -515,9 +504,9 @@ index ed625ed030..3129ae295f 100644 +debug_target::can_accel_watchpoint_condition (CORE_ADDR arg0, LONGEST arg1, int arg2, struct expression *arg3) { bool result; - fprintf_unfiltered (gdb_stdlog, "-> %s->can_accel_watchpoint_condition (...)\n", this->beneath->shortname ()); + fprintf_unfiltered (gdb_stdlog, "-> %s->can_accel_watchpoint_condition (...)\n", this->beneath ()->shortname ()); @@ -1146,7 +1146,7 @@ debug_target::can_accel_watchpoint_condition (CORE_ADDR arg0, int arg1, int arg2 - fprintf_unfiltered (gdb_stdlog, "<- %s->can_accel_watchpoint_condition (", this->beneath->shortname ()); + fprintf_unfiltered (gdb_stdlog, "<- %s->can_accel_watchpoint_condition (", this->beneath ()->shortname ()); target_debug_print_CORE_ADDR (arg0); fputs_unfiltered (", ", gdb_stdlog); - target_debug_print_int (arg1); @@ -526,7 +515,6 @@ index ed625ed030..3129ae295f 100644 target_debug_print_int (arg2); fputs_unfiltered (", ", gdb_stdlog); diff --git a/gdb/target.c b/gdb/target.c -index 7d0da32ec6..46d120b9d2 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -56,7 +56,7 @@ static void generic_tls_error (void) ATTRIBUTE_NORETURN; @@ -538,7 +526,7 @@ index 7d0da32ec6..46d120b9d2 100644 static int default_region_ok_for_hw_watchpoint (struct target_ops *, CORE_ADDR, LONGEST); -@@ -3205,7 +3205,7 @@ default_region_ok_for_hw_watchpoint (struct target_ops *self, +@@ -3189,7 +3189,7 @@ default_region_ok_for_hw_watchpoint (struct target_ops *self, static int default_watchpoint_addr_within_range (struct target_ops *target, CORE_ADDR addr, @@ -548,10 +536,9 @@ index 7d0da32ec6..46d120b9d2 100644 return addr >= start && addr < start + length; } diff --git a/gdb/target.h b/gdb/target.h -index aaed35f690..b1943a6d0a 100644 --- a/gdb/target.h +++ b/gdb/target.h -@@ -552,7 +552,7 @@ struct target_ops +@@ -557,7 +557,7 @@ struct target_ops TARGET_DEFAULT_RETURN (false); virtual bool stopped_data_address (CORE_ADDR *) TARGET_DEFAULT_RETURN (false); @@ -560,7 +547,7 @@ index aaed35f690..b1943a6d0a 100644 TARGET_DEFAULT_FUNC (default_watchpoint_addr_within_range); /* Documentation of this routine is provided with the corresponding -@@ -560,7 +560,7 @@ struct target_ops +@@ -565,7 +565,7 @@ struct target_ops virtual int region_ok_for_hw_watchpoint (CORE_ADDR, LONGEST) TARGET_DEFAULT_FUNC (default_region_ok_for_hw_watchpoint); diff --git a/gdb-rhbz795424-bitpos-23of25.patch b/gdb-rhbz795424-bitpos-23of25.patch index 4bd2010..bb78022 100644 --- a/gdb-rhbz795424-bitpos-23of25.patch +++ b/gdb-rhbz795424-bitpos-23of25.patch @@ -1,9 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: Bitpos expansion - tdep changes - -FileName: gdb-rhbz795424-bitpos-23of25.patch +Subject: gdb-rhbz795424-bitpos-23of25.patch ;; Fix `GDB cannot access struct member whose offset is larger than 256MB' ;; (RH BZ 795424). @@ -147,7 +145,6 @@ Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=bitpos-tdep.patch diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c -index 9b749559a1..485db44ae9 100644 --- a/gdb/alpha-tdep.c +++ b/gdb/alpha-tdep.c @@ -299,17 +299,17 @@ alpha_push_dummy_call (struct gdbarch *gdbarch, struct value *function, @@ -193,10 +190,9 @@ index 9b749559a1..485db44ae9 100644 offset += tlen; contents += tlen; diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c -index 338a0f2c87..241abcd6d5 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c -@@ -882,8 +882,8 @@ amd64_push_arguments (struct regcache *regcache, int nargs, +@@ -878,8 +878,8 @@ amd64_push_arguments (struct regcache *regcache, int nargs, }; struct value **stack_args = XALLOCAVEC (struct value *, nargs); int num_stack_args = 0; @@ -207,7 +203,7 @@ index 338a0f2c87..241abcd6d5 100644 int integer_reg = 0; int sse_reg = 0; int i; -@@ -895,7 +895,7 @@ amd64_push_arguments (struct regcache *regcache, int nargs, +@@ -891,7 +891,7 @@ amd64_push_arguments (struct regcache *regcache, int nargs, for (i = 0; i < nargs; i++) { struct type *type = value_type (args[i]); @@ -216,17 +212,16 @@ index 338a0f2c87..241abcd6d5 100644 enum amd64_reg_class theclass[2]; int needed_integer_regs = 0; int needed_sse_regs = 0; -@@ -959,7 +959,7 @@ amd64_push_arguments (struct regcache *regcache, int nargs, +@@ -955,7 +955,7 @@ amd64_push_arguments (struct regcache *regcache, int nargs, gdb_assert (regnum != -1); memset (buf, 0, sizeof buf); - memcpy (buf, valbuf + j * 8, std::min (len, 8)); + memcpy (buf, valbuf + j * 8, std::min (len, (LONGEST) 8)); - regcache_raw_write_part (regcache, regnum, offset, 8, buf); + regcache->raw_write_part (regnum, offset, 8, buf); } } diff --git a/gdb/amd64-windows-tdep.c b/gdb/amd64-windows-tdep.c -index 32ebead05d..2e388f2440 100644 --- a/gdb/amd64-windows-tdep.c +++ b/gdb/amd64-windows-tdep.c @@ -291,7 +291,7 @@ amd64_windows_return_value (struct gdbarch *gdbarch, struct value *function, @@ -239,7 +234,6 @@ index 32ebead05d..2e388f2440 100644 /* See if our value is returned through a register. If it is, then diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c -index 382080a714..885591cbf2 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -3468,7 +3468,7 @@ arm_vfp_cprc_reg_char (enum arm_vfp_cprc_base_type b) @@ -313,7 +307,6 @@ index 382080a714..885591cbf2 100644 struct type *target_type; enum type_code typecode; diff --git a/gdb/avr-tdep.c b/gdb/avr-tdep.c -index 5aa61ba2d9..96de319da5 100644 --- a/gdb/avr-tdep.c +++ b/gdb/avr-tdep.c @@ -1192,13 +1192,13 @@ avr_dummy_id (struct gdbarch *gdbarch, struct frame_info *this_frame) @@ -349,7 +342,6 @@ index 5aa61ba2d9..96de319da5 100644 /* Calculate the potential last register needed. E.g. For length 2, registers regnum and regnum-1 (say 25 and 24) diff --git a/gdb/bfin-tdep.c b/gdb/bfin-tdep.c -index 63fbf6209e..864530bf05 100644 --- a/gdb/bfin-tdep.c +++ b/gdb/bfin-tdep.c @@ -504,7 +504,7 @@ bfin_push_dummy_call (struct gdbarch *gdbarch, @@ -371,7 +363,6 @@ index 63fbf6209e..864530bf05 100644 sp -= container_len; write_memory (sp, value_contents (args[i]), container_len); diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c -index 5fa79ef2cf..1c99356746 100644 --- a/gdb/cris-tdep.c +++ b/gdb/cris-tdep.c @@ -663,13 +663,13 @@ static CORE_ADDR cris_unwind_sp (struct gdbarch *gdbarch, @@ -409,7 +400,6 @@ index 5fa79ef2cf..1c99356746 100644 /* How may registers worth of storage do we need for this argument? */ reg_demand = (len / 4) + (len % 4 != 0 ? 1 : 0); diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c -index 55e77b6bb6..1317a0a3a7 100644 --- a/gdb/h8300-tdep.c +++ b/gdb/h8300-tdep.c @@ -637,7 +637,7 @@ h8300_push_dummy_call (struct gdbarch *gdbarch, struct value *function, @@ -445,10 +435,9 @@ index 55e77b6bb6..1317a0a3a7 100644 for (offset = 0; offset < padded_len; offset += wordsize) { diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c -index 9692b33e09..3cca3fb6c1 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c -@@ -986,7 +986,7 @@ hppa64_push_dummy_call (struct gdbarch *gdbarch, struct value *function, +@@ -984,7 +984,7 @@ hppa64_push_dummy_call (struct gdbarch *gdbarch, struct value *function, { struct value *arg = args[i]; struct type *type = value_type (arg); @@ -457,7 +446,7 @@ index 9692b33e09..3cca3fb6c1 100644 const bfd_byte *valbuf; bfd_byte fptrbuf[8]; int regnum; -@@ -1181,7 +1181,7 @@ hppa64_return_value (struct gdbarch *gdbarch, struct value *function, +@@ -1177,7 +1177,7 @@ hppa64_return_value (struct gdbarch *gdbarch, struct value *function, struct type *type, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf) { @@ -467,7 +456,6 @@ index 9692b33e09..3cca3fb6c1 100644 if (len > 16) diff --git a/gdb/i386-darwin-tdep.c b/gdb/i386-darwin-tdep.c -index 7ee2f4cf2a..b811296b0d 100644 --- a/gdb/i386-darwin-tdep.c +++ b/gdb/i386-darwin-tdep.c @@ -166,7 +166,7 @@ i386_darwin_push_dummy_call (struct gdbarch *gdbarch, struct value *function, @@ -480,7 +468,6 @@ index 7ee2f4cf2a..b811296b0d 100644 if (struct_return) diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c -index d67e2e40c5..dfff555493 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -2678,7 +2678,7 @@ i386_push_dummy_call (struct gdbarch *gdbarch, struct value *function, @@ -519,7 +506,7 @@ index d67e2e40c5..dfff555493 100644 gdb_assert (code == TYPE_CODE_STRUCT || code == TYPE_CODE_UNION -@@ -3727,7 +3727,7 @@ static int +@@ -3703,7 +3703,7 @@ static int i386_convert_register_p (struct gdbarch *gdbarch, int regnum, struct type *type) { @@ -528,7 +515,7 @@ index d67e2e40c5..dfff555493 100644 /* Values may be spread across multiple registers. Most debugging formats aren't expressive enough to specify the locations, so -@@ -3760,7 +3760,7 @@ i386_register_to_value (struct frame_info *frame, int regnum, +@@ -3736,7 +3736,7 @@ i386_register_to_value (struct frame_info *frame, int regnum, int *optimizedp, int *unavailablep) { struct gdbarch *gdbarch = get_frame_arch (frame); @@ -537,7 +524,7 @@ index d67e2e40c5..dfff555493 100644 if (i386_fp_regnum_p (gdbarch, regnum)) return i387_register_to_value (frame, regnum, type, to, -@@ -3796,7 +3796,7 @@ static void +@@ -3772,7 +3772,7 @@ static void i386_value_to_register (struct frame_info *frame, int regnum, struct type *type, const gdb_byte *from) { @@ -547,7 +534,6 @@ index d67e2e40c5..dfff555493 100644 if (i386_fp_regnum_p (get_frame_arch (frame), regnum)) { diff --git a/gdb/iq2000-tdep.c b/gdb/iq2000-tdep.c -index f8e2f234e0..b703c2cae4 100644 --- a/gdb/iq2000-tdep.c +++ b/gdb/iq2000-tdep.c @@ -651,8 +651,9 @@ iq2000_push_dummy_call (struct gdbarch *gdbarch, struct value *function, @@ -563,7 +549,6 @@ index f8e2f234e0..b703c2cae4 100644 CORE_ADDR struct_ptr; diff --git a/gdb/m32r-tdep.c b/gdb/m32r-tdep.c -index fd79f3f4cd..941c897070 100644 --- a/gdb/m32r-tdep.c +++ b/gdb/m32r-tdep.c @@ -671,7 +671,7 @@ m32r_push_dummy_call (struct gdbarch *gdbarch, struct value *function, @@ -576,10 +561,9 @@ index fd79f3f4cd..941c897070 100644 /* First force sp to a 4-byte alignment. */ sp = sp & ~3; diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c -index b9fa5e6d4c..2320e61a69 100644 --- a/gdb/m68k-tdep.c +++ b/gdb/m68k-tdep.c -@@ -373,7 +373,7 @@ m68k_reg_struct_return_p (struct gdbarch *gdbarch, struct type *type) +@@ -372,7 +372,7 @@ m68k_reg_struct_return_p (struct gdbarch *gdbarch, struct type *type) { struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); enum type_code code = TYPE_CODE (type); @@ -588,7 +572,7 @@ index b9fa5e6d4c..2320e61a69 100644 gdb_assert (code == TYPE_CODE_STRUCT || code == TYPE_CODE_UNION || code == TYPE_CODE_COMPLEX); -@@ -505,9 +505,9 @@ m68k_push_dummy_call (struct gdbarch *gdbarch, struct value *function, +@@ -504,9 +504,9 @@ m68k_push_dummy_call (struct gdbarch *gdbarch, struct value *function, for (i = nargs - 1; i >= 0; i--) { struct type *value_type = value_enclosing_type (args[i]); @@ -602,10 +586,9 @@ index b9fa5e6d4c..2320e61a69 100644 /* Non-scalars bigger than 4 bytes are left aligned, others are right aligned. */ diff --git a/gdb/mep-tdep.c b/gdb/mep-tdep.c -index 0e8c3f97e2..f60a49b90b 100644 --- a/gdb/mep-tdep.c +++ b/gdb/mep-tdep.c -@@ -2241,7 +2241,7 @@ push_large_arguments (CORE_ADDR sp, int argc, struct value **argv, +@@ -2239,7 +2239,7 @@ push_large_arguments (CORE_ADDR sp, int argc, struct value **argv, for (i = 0; i < argc; i++) { @@ -615,7 +598,6 @@ index 0e8c3f97e2..f60a49b90b 100644 if (arg_len > MEP_GPR_SIZE) { diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c -index cc67cd3bdd..2980604968 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -477,7 +477,7 @@ static void @@ -638,7 +620,7 @@ index cc67cd3bdd..2980604968 100644 if (mips_debug && out != NULL) { int i; -@@ -4533,13 +4533,13 @@ mips_eabi_push_dummy_call (struct gdbarch *gdbarch, struct value *function, +@@ -4531,13 +4531,13 @@ mips_eabi_push_dummy_call (struct gdbarch *gdbarch, struct value *function, gdb_byte ref_valbuf[MAX_MIPS_ABI_REGSIZE]; struct value *arg = args[argnum]; struct type *arg_type = check_typedef (value_type (arg)); @@ -655,7 +637,7 @@ index cc67cd3bdd..2980604968 100644 /* The EABI passes structures that do not fit in a register by reference. */ -@@ -4809,7 +4809,7 @@ mips_eabi_return_value (struct gdbarch *gdbarch, struct value *function, +@@ -4807,7 +4807,7 @@ mips_eabi_return_value (struct gdbarch *gdbarch, struct value *function, static int mips_n32n64_fp_arg_chunk_p (struct gdbarch *gdbarch, struct type *arg_type, @@ -664,7 +646,7 @@ index cc67cd3bdd..2980604968 100644 { int i; -@@ -4824,7 +4824,7 @@ mips_n32n64_fp_arg_chunk_p (struct gdbarch *gdbarch, struct type *arg_type, +@@ -4822,7 +4822,7 @@ mips_n32n64_fp_arg_chunk_p (struct gdbarch *gdbarch, struct type *arg_type, for (i = 0; i < TYPE_NFIELDS (arg_type); i++) { @@ -673,7 +655,7 @@ index cc67cd3bdd..2980604968 100644 struct type *field_type; /* We're only looking at normal fields. */ -@@ -4866,7 +4866,7 @@ mips_n32n64_push_dummy_call (struct gdbarch *gdbarch, struct value *function, +@@ -4864,7 +4864,7 @@ mips_n32n64_push_dummy_call (struct gdbarch *gdbarch, struct value *function, int argreg; int float_argreg; int argnum; @@ -682,7 +664,7 @@ index cc67cd3bdd..2980604968 100644 int stack_offset = 0; enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); CORE_ADDR func_addr = find_function_addr (function, NULL); -@@ -5217,11 +5217,11 @@ mips_n32n64_return_value (struct gdbarch *gdbarch, struct value *function, +@@ -5215,11 +5215,11 @@ mips_n32n64_return_value (struct gdbarch *gdbarch, struct value *function, : MIPS_V0_REGNUM); field < TYPE_NFIELDS (type); field++, regnum += 2) { @@ -698,7 +680,7 @@ index cc67cd3bdd..2980604968 100644 if (TYPE_LENGTH (TYPE_FIELD_TYPE (type, field)) == 16) { /* A 16-byte long double field goes in two consecutive -@@ -5263,8 +5263,8 @@ mips_n32n64_return_value (struct gdbarch *gdbarch, struct value *function, +@@ -5261,8 +5261,8 @@ mips_n32n64_return_value (struct gdbarch *gdbarch, struct value *function, if (offset + xfer > TYPE_LENGTH (type)) xfer = TYPE_LENGTH (type) - offset; if (mips_debug) @@ -709,7 +691,7 @@ index cc67cd3bdd..2980604968 100644 mips_xfer_register (gdbarch, regcache, gdbarch_num_regs (gdbarch) + regnum, xfer, BFD_ENDIAN_UNKNOWN, readbuf, writebuf, -@@ -5322,7 +5322,7 @@ mips_o32_push_dummy_call (struct gdbarch *gdbarch, struct value *function, +@@ -5320,7 +5320,7 @@ mips_o32_push_dummy_call (struct gdbarch *gdbarch, struct value *function, int argreg; int float_argreg; int argnum; @@ -718,7 +700,7 @@ index cc67cd3bdd..2980604968 100644 int stack_offset = 0; enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); CORE_ADDR func_addr = find_function_addr (function, NULL); -@@ -5386,13 +5386,13 @@ mips_o32_push_dummy_call (struct gdbarch *gdbarch, struct value *function, +@@ -5384,13 +5384,13 @@ mips_o32_push_dummy_call (struct gdbarch *gdbarch, struct value *function, const gdb_byte *val; struct value *arg = args[argnum]; struct type *arg_type = check_typedef (value_type (arg)); @@ -735,7 +717,7 @@ index cc67cd3bdd..2980604968 100644 val = value_contents (arg); -@@ -5846,8 +5846,8 @@ mips_o64_push_dummy_call (struct gdbarch *gdbarch, struct value *function, +@@ -5844,8 +5844,8 @@ mips_o64_push_dummy_call (struct gdbarch *gdbarch, struct value *function, int argreg; int float_argreg; int argnum; @@ -746,7 +728,7 @@ index cc67cd3bdd..2980604968 100644 enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); CORE_ADDR func_addr = find_function_addr (function, NULL); -@@ -5907,13 +5907,13 @@ mips_o64_push_dummy_call (struct gdbarch *gdbarch, struct value *function, +@@ -5905,13 +5905,13 @@ mips_o64_push_dummy_call (struct gdbarch *gdbarch, struct value *function, const gdb_byte *val; struct value *arg = args[argnum]; struct type *arg_type = check_typedef (value_type (arg)); @@ -764,10 +746,9 @@ index cc67cd3bdd..2980604968 100644 val = value_contents (arg); diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c -index e12e01df03..93cc78eb51 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c -@@ -1198,7 +1198,7 @@ mn10300_push_dummy_call (struct gdbarch *gdbarch, +@@ -1197,7 +1197,7 @@ mn10300_push_dummy_call (struct gdbarch *gdbarch, enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); const int push_size = register_size (gdbarch, E_PC_REGNUM); int regs_used; @@ -777,7 +758,6 @@ index e12e01df03..93cc78eb51 100644 int argnum; const gdb_byte *val; diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c -index a6ba5d0ffd..184b7d6261 100644 --- a/gdb/ppc-sysv-tdep.c +++ b/gdb/ppc-sysv-tdep.c @@ -68,7 +68,7 @@ ppc_sysv_abi_push_dummy_call (struct gdbarch *gdbarch, struct value *function, @@ -810,7 +790,7 @@ index a6ba5d0ffd..184b7d6261 100644 const bfd_byte *val = value_contents (arg); if (TYPE_CODE (type) == TYPE_CODE_FLT && len <= 8 -@@ -1285,11 +1285,11 @@ struct ppc64_sysv_argpos +@@ -1246,11 +1246,11 @@ struct ppc64_sysv_argpos static void ppc64_sysv_abi_push_val (struct gdbarch *gdbarch, @@ -824,16 +804,16 @@ index a6ba5d0ffd..184b7d6261 100644 /* Enforce alignment of stack location, if requested. */ if (align > tdep->wordsize) -@@ -1327,7 +1327,7 @@ ppc64_sysv_abi_push_val (struct gdbarch *gdbarch, +@@ -1287,7 +1287,7 @@ ppc64_sysv_abi_push_val (struct gdbarch *gdbarch, + { if (argpos->regcache && argpos->greg <= 10) - regcache_cooked_write_part (argpos->regcache, - tdep->ppc_gp0_regnum + argpos->greg, -- offset, len, val); -+ offset, (LONGEST) len, val); + argpos->regcache->cooked_write_part +- (tdep->ppc_gp0_regnum + argpos->greg, offset, len, val); ++ (tdep->ppc_gp0_regnum + argpos->greg, offset, (LONGEST) len, val); argpos->greg++; } } -@@ -1386,7 +1386,7 @@ ppc64_sysv_abi_push_freg (struct gdbarch *gdbarch, +@@ -1346,7 +1346,7 @@ ppc64_sysv_abi_push_freg (struct gdbarch *gdbarch, if (argpos->regcache && argpos->freg <= 13) { int regnum = tdep->ppc_fp0_regnum + argpos->freg; @@ -842,7 +822,7 @@ index a6ba5d0ffd..184b7d6261 100644 if (gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG) offset = 8 - TYPE_LENGTH (type); -@@ -1836,7 +1836,7 @@ ppc64_sysv_abi_return_value_base (struct gdbarch *gdbarch, struct type *valtype, +@@ -1795,7 +1795,7 @@ ppc64_sysv_abi_return_value_base (struct gdbarch *gdbarch, struct type *valtype, && TYPE_CODE (valtype) == TYPE_CODE_DECFLOAT) { int regnum = tdep->ppc_fp0_regnum + 1 + index; @@ -851,7 +831,7 @@ index a6ba5d0ffd..184b7d6261 100644 if (gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG) offset = 8 - TYPE_LENGTH (valtype); -@@ -1912,7 +1912,7 @@ ppc64_sysv_abi_return_value_base (struct gdbarch *gdbarch, struct type *valtype, +@@ -1871,7 +1871,7 @@ ppc64_sysv_abi_return_value_base (struct gdbarch *gdbarch, struct type *valtype, && TYPE_CODE (valtype) == TYPE_CODE_ARRAY && TYPE_VECTOR (valtype)) { int regnum = tdep->ppc_gp0_regnum + 3 + index; @@ -860,7 +840,7 @@ index a6ba5d0ffd..184b7d6261 100644 if (gdbarch_byte_order (gdbarch) == BFD_ENDIAN_BIG) offset = 8 - TYPE_LENGTH (valtype); -@@ -2020,7 +2020,8 @@ ppc64_sysv_abi_return_value (struct gdbarch *gdbarch, struct value *function, +@@ -1979,7 +1979,8 @@ ppc64_sysv_abi_return_value (struct gdbarch *gdbarch, struct value *function, && TYPE_LENGTH (TYPE_TARGET_TYPE (valtype)) == 1) { int regnum = tdep->ppc_gp0_regnum + 3; @@ -869,9 +849,8 @@ index a6ba5d0ffd..184b7d6261 100644 + = (register_size (gdbarch, regnum) - TYPE_LENGTH (valtype)); if (writebuf != NULL) - regcache_cooked_write_part (regcache, regnum, + regcache->cooked_write_part (regnum, offset, TYPE_LENGTH (valtype), diff --git a/gdb/rl78-tdep.c b/gdb/rl78-tdep.c -index af6a089608..be10f0a3c0 100644 --- a/gdb/rl78-tdep.c +++ b/gdb/rl78-tdep.c @@ -1346,8 +1346,8 @@ rl78_push_dummy_call (struct gdbarch *gdbarch, struct value *function, @@ -886,10 +865,9 @@ index af6a089608..be10f0a3c0 100644 sp -= container_len; write_memory (rl78_make_data_address (sp), diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c -index e3e086c210..76f553bebf 100644 --- a/gdb/rs6000-aix-tdep.c +++ b/gdb/rs6000-aix-tdep.c -@@ -187,9 +187,9 @@ rs6000_push_dummy_call (struct gdbarch *gdbarch, struct value *function, +@@ -177,9 +177,9 @@ rs6000_push_dummy_call (struct gdbarch *gdbarch, struct value *function, struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); int ii; @@ -901,7 +879,7 @@ index e3e086c210..76f553bebf 100644 gdb_byte tmp_buffer[50]; int f_argno = 0; /* current floating point argno */ int wordsize = gdbarch_tdep (gdbarch)->wordsize; -@@ -319,7 +319,7 @@ ran_out_of_registers_for_arguments: +@@ -307,7 +307,7 @@ ran_out_of_registers_for_arguments: if ((argno < nargs) || argbytes) { @@ -911,7 +889,6 @@ index e3e086c210..76f553bebf 100644 if (argbytes) { diff --git a/gdb/score-tdep.c b/gdb/score-tdep.c -index a167932327..4674eb7900 100644 --- a/gdb/score-tdep.c +++ b/gdb/score-tdep.c @@ -516,7 +516,7 @@ score_push_dummy_call (struct gdbarch *gdbarch, struct value *function, @@ -924,7 +901,6 @@ index a167932327..4674eb7900 100644 CORE_ADDR addr = 0; diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c -index edf7e94b2e..3ab10e8401 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -812,7 +812,7 @@ sh_skip_prologue (struct gdbarch *gdbarch, CORE_ADDR pc) @@ -966,7 +942,6 @@ index edf7e94b2e..3ab10e8401 100644 int last_reg_arg = INT_MAX; diff --git a/gdb/sparc64-tdep.c b/gdb/sparc64-tdep.c -index 9fd6a66199..56b72ea505 100644 --- a/gdb/sparc64-tdep.c +++ b/gdb/sparc64-tdep.c @@ -1205,7 +1205,7 @@ sparc64_16_byte_align_p (struct type *type) @@ -1024,7 +999,6 @@ index 9fd6a66199..56b72ea505 100644 gdb_byte buf[16]; diff --git a/gdb/spu-tdep.c b/gdb/spu-tdep.c -index 2567c240d4..46b6d6243e 100644 --- a/gdb/spu-tdep.c +++ b/gdb/spu-tdep.c @@ -1431,7 +1431,7 @@ spu_push_dummy_call (struct gdbarch *gdbarch, struct value *function, @@ -1046,10 +1020,9 @@ index 2567c240d4..46b6d6243e 100644 if (spu_scalar_value_p (type)) diff --git a/gdb/tic6x-tdep.c b/gdb/tic6x-tdep.c -index f11763d992..6192692a00 100644 --- a/gdb/tic6x-tdep.c +++ b/gdb/tic6x-tdep.c -@@ -883,7 +883,7 @@ tic6x_push_dummy_call (struct gdbarch *gdbarch, struct value *function, +@@ -881,7 +881,7 @@ tic6x_push_dummy_call (struct gdbarch *gdbarch, struct value *function, int argreg = 0; int argnum; int stack_offset = 4; @@ -1058,7 +1031,7 @@ index f11763d992..6192692a00 100644 CORE_ADDR func_addr = find_function_addr (function, NULL); enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); struct type *func_type = value_type (function); -@@ -917,7 +917,7 @@ tic6x_push_dummy_call (struct gdbarch *gdbarch, struct value *function, +@@ -915,7 +915,7 @@ tic6x_push_dummy_call (struct gdbarch *gdbarch, struct value *function, /* Now make space on the stack for the args. */ for (argnum = 0; argnum < nargs; argnum++) { @@ -1067,7 +1040,7 @@ index f11763d992..6192692a00 100644 if (argnum >= 10 - argreg) references_offset += len; stack_offset += len; -@@ -936,7 +936,7 @@ tic6x_push_dummy_call (struct gdbarch *gdbarch, struct value *function, +@@ -934,7 +934,7 @@ tic6x_push_dummy_call (struct gdbarch *gdbarch, struct value *function, const gdb_byte *val; struct value *arg = args[argnum]; struct type *arg_type = check_typedef (value_type (arg)); @@ -1076,7 +1049,7 @@ index f11763d992..6192692a00 100644 enum type_code typecode = TYPE_CODE (arg_type); val = value_contents (arg); -@@ -1096,7 +1096,8 @@ tic6x_push_dummy_call (struct gdbarch *gdbarch, struct value *function, +@@ -1090,7 +1090,8 @@ tic6x_push_dummy_call (struct gdbarch *gdbarch, struct value *function, } else internal_error (__FILE__, __LINE__, @@ -1087,7 +1060,6 @@ index f11763d992..6192692a00 100644 addr = sp + stack_offset; write_memory (addr, val, len); diff --git a/gdb/tilegx-tdep.c b/gdb/tilegx-tdep.c -index 8f688b16cf..5152c9eece 100644 --- a/gdb/tilegx-tdep.c +++ b/gdb/tilegx-tdep.c @@ -288,7 +288,7 @@ tilegx_push_dummy_call (struct gdbarch *gdbarch, @@ -1100,7 +1072,6 @@ index 8f688b16cf..5152c9eece 100644 /* If struct_return is 1, then the struct return address will diff --git a/gdb/v850-tdep.c b/gdb/v850-tdep.c -index ac7d6aa424..6e440e533f 100644 --- a/gdb/v850-tdep.c +++ b/gdb/v850-tdep.c @@ -1019,7 +1019,7 @@ v850_push_dummy_call (struct gdbarch *gdbarch, @@ -1122,7 +1093,6 @@ index ac7d6aa424..6e440e533f 100644 gdb_byte valbuf[v850_reg_size]; diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c -index bd69fd2f48..5755c91eff 100644 --- a/gdb/vax-tdep.c +++ b/gdb/vax-tdep.c @@ -110,7 +110,7 @@ vax_store_arguments (struct regcache *regcache, int nargs, @@ -1144,7 +1114,6 @@ index bd69fd2f48..5755c91eff 100644 sp -= (len + 3) & ~3; count += (len + 3) / 4; diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c -index 31650ac3a9..91b088251c 100644 --- a/gdb/xstormy16-tdep.c +++ b/gdb/xstormy16-tdep.c @@ -232,8 +232,9 @@ xstormy16_push_dummy_call (struct gdbarch *gdbarch, @@ -1160,10 +1129,9 @@ index 31650ac3a9..91b088251c 100644 gdb_byte buf[xstormy16_pc_size]; diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c -index 01f96165dc..066081c3f9 100644 --- a/gdb/xtensa-tdep.c +++ b/gdb/xtensa-tdep.c -@@ -1627,8 +1627,7 @@ xtensa_store_return_value (struct type *type, +@@ -1626,8 +1626,7 @@ xtensa_store_return_value (struct type *type, if (len > (callsize > 8 ? 8 : 16)) internal_error (__FILE__, __LINE__, @@ -1173,7 +1141,7 @@ index 01f96165dc..066081c3f9 100644 areg = arreg_number (gdbarch, gdbarch_tdep (gdbarch)->a0_base + 2 + callsize, wb); -@@ -1702,18 +1701,18 @@ xtensa_push_dummy_call (struct gdbarch *gdbarch, +@@ -1701,18 +1700,18 @@ xtensa_push_dummy_call (struct gdbarch *gdbarch, { enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); int i; @@ -1195,7 +1163,7 @@ index 01f96165dc..066081c3f9 100644 int regno; /* regno if in register. */ } u; }; -@@ -1737,9 +1736,10 @@ xtensa_push_dummy_call (struct gdbarch *gdbarch, +@@ -1736,9 +1735,10 @@ xtensa_push_dummy_call (struct gdbarch *gdbarch, { struct value *arg = args[i]; struct type *arg_type = check_typedef (value_type (arg)); @@ -1209,7 +1177,7 @@ index 01f96165dc..066081c3f9 100644 switch (TYPE_CODE (arg_type)) { case TYPE_CODE_INT: -@@ -1809,8 +1809,8 @@ xtensa_push_dummy_call (struct gdbarch *gdbarch, +@@ -1808,8 +1808,8 @@ xtensa_push_dummy_call (struct gdbarch *gdbarch, info->align = TYPE_LENGTH (builtin_type (gdbarch)->builtin_long); break; } @@ -1219,7 +1187,7 @@ index 01f96165dc..066081c3f9 100644 /* Align size and onstack_size. */ size = (size + info->align - 1) & ~(info->align - 1); -@@ -1855,7 +1855,7 @@ xtensa_push_dummy_call (struct gdbarch *gdbarch, +@@ -1854,7 +1854,7 @@ xtensa_push_dummy_call (struct gdbarch *gdbarch, if (info->onstack) { @@ -1228,7 +1196,7 @@ index 01f96165dc..066081c3f9 100644 CORE_ADDR offset = sp + info->u.offset; /* Odd-sized structs are aligned to the lower side of a memory -@@ -1871,7 +1871,7 @@ xtensa_push_dummy_call (struct gdbarch *gdbarch, +@@ -1870,7 +1870,7 @@ xtensa_push_dummy_call (struct gdbarch *gdbarch, } else { diff --git a/gdb-rhbz795424-bitpos-25of25-test.patch b/gdb-rhbz795424-bitpos-25of25-test.patch index 0a37526..1738f5b 100644 --- a/gdb-rhbz795424-bitpos-25of25-test.patch +++ b/gdb-rhbz795424-bitpos-25of25-test.patch @@ -1,9 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: Expand fortran array bounds sizes to LONGEST - -FileName: gdb-rhbz795424-bitpos-25of25-test.patch +Subject: gdb-rhbz795424-bitpos-25of25-test.patch ;; Fix `GDB cannot access struct member whose offset is larger than 256MB' ;; (RH BZ 795424). diff --git a/gdb-rhbz795424-bitpos-25of25.patch b/gdb-rhbz795424-bitpos-25of25.patch index 8372b8e..de6a324 100644 --- a/gdb-rhbz795424-bitpos-25of25.patch +++ b/gdb-rhbz795424-bitpos-25of25.patch @@ -1,9 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: Expand fortran array bounds sizes to LONGEST - -FileName: gdb-rhbz795424-bitpos-25of25.patch +Subject: gdb-rhbz795424-bitpos-25of25.patch ;; Fix `GDB cannot access struct member whose offset is larger than 256MB' ;; (RH BZ 795424). @@ -57,10 +55,9 @@ Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=f77-bounds.patch diff --git a/gdb/f-lang.h b/gdb/f-lang.h -index 9171a13bdf..9ec58f808e 100644 --- a/gdb/f-lang.h +++ b/gdb/f-lang.h -@@ -49,9 +49,9 @@ struct common_block +@@ -47,9 +47,9 @@ struct common_block struct symbol *contents[1]; }; @@ -73,7 +70,6 @@ index 9171a13bdf..9ec58f808e 100644 extern void f77_get_dynamic_array_length (struct type *); diff --git a/gdb/f-typeprint.c b/gdb/f-typeprint.c -index 4f6a0ed09a..c330522913 100644 --- a/gdb/f-typeprint.c +++ b/gdb/f-typeprint.c @@ -149,7 +149,7 @@ f_type_print_varspec_suffix (struct type *type, struct ui_file *stream, @@ -112,7 +108,7 @@ index 4f6a0ed09a..c330522913 100644 int index; QUIT; -@@ -365,7 +365,7 @@ f_type_print_base (struct type *type, struct ui_file *stream, int show, +@@ -370,7 +370,7 @@ f_type_print_base (struct type *type, struct ui_file *stream, int show, else { upper_bound = f77_get_upperbound (type); @@ -122,7 +118,6 @@ index 4f6a0ed09a..c330522913 100644 break; diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c -index 0772f359f0..03400ae431 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -41,7 +41,7 @@ LONGEST f77_array_offset_tbl[MAX_FORTRAN_DIMS + 1][2]; diff --git a/gdb-rhbz795424-bitpos-lazyvalue.patch b/gdb-rhbz795424-bitpos-lazyvalue.patch index b0f59df..0f5c2e8 100644 --- a/gdb-rhbz795424-bitpos-lazyvalue.patch +++ b/gdb-rhbz795424-bitpos-lazyvalue.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-rhbz795424-bitpos-lazyvalue.patch -FileName: gdb-rhbz795424-bitpos-lazyvalue.patch - ;; Fix `GDB cannot access struct member whose offset is larger than 256MB' ;; (RH BZ 795424). ;;=push diff --git a/gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch b/gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch index e8b4545..0df5ee5 100644 --- a/gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch +++ b/gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-rhbz947564-findvar-assertion-frame-failed-testcase.patch -FileName: gdb-rhbz947564-findvar-assertion-frame-failed-testcase.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 diff --git a/gdb-rhel5.9-testcase-xlf-var-inside-mod.patch b/gdb-rhel5.9-testcase-xlf-var-inside-mod.patch index c899773..b130d1f 100644 --- a/gdb-rhel5.9-testcase-xlf-var-inside-mod.patch +++ b/gdb-rhel5.9-testcase-xlf-var-inside-mod.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-rhel5.9-testcase-xlf-var-inside-mod.patch -FileName: gdb-rhel5.9-testcase-xlf-var-inside-mod.patch - ;; Include testcase for `Unable to see a variable inside a module (XLF)' (BZ 823789). ;;=fedoratest diff --git a/gdb-runtest-pie-override.patch b/gdb-runtest-pie-override.patch index f1748fd..f878dc3 100644 --- a/gdb-runtest-pie-override.patch +++ b/gdb-runtest-pie-override.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-runtest-pie-override.patch -FileName: gdb-runtest-pie-override.patch - ;; Hack for proper PIE run of the testsuite. ;;=fedoratest @@ -25,7 +23,6 @@ But there is a problem with testsuite.unix non-unique subdir name and also a problem with make -j parallelization of the testsuite. diff --git a/gdb/testsuite/lib/future.exp b/gdb/testsuite/lib/future.exp -index 547ca5fb7b..93c770820c 100644 --- a/gdb/testsuite/lib/future.exp +++ b/gdb/testsuite/lib/future.exp @@ -185,6 +185,10 @@ proc gdb_default_target_compile {source destfile type options} { diff --git a/gdb-simultaneous-step-resume-breakpoint-test.patch b/gdb-simultaneous-step-resume-breakpoint-test.patch index 823aa99..5e1315b 100644 --- a/gdb-simultaneous-step-resume-breakpoint-test.patch +++ b/gdb-simultaneous-step-resume-breakpoint-test.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-simultaneous-step-resume-breakpoint-test.patch -FileName: gdb-simultaneous-step-resume-breakpoint-test.patch - ;; New test for step-resume breakpoint placed in multiple threads at once. ;;=fedoratest diff --git a/gdb-stale-frame_info.patch b/gdb-stale-frame_info.patch deleted file mode 100644 index fda5f64..0000000 --- a/gdb-stale-frame_info.patch +++ /dev/null @@ -1,78 +0,0 @@ -From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 -From: Fedora GDB patches -Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: workaround stale frame_info * (PR 13866) - -FileName: gdb-stale-frame_info.patch - -;; Workaround crashes from stale frame_info pointer (BZ 804256). -;;=push+jan - -http://sourceware.org/ml/gdb-patches/2012-04/msg00058.html - -Hi, - -I did not look at which commit caused this regression but apparently it was -introduced at least with multi-inferiors. - -I understand this fix is not right fix of the crash; but in most GDB cases one -does not use multi-inferior so why to regress single-inferior by it. -Some more simple solutions still fix the single-inferior mode but they -regressed the multi-inferior mode - gdb.threads/no-unwaited-for-left.exp - gdb.multi/base.exp -so I had to put there that sorting magic. - -With proper C++ sanity check of stale live frame_info references the testcase -would be simple without the "frame_garbage_collection" reproducer below. -It is also reproducible just with valgrind but regularly running the whole -testsuite under valgrind I did not find feasible. - -No regressions on {x86_64,x86_64-m32,i686}-fedora17-linux-gnu. - -Thanks, -Jan - -gdb/ -2012-04-04 Jan Kratochvil - - Workaround PR backtrace/13866. - * progspace.c (switch_to_program_space_and_thread): Try not to call - switch_to_thread. - -diff --git a/gdb/progspace-and-thread.c b/gdb/progspace-and-thread.c -index 27d626b05f..ee6342d96a 100644 ---- a/gdb/progspace-and-thread.c -+++ b/gdb/progspace-and-thread.c -@@ -23,15 +23,29 @@ - void - switch_to_program_space_and_thread (program_space *pspace) - { -- inferior *inf = find_inferior_for_program_space (pspace); -+ inferior *inf = current_inferior (); -+ -+ if (inf->pspace != pspace) -+ inf = find_inferior_for_program_space (pspace); - - if (inf != NULL && inf->pid != 0) - { - thread_info *tp = any_live_thread_of_process (inf->pid); -+ thread_info *current_tp = NULL; -+ -+ if (ptid_get_pid (inferior_ptid) == inf->pid) -+ current_tp = find_thread_ptid (inferior_ptid); - - if (tp != NULL) - { -- switch_to_thread (tp->ptid); -+ /* Prefer primarily thread not THREAD_EXITED and secondarily thread -+ not EXECUTING. */ -+ if (current_tp == NULL -+ || (tp->state != THREAD_EXITED -+ && current_tp->state == THREAD_EXITED) -+ || (!tp->executing && current_tp->executing)) -+ switch_to_thread (tp->ptid); -+ - /* Switching thread switches pspace implicitly. We're - done. */ - return; diff --git a/gdb-test-bt-cfi-without-die.patch b/gdb-test-bt-cfi-without-die.patch index 70cbe72..6167c14 100644 --- a/gdb-test-bt-cfi-without-die.patch +++ b/gdb-test-bt-cfi-without-die.patch @@ -1,9 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 -Subject: Fix a regression on CFI without DIE [Re: - -FileName: gdb-test-bt-cfi-without-die.patch +Subject: gdb-test-bt-cfi-without-die.patch ;; [delayed-symfile] Test a backtrace regression on CFIs without DIE (BZ 614604). ;;=fedoratest diff --git a/gdb-test-dw2-aranges.patch b/gdb-test-dw2-aranges.patch index 5703a03..054a769 100644 --- a/gdb-test-dw2-aranges.patch +++ b/gdb-test-dw2-aranges.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-test-dw2-aranges.patch -FileName: gdb-test-dw2-aranges.patch - ;; [archer-tromey-delayed-symfile] New test gdb.dwarf2/dw2-aranges.exp. ;;=fedoratest diff --git a/gdb-test-expr-cumulative-archer.patch b/gdb-test-expr-cumulative-archer.patch index d4efbf1..28a903d 100644 --- a/gdb-test-expr-cumulative-archer.patch +++ b/gdb-test-expr-cumulative-archer.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-test-expr-cumulative-archer.patch -FileName: gdb-test-expr-cumulative-archer.patch - ;; [archer-keiths-expr-cumulative+upstream] Import C++ testcases. ;;=fedoratest diff --git a/gdb-test-ivy-bridge.patch b/gdb-test-ivy-bridge.patch index a0dfde7..c0d8edc 100644 --- a/gdb-test-ivy-bridge.patch +++ b/gdb-test-ivy-bridge.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-test-ivy-bridge.patch -FileName: gdb-test-ivy-bridge.patch - ;; Test GDB opcodes/ disassembly of Intel Ivy Bridge instructions (BZ 696890). ;;=fedoratest diff --git a/gdb-test-pid0-core.patch b/gdb-test-pid0-core.patch index 4a880f7..4401dcd 100644 --- a/gdb-test-pid0-core.patch +++ b/gdb-test-pid0-core.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-test-pid0-core.patch -FileName: gdb-test-pid0-core.patch - ;; New test gdb.arch/x86_64-pid0-core.exp for kernel PID 0 cores (BZ 611435). ;;=fedoratest diff --git a/gdb-testsuite-readline63-sigint.patch b/gdb-testsuite-readline63-sigint.patch index dc0fb6f..338895a 100644 --- a/gdb-testsuite-readline63-sigint.patch +++ b/gdb-testsuite-readline63-sigint.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-testsuite-readline63-sigint.patch -FileName: gdb-testsuite-readline63-sigint.patch - ;; [testsuite] Fix false selftest.exp FAIL from system readline-6.3+ (Patrick Palka). ;;=fedoratest @@ -15,10 +13,9 @@ Message-Id: <1436927724-4059-1-git-send-email-patrick@parcs.ath.cx> https://bugzilla.redhat.com/show_bug.cgi?id=1301175 diff --git a/gdb/testsuite/gdb.gdb/selftest.exp b/gdb/testsuite/gdb.gdb/selftest.exp -index 4108e088a9..4dbd583ce7 100644 --- a/gdb/testsuite/gdb.gdb/selftest.exp +++ b/gdb/testsuite/gdb.gdb/selftest.exp -@@ -104,9 +104,25 @@ proc test_with_self { } { +@@ -113,9 +113,25 @@ proc test_with_self { } { } set description "send SIGINT signal to child process" diff --git a/gdb-vla-intel-fix-print-char-array.patch b/gdb-vla-intel-fix-print-char-array.patch index eba8e51..944f82b 100644 --- a/gdb-vla-intel-fix-print-char-array.patch +++ b/gdb-vla-intel-fix-print-char-array.patch @@ -3,8 +3,6 @@ From: Sergio Durigan Junior Date: Thu, 7 Dec 2017 16:20:31 -0500 Subject: gdb-vla-intel-fix-print-char-array.patch -FileName: gdb-vla-intel-fix-print-char-array.patch - ;; Revert upstream commit 469412dd9ccc4de5874fd3299b105833f36b34cd Revert commit (only the part touching gdb/f-valprint.c): @@ -22,7 +20,6 @@ Revert commit (only the part touching gdb/f-valprint.c): And adjust its testcase. diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c -index 03400ae431..aa33d848d6 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -313,8 +313,22 @@ f_val_print (struct type *type, LONGEST embedded_offset, @@ -51,7 +48,6 @@ index 03400ae431..aa33d848d6 100644 case TYPE_CODE_STRUCT: diff --git a/gdb/testsuite/gdb.fortran/printing-types.exp b/gdb/testsuite/gdb.fortran/printing-types.exp -index 9237907ed6..dbd0666422 100644 --- a/gdb/testsuite/gdb.fortran/printing-types.exp +++ b/gdb/testsuite/gdb.fortran/printing-types.exp @@ -29,7 +29,7 @@ if {![runto MAIN__]} then { diff --git a/gdb-vla-intel-fortran-strides.patch b/gdb-vla-intel-fortran-strides.patch index 0f5cbcf..941a9d0 100644 --- a/gdb-vla-intel-fortran-strides.patch +++ b/gdb-vla-intel-fortran-strides.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-vla-intel-fortran-strides.patch -FileName: gdb-vla-intel-fortran-strides.patch - ;; VLA (Fortran dynamic arrays) from Intel + archer-jankratochvil-vla tests. ;;=push @@ -37,7 +35,6 @@ dbfd7140bf4c0500d1f5d192be781f83f78f7922 23 files changed, 1242 insertions(+), 183 deletions(-) diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c -index 6ecc5a9be6..fa9ff30721 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -2600,11 +2600,14 @@ dwarf2_locexpr_baton_eval (const struct dwarf2_locexpr_baton *dlbaton, @@ -128,7 +125,6 @@ index 6ecc5a9be6..fa9ff30721 100644 /* See dwarf2loc.h. */ diff --git a/gdb/dwarf2loc.h b/gdb/dwarf2loc.h -index f82e7b2d11..74f0597359 100644 --- a/gdb/dwarf2loc.h +++ b/gdb/dwarf2loc.h @@ -143,6 +143,12 @@ int dwarf2_evaluate_property (const struct dynamic_prop *prop, @@ -145,10 +141,9 @@ index f82e7b2d11..74f0597359 100644 property to C code. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index 49ce83ff20..a28d0a029e 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -17635,7 +17635,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17535,7 +17535,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) struct type *base_type, *orig_base_type; struct type *range_type; struct attribute *attr; @@ -157,7 +152,7 @@ index 49ce83ff20..a28d0a029e 100644 int low_default_is_valid; int high_bound_is_count = 0; const char *name; -@@ -17655,7 +17655,9 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17555,7 +17555,9 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) low.kind = PROP_CONST; high.kind = PROP_CONST; @@ -167,22 +162,22 @@ index 49ce83ff20..a28d0a029e 100644 /* Set LOW_DEFAULT_IS_VALID if current language and DWARF version allow omitting DW_AT_lower_bound. */ -@@ -17688,6 +17690,14 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17588,6 +17590,14 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) break; } + attr = dwarf2_attr (die, DW_AT_byte_stride, cu); + if (attr) + if (!attr_to_dynamic_prop (attr, die, cu, &stride)) -+ complaint (&symfile_complaints, _("Missing DW_AT_byte_stride " -+ "- DIE at 0x%s [in module %s]"), ++ complaint (_("Missing DW_AT_byte_stride " ++ "- DIE at 0x%s [in module %s]"), + sect_offset_str (die->sect_off), + objfile_name (cu->per_cu->dwarf2_per_objfile->objfile)); + attr = dwarf2_attr (die, DW_AT_lower_bound, cu); if (attr) attr_to_dynamic_prop (attr, die, cu, &low); -@@ -17765,7 +17775,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17665,7 +17675,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) && !TYPE_UNSIGNED (base_type) && (high.data.const_val & negative_mask)) high.data.const_val |= negative_mask; @@ -192,7 +187,6 @@ index 49ce83ff20..a28d0a029e 100644 if (high_bound_is_count) TYPE_RANGE_DATA (range_type)->flag_upper_bound_is_count = 1; diff --git a/gdb/eval.c b/gdb/eval.c -index 5bd6e2cbfe..50dde3ed4f 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -377,29 +377,325 @@ init_array_element (struct value *array, struct value *element, @@ -621,7 +615,6 @@ index 5bd6e2cbfe..50dde3ed4f 100644 error (_("Can't get dimensions for a non-array type")); diff --git a/gdb/expprint.c b/gdb/expprint.c -index 70d355d369..1dfc7943da 100644 --- a/gdb/expprint.c +++ b/gdb/expprint.c @@ -578,17 +578,14 @@ print_subexp_standard (struct expression *exp, int *pos, @@ -694,7 +687,6 @@ index 70d355d369..1dfc7943da 100644 } break; diff --git a/gdb/expression.h b/gdb/expression.h -index 9f26bb8d60..2cc0d2c1e3 100644 --- a/gdb/expression.h +++ b/gdb/expression.h @@ -148,28 +148,27 @@ extern void dump_raw_expression (struct expression *, @@ -747,7 +739,6 @@ index 9f26bb8d60..2cc0d2c1e3 100644 #endif /* !defined (EXPRESSION_H) */ diff --git a/gdb/f-exp.y b/gdb/f-exp.y -index e39f68417c..7d03e54a18 100644 --- a/gdb/f-exp.y +++ b/gdb/f-exp.y @@ -257,31 +257,63 @@ arglist : subrange @@ -820,7 +811,6 @@ index e39f68417c..7d03e54a18 100644 ; diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c -index 903f2af638..b4067a8460 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -119,8 +119,14 @@ f77_print_array_1 (int nss, int ndimensions, struct type *type, @@ -840,7 +830,6 @@ index 903f2af638..b4067a8460 100644 for (i = lowerbound; (i < upperbound + 1 && (*elts) < options->print_max); diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c -index 6d70006081..64711e8cfb 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -902,7 +902,8 @@ operator== (const range_bounds &l, const range_bounds &r) @@ -905,7 +894,7 @@ index 6d70006081..64711e8cfb 100644 else if (bit_stride > 0) TYPE_LENGTH (result_type) = (bit_stride * (high_bound - low_bound + 1) + 7) / 8; -@@ -1996,12 +2006,12 @@ resolve_dynamic_range (struct type *dyn_range_type, +@@ -1981,12 +1991,12 @@ resolve_dynamic_range (struct type *dyn_range_type, CORE_ADDR value; struct type *static_range_type, *static_target_type; const struct dynamic_prop *prop; @@ -920,7 +909,7 @@ index 6d70006081..64711e8cfb 100644 { low_bound.kind = PROP_CONST; low_bound.data.const_val = value; -@@ -2013,7 +2023,7 @@ resolve_dynamic_range (struct type *dyn_range_type, +@@ -1998,7 +2008,7 @@ resolve_dynamic_range (struct type *dyn_range_type, } prop = &TYPE_RANGE_DATA (dyn_range_type)->high; @@ -929,7 +918,7 @@ index 6d70006081..64711e8cfb 100644 { high_bound.kind = PROP_CONST; high_bound.data.const_val = value; -@@ -2028,12 +2038,20 @@ resolve_dynamic_range (struct type *dyn_range_type, +@@ -2013,12 +2023,20 @@ resolve_dynamic_range (struct type *dyn_range_type, high_bound.data.const_val = 0; } @@ -952,7 +941,6 @@ index 6d70006081..64711e8cfb 100644 return static_range_type; } diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h -index 5f614e573a..878c8b0302 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -612,6 +612,10 @@ struct range_bounds @@ -966,7 +954,7 @@ index 5f614e573a..878c8b0302 100644 /* True if HIGH range bound contains the number of elements in the subrange. This affects how the final hight bound is computed. */ -@@ -790,7 +794,6 @@ struct main_type +@@ -776,7 +780,6 @@ struct main_type /* * Union member used for range types. */ struct range_bounds *bounds; @@ -974,7 +962,7 @@ index 5f614e573a..878c8b0302 100644 } flds_bnds; /* * Slot to point to additional language-specific fields of this -@@ -1344,6 +1347,15 @@ extern bool set_type_align (struct type *, ULONGEST); +@@ -1329,6 +1332,15 @@ extern bool set_type_align (struct type *, ULONGEST); TYPE_RANGE_DATA(range_type)->high.kind #define TYPE_LOW_BOUND_KIND(range_type) \ TYPE_RANGE_DATA(range_type)->low.kind @@ -990,7 +978,7 @@ index 5f614e573a..878c8b0302 100644 /* Property accessors for the type data location. */ #define TYPE_DATA_LOCATION(thistype) \ -@@ -1378,6 +1390,9 @@ extern bool set_type_align (struct type *, ULONGEST); +@@ -1363,6 +1375,9 @@ extern bool set_type_align (struct type *, ULONGEST); TYPE_HIGH_BOUND_UNDEFINED(TYPE_INDEX_TYPE(arraytype)) #define TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED(arraytype) \ TYPE_LOW_BOUND_UNDEFINED(TYPE_INDEX_TYPE(arraytype)) @@ -1000,7 +988,7 @@ index 5f614e573a..878c8b0302 100644 #define TYPE_ARRAY_UPPER_BOUND_VALUE(arraytype) \ (TYPE_HIGH_BOUND(TYPE_INDEX_TYPE((arraytype)))) -@@ -1909,6 +1924,7 @@ extern struct type *create_array_type_with_stride +@@ -1892,6 +1907,7 @@ extern struct type *create_array_type_with_stride struct dynamic_prop *, unsigned int); extern struct type *create_range_type (struct type *, struct type *, @@ -1009,7 +997,6 @@ index 5f614e573a..878c8b0302 100644 const struct dynamic_prop *); diff --git a/gdb/parse.c b/gdb/parse.c -index 193abe853f..ea0d027bb0 100644 --- a/gdb/parse.c +++ b/gdb/parse.c @@ -989,24 +989,20 @@ operator_length_standard (const struct expression *expr, int endpos, @@ -1049,10 +1036,9 @@ index 193abe853f..ea0d027bb0 100644 break; diff --git a/gdb/rust-exp.y b/gdb/rust-exp.y -index 9f21498d4c..5d0f24f4e1 100644 --- a/gdb/rust-exp.y +++ b/gdb/rust-exp.y -@@ -2477,24 +2477,28 @@ convert_ast_to_expression (struct parser_state *state, +@@ -2478,24 +2478,28 @@ convert_ast_to_expression (struct parser_state *state, case OP_RANGE: { @@ -1090,10 +1076,9 @@ index 9f21498d4c..5d0f24f4e1 100644 } else diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c -index ed0394592f..4be112b7a3 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c -@@ -1106,13 +1106,11 @@ rust_range (struct expression *exp, int *pos, enum noside noside) +@@ -1149,13 +1149,11 @@ rust_range (struct expression *exp, int *pos, enum noside noside) kind = (enum range_type) longest_to_int (exp->elts[*pos + 1].longconst); *pos += 3; @@ -1110,7 +1095,7 @@ index ed0394592f..4be112b7a3 100644 if (noside == EVAL_SKIP) return value_from_longest (builtin_type (exp->gdbarch)->builtin_int, 1); -@@ -1201,7 +1199,7 @@ rust_compute_range (struct type *type, struct value *range, +@@ -1244,7 +1242,7 @@ rust_compute_range (struct type *type, struct value *range, *low = 0; *high = 0; @@ -1119,7 +1104,7 @@ index ed0394592f..4be112b7a3 100644 if (TYPE_NFIELDS (type) == 0) return; -@@ -1209,15 +1207,14 @@ rust_compute_range (struct type *type, struct value *range, +@@ -1252,15 +1250,14 @@ rust_compute_range (struct type *type, struct value *range, i = 0; if (strcmp (TYPE_FIELD_NAME (type, 0), "start") == 0) { @@ -1137,7 +1122,7 @@ index ed0394592f..4be112b7a3 100644 *high = value_as_long (value_field (range, i)); if (rust_inclusive_range_type_p (type)) -@@ -1235,7 +1232,7 @@ rust_subscript (struct expression *exp, int *pos, enum noside noside, +@@ -1278,7 +1275,7 @@ rust_subscript (struct expression *exp, int *pos, enum noside noside, struct type *rhstype; LONGEST low, high_bound; /* Initialized to appease the compiler. */ @@ -1146,7 +1131,7 @@ index ed0394592f..4be112b7a3 100644 LONGEST high = 0; int want_slice = 0; -@@ -1333,7 +1330,7 @@ rust_subscript (struct expression *exp, int *pos, enum noside noside, +@@ -1376,7 +1373,7 @@ rust_subscript (struct expression *exp, int *pos, enum noside noside, error (_("Cannot subscript non-array type")); if (want_slice @@ -1155,7 +1140,7 @@ index ed0394592f..4be112b7a3 100644 low = low_bound; if (low < 0) error (_("Index less than zero")); -@@ -1351,7 +1348,7 @@ rust_subscript (struct expression *exp, int *pos, enum noside noside, +@@ -1394,7 +1391,7 @@ rust_subscript (struct expression *exp, int *pos, enum noside noside, CORE_ADDR addr; struct value *addrval, *tem; @@ -1651,7 +1636,6 @@ new file mode 100644 + call sub +end diff --git a/gdb/testsuite/gdb.fortran/vla-ptype.exp b/gdb/testsuite/gdb.fortran/vla-ptype.exp -index 5f367348b0..5351a0aa2e 100644 --- a/gdb/testsuite/gdb.fortran/vla-ptype.exp +++ b/gdb/testsuite/gdb.fortran/vla-ptype.exp @@ -98,3 +98,7 @@ gdb_test "ptype vla2" "type = " "ptype vla2 not allocated" @@ -1663,7 +1647,6 @@ index 5f367348b0..5351a0aa2e 100644 +gdb_continue_to_breakpoint "vla1-neg-bounds" +gdb_test "ptype vla1" "type = $real \\(-2:1,-5:4,-3:-1\\)" "ptype vla1 negative bounds" diff --git a/gdb/testsuite/gdb.fortran/vla-sizeof.exp b/gdb/testsuite/gdb.fortran/vla-sizeof.exp -index 3113983ba4..83bc849619 100644 --- a/gdb/testsuite/gdb.fortran/vla-sizeof.exp +++ b/gdb/testsuite/gdb.fortran/vla-sizeof.exp @@ -44,3 +44,7 @@ gdb_test "print sizeof(pvla)" " = 0" "print sizeof non-associated pvla" @@ -1758,7 +1741,6 @@ new file mode 100644 + pvla => null() ! single-element +end program vla_stride diff --git a/gdb/testsuite/gdb.fortran/vla.f90 b/gdb/testsuite/gdb.fortran/vla.f90 -index 508290a36e..d87f59b92b 100644 --- a/gdb/testsuite/gdb.fortran/vla.f90 +++ b/gdb/testsuite/gdb.fortran/vla.f90 @@ -54,4 +54,14 @@ program vla @@ -1777,10 +1759,9 @@ index 508290a36e..d87f59b92b 100644 + end program vla diff --git a/gdb/valarith.c b/gdb/valarith.c -index 58e3a09c37..035def5466 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c -@@ -189,10 +189,16 @@ value_subscripted_rvalue (struct value *array, LONGEST index, int lowerbound) +@@ -187,10 +187,16 @@ value_subscripted_rvalue (struct value *array, LONGEST index, int lowerbound) struct type *array_type = check_typedef (value_type (array)); struct type *elt_type = check_typedef (TYPE_TARGET_TYPE (array_type)); ULONGEST elt_size = type_length_units (elt_type); @@ -1800,7 +1781,6 @@ index 58e3a09c37..035def5466 100644 if (type_not_associated (array_type)) error (_("no such vector element (vector not associated)")); diff --git a/gdb/valops.c b/gdb/valops.c -index 62a86c06a3..5c35d7a091 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -3808,56 +3808,195 @@ value_of_this_silent (const struct language_defn *lang) @@ -2030,7 +2010,6 @@ index 62a86c06a3..5c35d7a091 100644 /* Create a value for a FORTRAN complex number. Currently most of the diff --git a/gdb/value.h b/gdb/value.h -index 4d75c966ed..e838fd580e 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -1139,6 +1139,8 @@ extern struct value *varying_to_slice (struct value *); diff --git a/gdb-vla-intel-fortran-vla-strings.patch b/gdb-vla-intel-fortran-vla-strings.patch index 4d2a16a..980b94c 100644 --- a/gdb-vla-intel-fortran-vla-strings.patch +++ b/gdb-vla-intel-fortran-vla-strings.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-vla-intel-fortran-vla-strings.patch -FileName: gdb-vla-intel-fortran-vla-strings.patch - ;;=push git diff --stat -p gdb/master...gdb/users/bheckel/fortran-vla-strings @@ -33,10 +31,9 @@ git diff --stat -p gdb/master...gdb/users/bheckel/fortran-vla-strings 20 files changed, 827 insertions(+), 110 deletions(-) diff --git a/gdb/NEWS b/gdb/NEWS -index cef558039e..fa4c0382dc 100644 --- a/gdb/NEWS +++ b/gdb/NEWS -@@ -59,6 +59,8 @@ SH-5/SH64 running OpenBSD SH-5/SH64 support in sh*-*-openbsd* +@@ -103,6 +103,8 @@ SH-5/SH64 running OpenBSD SH-5/SH64 support in sh*-*-openbsd* *** Changes in GDB 8.1 @@ -46,7 +43,6 @@ index cef558039e..fa4c0382dc 100644 in XML target descriptions. This allows for finer grain grouping of registers on systems with a large amount of registers. diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c -index c4c0918e26..3904fab260 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -653,6 +653,28 @@ c_value_print (struct value *val, struct ui_file *stream, @@ -79,7 +75,6 @@ index c4c0918e26..3904fab260 100644 type_print (value_type (val), "", stream, -1); fprintf_filtered (stream, ") "); diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index a28d0a029e..4006f4a48f 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -1789,7 +1789,8 @@ static void read_signatured_type (struct signatured_type *); @@ -92,7 +87,7 @@ index a28d0a029e..4006f4a48f 100644 /* memory allocation interface */ -@@ -13681,7 +13682,7 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu) +@@ -13633,7 +13634,7 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu) { newobj->static_link = XOBNEW (&objfile->objfile_obstack, struct dynamic_prop); @@ -101,7 +96,7 @@ index a28d0a029e..4006f4a48f 100644 } cu->list_in_scope = &local_symbols; -@@ -16385,7 +16386,8 @@ read_array_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -16298,7 +16299,8 @@ read_array_type (struct die_info *die, struct dwarf2_cu *cu) byte_stride_prop = (struct dynamic_prop *) alloca (sizeof (struct dynamic_prop)); @@ -110,8 +105,8 @@ index a28d0a029e..4006f4a48f 100644 + NULL, 0); if (!stride_ok) { - complaint (&symfile_complaints, -@@ -17156,29 +17158,94 @@ read_tag_string_type (struct die_info *die, struct dwarf2_cu *cu) + complaint (_("unable to read array DW_AT_byte_stride " +@@ -17059,29 +17061,90 @@ read_tag_string_type (struct die_info *die, struct dwarf2_cu *cu) struct gdbarch *gdbarch = get_objfile_arch (objfile); struct type *type, *range_type, *index_type, *char_type; struct attribute *attr; @@ -137,8 +132,7 @@ index a28d0a029e..4006f4a48f 100644 + /* DW_AT_byte_size should never occur in combination with + DW_AT_bit_size. */ + if (byte_size != NULL && bit_size != NULL) -+ complaint (&symfile_complaints, -+ _("DW_AT_byte_size AND " ++ complaint (_("DW_AT_byte_size AND " + "DW_AT_bit_size found together at the same time.")); + + /* If DW_AT_string_length AND DW_AT_byte_size exist together, @@ -160,12 +154,10 @@ index a28d0a029e..4006f4a48f 100644 + + if (!attr_to_dynamic_prop (attr, die, cu, &high, append_ops, + ARRAY_SIZE(append_ops))) -+ complaint (&symfile_complaints, -+ _("Could not parse DW_AT_byte_size")); ++ complaint (_("Could not parse DW_AT_byte_size")); + } + else if (bit_size != NULL) -+ complaint (&symfile_complaints, -+ _("DW_AT_string_length AND " ++ complaint (_("DW_AT_string_length AND " + "DW_AT_bit_size found but not supported yet.")); + /* If DW_AT_string_length WITHOUT DW_AT_byte_size exist, the default + is the address size of the target machine. */ @@ -176,8 +168,7 @@ index a28d0a029e..4006f4a48f 100644 + + if (!attr_to_dynamic_prop (attr, die, cu, &high, append_ops, + ARRAY_SIZE(append_ops))) -+ complaint (&symfile_complaints, -+ _("Could not parse DW_AT_string_length")); ++ complaint (_("Could not parse DW_AT_string_length")); + } + + TYPE_RANGE_DATA (range_type)->high = high; @@ -217,7 +208,7 @@ index a28d0a029e..4006f4a48f 100644 char_type = language_string_char_type (cu->language_defn, gdbarch); type = create_string_type (NULL, char_type, range_type); -@@ -17529,7 +17596,8 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17429,7 +17492,8 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu) static int attr_to_dynamic_prop (const struct attribute *attr, struct die_info *die, @@ -227,7 +218,7 @@ index a28d0a029e..4006f4a48f 100644 { struct dwarf2_property_baton *baton; struct obstack *obstack -@@ -17540,14 +17608,33 @@ attr_to_dynamic_prop (const struct attribute *attr, struct die_info *die, +@@ -17440,14 +17504,33 @@ attr_to_dynamic_prop (const struct attribute *attr, struct die_info *die, if (attr_form_is_block (attr)) { @@ -265,7 +256,7 @@ index a28d0a029e..4006f4a48f 100644 } else if (attr_form_is_ref (attr)) { -@@ -17580,8 +17667,28 @@ attr_to_dynamic_prop (const struct attribute *attr, struct die_info *die, +@@ -17480,8 +17563,28 @@ attr_to_dynamic_prop (const struct attribute *attr, struct die_info *die, baton = XOBNEW (obstack, struct dwarf2_property_baton); baton->referenced_type = die_type (target_die, target_cu); baton->locexpr.per_cu = cu->per_cu; @@ -296,25 +287,25 @@ index a28d0a029e..4006f4a48f 100644 prop->data.baton = baton; prop->kind = PROP_LOCEXPR; gdb_assert (prop->data.baton != NULL); -@@ -17692,7 +17799,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17592,7 +17695,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) attr = dwarf2_attr (die, DW_AT_byte_stride, cu); if (attr) - if (!attr_to_dynamic_prop (attr, die, cu, &stride)) + if (!attr_to_dynamic_prop (attr, die, cu, &stride, NULL, 0)) - complaint (&symfile_complaints, _("Missing DW_AT_byte_stride " - "- DIE at 0x%s [in module %s]"), + complaint (_("Missing DW_AT_byte_stride " + "- DIE at 0x%s [in module %s]"), sect_offset_str (die->sect_off), -@@ -17700,7 +17807,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17600,7 +17703,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) attr = dwarf2_attr (die, DW_AT_lower_bound, cu); if (attr) - attr_to_dynamic_prop (attr, die, cu, &low); + attr_to_dynamic_prop (attr, die, cu, &low, NULL, 0); else if (!low_default_is_valid) - complaint (&symfile_complaints, _("Missing DW_AT_lower_bound " + complaint (_("Missing DW_AT_lower_bound " "- DIE at %s [in module %s]"), -@@ -17708,10 +17815,10 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17608,10 +17711,10 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) objfile_name (cu->per_cu->dwarf2_per_objfile->objfile)); attr = dwarf2_attr (die, DW_AT_upper_bound, cu); @@ -327,7 +318,7 @@ index a28d0a029e..4006f4a48f 100644 { /* If bounds are constant do the final calculation here. */ if (low.kind == PROP_CONST && high.kind == PROP_CONST) -@@ -25255,7 +25362,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) +@@ -25112,7 +25215,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) attr = dwarf2_attr (die, DW_AT_allocated, cu); if (attr_form_is_block (attr)) { @@ -336,7 +327,7 @@ index a28d0a029e..4006f4a48f 100644 add_dyn_prop (DYN_PROP_ALLOCATED, prop, type); } else if (attr != NULL) -@@ -25270,7 +25377,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) +@@ -25126,7 +25229,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) attr = dwarf2_attr (die, DW_AT_associated, cu); if (attr_form_is_block (attr)) { @@ -345,7 +336,7 @@ index a28d0a029e..4006f4a48f 100644 add_dyn_prop (DYN_PROP_ASSOCIATED, prop, type); } else if (attr != NULL) -@@ -25283,7 +25390,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) +@@ -25138,7 +25241,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) /* Read DW_AT_data_location and set in type. */ attr = dwarf2_attr (die, DW_AT_data_location, cu); @@ -355,7 +346,6 @@ index a28d0a029e..4006f4a48f 100644 if (dwarf2_per_objfile->die_type_hash == NULL) diff --git a/gdb/f-typeprint.c b/gdb/f-typeprint.c -index f14f1811f4..4f6a0ed09a 100644 --- a/gdb/f-typeprint.c +++ b/gdb/f-typeprint.c @@ -37,7 +37,7 @@ static void f_type_print_args (struct type *, struct ui_file *); @@ -498,7 +488,7 @@ index f14f1811f4..4f6a0ed09a 100644 if (passed_a_ptr) fprintf_filtered (stream, ")"); -@@ -383,7 +388,7 @@ f_type_print_base (struct type *type, struct ui_file *stream, int show, +@@ -388,7 +393,7 @@ f_type_print_base (struct type *type, struct ui_file *stream, int show, fputs_filtered (" :: ", stream); fputs_filtered (TYPE_FIELD_NAME (type, index), stream); f_type_print_varspec_suffix (TYPE_FIELD_TYPE (type, index), @@ -508,10 +498,9 @@ index f14f1811f4..4f6a0ed09a 100644 } fprintfi_filtered (level, stream, "End Type "); diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c -index 64711e8cfb..2aa5253100 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c -@@ -1919,7 +1919,8 @@ is_dynamic_type_internal (struct type *type, int top_level) +@@ -1904,7 +1904,8 @@ is_dynamic_type_internal (struct type *type, int top_level) type = check_typedef (type); /* We only want to recognize references at the outermost level. */ @@ -521,7 +510,7 @@ index 64711e8cfb..2aa5253100 100644 type = check_typedef (TYPE_TARGET_TYPE (type)); /* Types that have a dynamic TYPE_DATA_LOCATION are considered -@@ -1953,6 +1954,7 @@ is_dynamic_type_internal (struct type *type, int top_level) +@@ -1938,6 +1939,7 @@ is_dynamic_type_internal (struct type *type, int top_level) } case TYPE_CODE_ARRAY: @@ -529,7 +518,7 @@ index 64711e8cfb..2aa5253100 100644 { gdb_assert (TYPE_NFIELDS (type) == 1); -@@ -2071,7 +2073,8 @@ resolve_dynamic_array (struct type *type, +@@ -2056,7 +2058,8 @@ resolve_dynamic_array (struct type *type, struct dynamic_prop *prop; unsigned int bit_stride = 0; @@ -539,7 +528,7 @@ index 64711e8cfb..2aa5253100 100644 type = copy_type (type); -@@ -2096,11 +2099,15 @@ resolve_dynamic_array (struct type *type, +@@ -2081,11 +2084,15 @@ resolve_dynamic_array (struct type *type, ary_dim = check_typedef (TYPE_TARGET_TYPE (elt_type)); @@ -556,7 +545,7 @@ index 64711e8cfb..2aa5253100 100644 prop = get_dyn_prop (DYN_PROP_BYTE_STRIDE, type); if (prop != NULL) { -@@ -2255,6 +2262,28 @@ resolve_dynamic_struct (struct type *type, +@@ -2240,6 +2247,28 @@ resolve_dynamic_struct (struct type *type, return resolved_type; } @@ -585,7 +574,7 @@ index 64711e8cfb..2aa5253100 100644 /* Worker for resolved_dynamic_type. */ static struct type * -@@ -2303,7 +2332,12 @@ resolve_dynamic_type_internal (struct type *type, +@@ -2288,7 +2317,12 @@ resolve_dynamic_type_internal (struct type *type, break; } @@ -599,7 +588,6 @@ index 64711e8cfb..2aa5253100 100644 break; diff --git a/gdb/testsuite/gdb.cp/vla-cxx.cc b/gdb/testsuite/gdb.cp/vla-cxx.cc -index 1b5b27bf3d..06198b41e0 100644 --- a/gdb/testsuite/gdb.cp/vla-cxx.cc +++ b/gdb/testsuite/gdb.cp/vla-cxx.cc @@ -15,6 +15,10 @@ @@ -631,7 +619,6 @@ index 1b5b27bf3d..06198b41e0 100644 return vla[2]; } diff --git a/gdb/testsuite/gdb.cp/vla-cxx.exp b/gdb/testsuite/gdb.cp/vla-cxx.exp -index ac87499d49..dacbfb6ca0 100644 --- a/gdb/testsuite/gdb.cp/vla-cxx.exp +++ b/gdb/testsuite/gdb.cp/vla-cxx.exp @@ -23,6 +23,12 @@ if ![runto_main] { @@ -1022,7 +1009,6 @@ new file mode 100644 +} +gdb_test "ptype realp" "type = PTR TO -> \\( $real \\)" diff --git a/gdb/testsuite/gdb.fortran/vla-ptype.exp b/gdb/testsuite/gdb.fortran/vla-ptype.exp -index 5351a0aa2e..fa248c5a0c 100644 --- a/gdb/testsuite/gdb.fortran/vla-ptype.exp +++ b/gdb/testsuite/gdb.fortran/vla-ptype.exp @@ -32,9 +32,9 @@ set real [fortran_real4] @@ -1215,7 +1201,6 @@ new file mode 100644 + l = associated(var_char_p) ! var_char_p-not-associated +end program vla_strings diff --git a/gdb/testsuite/gdb.fortran/vla-type.exp b/gdb/testsuite/gdb.fortran/vla-type.exp -index aff0d5a258..6f2d6a4009 100755 --- a/gdb/testsuite/gdb.fortran/vla-type.exp +++ b/gdb/testsuite/gdb.fortran/vla-type.exp @@ -132,7 +132,10 @@ gdb_test "ptype fivearr(2)%tone" \ @@ -1240,7 +1225,6 @@ index aff0d5a258..6f2d6a4009 100755 "ptype fivedynarr(2)%tone, not allocated" diff --git a/gdb/testsuite/gdb.fortran/vla-value.exp b/gdb/testsuite/gdb.fortran/vla-value.exp -index 4b1842e38c..5a831a3964 100644 --- a/gdb/testsuite/gdb.fortran/vla-value.exp +++ b/gdb/testsuite/gdb.fortran/vla-value.exp @@ -35,7 +35,7 @@ gdb_breakpoint [gdb_get_line_number "vla1-init"] @@ -1262,7 +1246,6 @@ index 4b1842e38c..5a831a3964 100644 gdb_test "print pvla(1, 3, 8)" "no such vector element \\\(vector not associated\\\)" \ "print undefined pvla(1,3,8)" diff --git a/gdb/testsuite/gdb.mi/mi-vla-fortran.exp b/gdb/testsuite/gdb.mi/mi-vla-fortran.exp -index b6e777235c..14b611f7b5 100644 --- a/gdb/testsuite/gdb.mi/mi-vla-fortran.exp +++ b/gdb/testsuite/gdb.mi/mi-vla-fortran.exp @@ -51,10 +51,10 @@ mi_expect_stop "breakpoint-hit" "vla" "" ".*vla.f90" "$bp_lineno" \ @@ -1292,10 +1275,9 @@ index b6e777235c..14b611f7b5 100644 mi_gdb_test "582-var-show-format pvla2_not_associated" \ "582\\^done,format=\"natural\"" \ diff --git a/gdb/typeprint.c b/gdb/typeprint.c -index 222fc0a06b..37021e8d0d 100644 --- a/gdb/typeprint.c +++ b/gdb/typeprint.c -@@ -464,6 +464,25 @@ whatis_exp (const char *exp, int show) +@@ -589,6 +589,25 @@ whatis_exp (const char *exp, int show) printf_filtered (" */\n"); } @@ -1322,7 +1304,6 @@ index 222fc0a06b..37021e8d0d 100644 printf_filtered ("\n"); } diff --git a/gdb/valops.c b/gdb/valops.c -index 5c35d7a091..9b6600b538 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1565,6 +1565,19 @@ value_ind (struct value *arg1) @@ -1356,7 +1337,6 @@ index 5c35d7a091..9b6600b538 100644 enc_type = value_type (arg2); return readjust_indirect_value_type (arg2, enc_type, base_type, arg1); diff --git a/gdb/valprint.c b/gdb/valprint.c -index bed2cecf2c..2537d77c19 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -1108,12 +1108,6 @@ value_check_printable (struct value *val, struct ui_file *stream, diff --git a/gdb-vla-intel-stringbt-fix.patch b/gdb-vla-intel-stringbt-fix.patch index 78e1d87..b2170f4 100644 --- a/gdb-vla-intel-stringbt-fix.patch +++ b/gdb-vla-intel-stringbt-fix.patch @@ -1,10 +1,7 @@ From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 1 Aug 2014 23:02:17 +0200 -Subject: Crash regression(?) printing Fortran strings in bt [Re: [V2 00/23] - Fortran dynamic array support] - -FileName: gdb-vla-intel-stringbt-fix.patch +Subject: gdb-vla-intel-stringbt-fix.patch ;;=push+jan @@ -31,7 +28,6 @@ Thanks, Jan diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c -index fa9ff30721..cfca1c2751 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -42,6 +42,7 @@ diff --git a/gdb-vla-intel-tests.patch b/gdb-vla-intel-tests.patch index 066fcc8..36c97ab 100644 --- a/gdb-vla-intel-tests.patch +++ b/gdb-vla-intel-tests.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-vla-intel-tests.patch -FileName: gdb-vla-intel-tests.patch - ;;=fedoratest diff --git a/gdb/testsuite/gdb.fortran/vla-func.exp b/gdb/testsuite/gdb.fortran/vla-func.exp diff --git a/gdb-x86_64-i386-syscall-restart.patch b/gdb-x86_64-i386-syscall-restart.patch index a301628..575674f 100644 --- a/gdb-x86_64-i386-syscall-restart.patch +++ b/gdb-x86_64-i386-syscall-restart.patch @@ -3,8 +3,6 @@ From: Fedora GDB patches Date: Fri, 27 Oct 2017 21:07:50 +0200 Subject: gdb-x86_64-i386-syscall-restart.patch -FileName: gdb-x86_64-i386-syscall-restart.patch - ;; Fix syscall restarts for amd64->i386 biarch. ;;=push+jan @@ -88,7 +86,6 @@ gdb/ Sign extend it afterwards. diff --git a/gdb/amd64-nat.c b/gdb/amd64-nat.c -index 12d364a716..0359edf041 100644 --- a/gdb/amd64-nat.c +++ b/gdb/amd64-nat.c @@ -135,9 +135,9 @@ amd64_collect_native_gregset (const struct regcache *regcache, @@ -104,7 +101,7 @@ index 12d364a716..0359edf041 100644 if (regnum == -1 || regnum == i) memset (regs + amd64_native_gregset_reg_offset (gdbarch, i), 0, 8); @@ -163,4 +163,20 @@ amd64_collect_native_gregset (const struct regcache *regcache, - regcache_raw_collect (regcache, i, regs + offset); + regcache->raw_collect (i, regs + offset); } } + diff --git a/gdb.spec b/gdb.spec index 2bad982..5dad932 100644 --- a/gdb.spec +++ b/gdb.spec @@ -18,7 +18,7 @@ Name: %{?scl_prefix}gdb # Freeze it when GDB gets branched -%global snapsrc 20180522 +%global snapsrc 20180629 # See timestamp of source gnulib installed into gdb/gnulib/ . %global snapgnulib 20161115 %global tarname gdb-%{version} @@ -26,7 +26,7 @@ Version: 8.1.50.%{snapsrc} # 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. -Release: 15.0.riscv64%{?dist} +Release: 27.0.riscv64%{?dist} License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and LGPLv3+ and BSD and Public Domain and GFDL Group: Development/Debuggers @@ -245,6 +245,8 @@ BuildRequires: libipt-devel%{buildisa} %endif %endif %endif +# See https://bugzilla.redhat.com/show_bug.cgi?id=1593280 +BuildRequires: mpfr-devel%{buildisa} %if 0%{?_with_testsuite:1} @@ -386,8 +388,13 @@ Summary: Documentation for GDB (the GNU source-level debugger) License: GFDL Group: Documentation BuildArch: noarch +%if 0%{?scl:1} +# As of F-28, packages won't need to call /sbin/install-info by hand +# anymore. We make an exception for DTS here. +# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/MP2QVJZBOJZEOQO2G7UB2HLXKXYPF2G5/ Requires(post): /sbin/install-info Requires(preun): /sbin/install-info +%endif %description doc GDB, the GNU debugger, allows you to debug programs written in C, C++, @@ -620,6 +627,7 @@ $(: ppc64 host build crashes on ppc variant of libexpat.so ) \ %else --without-intel-pt \ %endif + --with-mpfr \ --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}' \ %ifarch sparc sparcv9 @@ -823,7 +831,7 @@ done %ifnarch riscv64 %if 0%{?_enable_debug_packages:1} && 0%{!?_without_python:1} mkdir -p $RPM_BUILD_ROOT/usr/lib/debug%{_bindir} -cp -p $RPM_BUILD_DIR/%{gdb_src}/gdb/gdb-gdb.py $RPM_BUILD_ROOT/usr/lib/debug%{_bindir}/ +cp -p ./gdb/gdb-gdb.py $RPM_BUILD_ROOT/usr/lib/debug%{_bindir}/ for pyo in "" "-O";do # RHEL-5: AttributeError: 'module' object has no attribute 'compile_file' %{__python} $pyo -c 'import compileall, re, sys; sys.exit (not compileall.compile_dir("'"$RPM_BUILD_ROOT/usr/lib/debug%{_bindir}"'", 1, "'"/usr/lib/debug%{_bindir}"'"))' @@ -1011,6 +1019,11 @@ done %{_infodir}/annotate.info* %{_infodir}/gdb.info* +%if 0%{?scl:1} +# As of F-28, packages won't need to call /sbin/install-info by hand +# anymore. We make an exception for DTS here. +# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/MP2QVJZBOJZEOQO2G7UB2HLXKXYPF2G5/ + %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. @@ -1032,11 +1045,51 @@ then /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || : fi fi +%endif %changelog -* Sun Jun 03 2018 David Abdurachmanov - 8.1.50.20180522-15.0.riscv64.fc28 +* Wed Jul 04 2018 David Abdurachmanov - 8.1.50.20180629-27.0.riscv64.fc29 - Enable RISC-V (riscv64) +* Mon Jul 02 2018 Miro Hrončok +- Rebuilt for Python 3.7 + +* Fri Jun 29 2018 Sergio Durigan Junior - 8.1.50.20180629-26.fc29 +- Rebase to FSF GDB 8.1.50.20180629 (8.2pre). +- Remove pahole.py. +- Adjust handling of gdb-gdb.py. + +* Sun Jun 24 2018 Sergio Durigan Junior - 8.1.50.20180624-25.fc29 +- Rebase to FSF GDB 8.1.50.20180624 (8.2pre). + +* Wed Jun 20 2018 Sergio Durigan Junior - 8.1.50.20180618-24.fc29 +- Add BuildRequires: mpfr-devel (RH BZ 1593280). + +* Mon Jun 18 2018 Sergio Durigan Junior - 8.1.50.20180618-23.fc29 +- Rebase to FSF GDB 8.1.50.20180618 (8.2pre). + +* Mon Jun 18 2018 Sergio Durigan Junior - 8.1.50.20180613-22.fc29 +- Do not run /sbin/install-info when installing the documentation + (except for DTS). + +* Wed Jun 13 2018 Sergio Durigan Junior - 8.1.50.20180613-21.fc29 +- Rebase to FSF GDB 8.1.50.20180613 (8.2pre). + +* Wed Jun 13 2018 Miro Hrončok +- Rebuilt for Python 3.7 + +* Wed Jun 13 2018 Miro Hrončok +- Bootstrap for Python 3.7 + +* Fri Jun 8 2018 Sergio Durigan Junior - 8.1.50.20180605-18.fc29 +- Fix Python 3.7 breakage (RH BZ 1577396). + +* Tue Jun 5 2018 Sergio Durigan Junior - 8.1.50.20180605-17.fc29 +- Rebase to FSF GDB 8.1.50.20180605 (8.2pre). + +* Sat Jun 2 2018 Sergio Durigan Junior - 8.1.50.20180522-16.fc29 +- Rebase to FSF GDB 8.1.50.20180529 (8.2pre). + * Wed May 30 2018 Sergio Durigan Junior - 8.1.50.20180522-15.fc28 - Rebase to FSF GDB 8.1.50.20180522 (8.2pre). diff --git a/generate-patches-from-git-repo.sh b/generate-patches-from-git-repo.sh index 6790319..3d454b7 100755 --- a/generate-patches-from-git-repo.sh +++ b/generate-patches-from-git-repo.sh @@ -63,15 +63,15 @@ temp_patch_order_file=/tmp/_patch_order rm -f $temp_PATCH_file $temp_patch_file $temp_patch_order_file for c in `git rev-list --reverse ${common_ancestor}..HEAD` ; do - fname=`git log -1 --pretty='format:%b' $c | sed -n 's/^FileName: \(.*\)$/\1/p'` - test -z $fname && die "Could not determine FileName of commit $c." + fname=`git log -1 --pretty='format:%s' $c` + test -z $fname && die "Could not determine filename for commit $c." # Because git-format-patch generates patches with the first line # containing the commit hash, every time we do a git-format-patch # here we will have a different .patch file from what we had # before, even if nothing has changed. This is bad, so we replace # the commit hash by something constant (the string # "FEDORA_PATCHES"). - git format-patch --no-signature --no-stat --keep -1 --stdout $c | sed -e '1 s/^From [0-9a-f]\+ \(.*\)/From FEDORA_PATCHES \1/' -e '/^index [0-9a-f]\+\.\.[0-9a-f]\+$/d' > ../$fname + git format-patch --no-signature --no-stat --keep -1 --stdout $c | sed -e '1 s/^From [0-9a-f]\+ \(.*\)/From FEDORA_PATCHES \1/' -e '/^index [0-9a-f]\+\.\.[0-9a-f]\+.*$/d' > ../$fname (cd .. && git add $fname) cat >> $temp_PATCH_file <