From 9e41188f8df9a854d264bfc4dc350e101ba38867 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Mon, 4 Jun 2018 16:26:33 -0400 Subject: [PATCH 01/16] Rebase to FSF GDB 8.1.50.20180529 (8.2pre). --- .gitignore | 3 +- _git_upstream_commit | 2 +- gdb-6.3-gstack-20050411.patch | 8 +-- gdb-6.3-ppc64syscall-20040622.patch | 10 ++-- gdb-6.5-bz203661-emit-relocs.patch | 2 +- gdb-6.6-buildid-locate-rpm-scl.patch | 6 +-- gdb-6.6-buildid-locate.patch | 12 ++--- gdb-6.8-quit-never-aborts.patch | 2 +- gdb-archer-pie-addons-keep-disabled.patch | 2 +- gdb-archer-pie-addons.patch | 4 +- gdb-archer-vla-tests.patch | 2 +- gdb-archer.patch | 8 +-- gdb-bz541866-rwatch-before-run.patch | 2 +- gdb-bz568248-oom-is-error.patch | 2 +- gdb-container-rh-pkg.patch | 4 +- gdb-glibc-strstr-workaround.patch | 4 +- gdb-gnat-dwarf-crash-3of3.patch | 7 ++- gdb-python-gil.patch | 2 +- gdb-rhbz795424-bitpos-20of25.patch | 65 +++++++++++------------ gdb-rhbz795424-bitpos-21of25.patch | 10 ++-- gdb-rhbz795424-bitpos-22of25.patch | 22 ++++---- gdb-rhbz795424-bitpos-23of25.patch | 6 +-- gdb-vla-intel-fortran-strides.patch | 18 +++---- gdb-vla-intel-fortran-vla-strings.patch | 48 ++++++++--------- gdb-vla-intel-stringbt-fix.patch | 2 +- gdb.spec | 7 ++- sources | 2 +- 27 files changed, 129 insertions(+), 133 deletions(-) diff --git a/.gitignore b/.gitignore index 96985c5..c26b5d5 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.20180529.tar.xz diff --git a/_git_upstream_commit b/_git_upstream_commit index e853d25..688cd57 100644 --- a/_git_upstream_commit +++ b/_git_upstream_commit @@ -1 +1 @@ -75d74ccace05f6166a45dbaa352abf753891d3be +b8283aea9e599f17dbae7f52223994e3a9168143 diff --git a/gdb-6.3-gstack-20050411.patch b/gdb-6.3-gstack-20050411.patch index 449b7db..73301c3 100644 --- a/gdb-6.3-gstack-20050411.patch +++ b/gdb-6.3-gstack-20050411.patch @@ -16,10 +16,10 @@ 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 +index 5b650c6643..8c487916d2 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 +@@ -1729,7 +1729,7 @@ info install-info clean-info dvi pdf install-pdf html install-html: force install: all @$(MAKE) $(FLAGS_TO_PASS) install-only @@ -28,7 +28,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: +@@ -1778,7 +1778,25 @@ install-guile: install-python: $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb @@ -55,7 +55,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) +@@ -1801,6 +1819,18 @@ uninstall: force $(CONFIG_UNINSTALL) fi @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do diff --git a/gdb-6.3-ppc64syscall-20040622.patch b/gdb-6.3-ppc64syscall-20040622.patch index 1bdc4b8..4e324c7 100644 --- a/gdb-6.3-ppc64syscall-20040622.patch +++ b/gdb-6.3-ppc64syscall-20040622.patch @@ -17,7 +17,7 @@ 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 +index ff4699c191..feed75fbf9 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 +28,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 +36,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 +51,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 +107,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.5-bz203661-emit-relocs.patch b/gdb-6.5-bz203661-emit-relocs.patch index dd2db52..a21a597 100644 --- a/gdb-6.5-bz203661-emit-relocs.patch +++ b/gdb-6.5-bz203661-emit-relocs.patch @@ -9,7 +9,7 @@ FileName: gdb-6.5-bz203661-emit-relocs.patch ;;=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 +index a57bd6a593..e9875a08de 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -3492,6 +3492,12 @@ default_symfile_relocate (struct objfile *objfile, asection *sectp, diff --git a/gdb-6.6-buildid-locate-rpm-scl.patch b/gdb-6.6-buildid-locate-rpm-scl.patch index dc6da5f..162fdae 100644 --- a/gdb-6.6-buildid-locate-rpm-scl.patch +++ b/gdb-6.6-buildid-locate-rpm-scl.patch @@ -100,10 +100,10 @@ index 5af9d66899..2ff93191c7 100644 { return strcoll (*ap, *bp); diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index 328a07df82..45c22450b1 100644 +index cf0c887a2a..fa6744b377 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_index_from_section (struct objfile *objfile, "set use-deprecated-index-sections on". */ if (version < 6 && !deprecated_ok) { @@ -120,7 +120,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.patch b/gdb-6.6-buildid-locate.patch index c2b4209..ce126fb 100644 --- a/gdb-6.6-buildid-locate.patch +++ b/gdb-6.6-buildid-locate.patch @@ -872,7 +872,7 @@ index 15fb609409..1f62db0239 100644 #endif /* BUILD_ID_H */ diff --git a/gdb/coffread.c b/gdb/coffread.c -index f24ec0713a..5c1c3e61ea 100644 +index 5345fb7998..66d725d4a3 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -733,7 +733,8 @@ coff_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) @@ -983,10 +983,10 @@ index c6175279da..76945950b9 100644 + &setlist, &showlist); } diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo -index 28f083f96e..403f5ca658 100644 +index 62ba1d25a4..06a8d6d2b3 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo -@@ -19558,6 +19558,27 @@ information files. +@@ -19561,6 +19561,27 @@ information files. @end table @@ -1015,10 +1015,10 @@ 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 +index 7fe15e5d05..901ebeb4e5 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) @@ -1223,7 +1223,7 @@ 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 +index ee66a38e08..83f2854faa 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -1694,6 +1694,16 @@ proc default_gdb_start { } { diff --git a/gdb-6.8-quit-never-aborts.patch b/gdb-6.8-quit-never-aborts.patch index 647ca40..a2abda9 100644 --- a/gdb-6.8-quit-never-aborts.patch +++ b/gdb-6.8-quit-never-aborts.patch @@ -65,7 +65,7 @@ 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 +index 42d4225595..8f9159bfa6 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-archer-pie-addons-keep-disabled.patch b/gdb-archer-pie-addons-keep-disabled.patch index c29cb68..b301df6 100644 --- a/gdb-archer-pie-addons-keep-disabled.patch +++ b/gdb-archer-pie-addons-keep-disabled.patch @@ -77,7 +77,7 @@ index 4223158fbc..407cc531db 100644 extern void print_breakpoint (breakpoint *bp); diff --git a/gdb/objfiles.c b/gdb/objfiles.c -index f57f4f58b0..d31c0d6f56 100644 +index 0432ce6208..c009a40b09 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..08a1564 100644 --- a/gdb-archer-pie-addons.patch +++ b/gdb-archer-pie-addons.patch @@ -52,10 +52,10 @@ 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 +index 6bb6b8eb61..3e0b2ff883 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..7ff0cab 100644 --- a/gdb-archer-vla-tests.patch +++ b/gdb-archer-vla-tests.patch @@ -3692,7 +3692,7 @@ 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 +index 83f2854faa..4402f78f79 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -169,6 +169,11 @@ proc gdb_unload {} { diff --git a/gdb-archer.patch b/gdb-archer.patch index c92d1ad..72753ee 100644 --- a/gdb-archer.patch +++ b/gdb-archer.patch @@ -17,10 +17,10 @@ commit 718a1618b2f691a7f407213bb50f100ac59f91c3 tromey/python diff --git a/gdb/Makefile.in b/gdb/Makefile.in -index 1ea7a36c69..b767caa735 100644 +index 8c487916d2..cbbefb91af 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in -@@ -2094,6 +2094,12 @@ stamp-h: $(srcdir)/config.in config.status +@@ -2096,6 +2096,12 @@ stamp-h: $(srcdir)/config.in config.status CONFIG_LINKS= \ $(SHELL) config.status @@ -56,7 +56,7 @@ 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 +index 06a8d6d2b3..2fc7a46f46 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -1245,6 +1245,16 @@ for remote debugging. @@ -472,7 +472,7 @@ 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 +index f5829d6c08..a2a849f77d 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -95,6 +95,8 @@ const struct extension_language_defn extension_language_python = diff --git a/gdb-bz541866-rwatch-before-run.patch b/gdb-bz541866-rwatch-before-run.patch index e740c71..4507b1b 100644 --- a/gdb-bz541866-rwatch-before-run.patch +++ b/gdb-bz541866-rwatch-before-run.patch @@ -98,7 +98,7 @@ new file mode 100644 + +#endif /* NM_LINUX64_H */ diff --git a/gdb/configure.nat b/gdb/configure.nat -index 6b0f44fede..dd0c63c256 100644 +index bcaeaf4583..28babcf0ad 100644 --- a/gdb/configure.nat +++ b/gdb/configure.nat @@ -237,6 +237,7 @@ case ${gdb_host} in diff --git a/gdb-bz568248-oom-is-error.patch b/gdb-bz568248-oom-is-error.patch index 161d621..4a905f2 100644 --- a/gdb-bz568248-oom-is-error.patch +++ b/gdb-bz568248-oom-is-error.patch @@ -53,7 +53,7 @@ gdb/ * utils.c (nomem): Change internal_error to error. diff --git a/gdb/utils.c b/gdb/utils.c -index 9c5bf68e5a..7813df1436 100644 +index a2e933bc8d..c69c01efc1 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -746,13 +746,11 @@ malloc_failure (long size) diff --git a/gdb-container-rh-pkg.patch b/gdb-container-rh-pkg.patch index 99efe00..54157bf 100644 --- a/gdb-container-rh-pkg.patch +++ b/gdb-container-rh-pkg.patch @@ -9,10 +9,10 @@ FileName: gdb-container-rh-pkg.patch ;;=fedora diff --git a/gdb/remote.c b/gdb/remote.c -index 635cb266e8..a683df4a83 100644 +index 9eed75aa8c..ffaf01fa7d 100644 --- a/gdb/remote.c +++ b/gdb/remote.c -@@ -13667,7 +13667,17 @@ remote_target::pid_to_exec_file (int pid) +@@ -14048,7 +14048,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-glibc-strstr-workaround.patch b/gdb-glibc-strstr-workaround.patch index dec6245..79f6630 100644 --- a/gdb-glibc-strstr-workaround.patch +++ b/gdb-glibc-strstr-workaround.patch @@ -9,10 +9,10 @@ FileName: gdb-glibc-strstr-workaround.patch ;;=fedora: Compatibility with RHELs (unchecked which ones). diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index 266740f74c..d69f154af3 100644 +index 901ebeb4e5..76884243fe 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, +@@ -21272,6 +21272,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..b4a0486 100644 --- a/gdb-gnat-dwarf-crash-3of3.patch +++ b/gdb-gnat-dwarf-crash-3of3.patch @@ -42,17 +42,16 @@ gdb/ * dwarf2read.c (process_die): Change gdb_assert to complaint. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index 420c3e6bd5..328a07df82 100644 +index ae1c86acfe..cf0c887a2a 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -10516,6 +10516,14 @@ private: +@@ -10491,6 +10491,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; + } diff --git a/gdb-python-gil.patch b/gdb-python-gil.patch index 9ba2b09..d82cd52 100644 --- a/gdb-python-gil.patch +++ b/gdb-python-gil.patch @@ -41,7 +41,7 @@ index 26400f4fba..b8e2d9049d 100644 #endif diff --git a/gdb/python/python.c b/gdb/python/python.c -index db37331dc4..4233b37fa8 100644 +index c29e7d7a6b..f5829d6c08 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-rhbz795424-bitpos-20of25.patch b/gdb-rhbz795424-bitpos-20of25.patch index 8aad2e2..8be6227 100644 --- a/gdb-rhbz795424-bitpos-20of25.patch +++ b/gdb-rhbz795424-bitpos-20of25.patch @@ -486,7 +486,7 @@ 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 +index 64bddc2670..e90e901027 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -78,7 +78,7 @@ static struct type *desc_bounds_type (struct type *); @@ -1372,10 +1372,10 @@ 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 +index 6bbb470957..307eee32c4 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 +1384,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, +@@ -667,7 +667,7 @@ evaluate_subexp_c (struct type *expect_type, struct expression *exp, } else { @@ -1393,7 +1393,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, +@@ -676,7 +676,7 @@ evaluate_subexp_c (struct type *expect_type, struct expression *exp, if (satisfy_expected) { LONGEST low_bound, high_bound; @@ -1624,7 +1624,7 @@ 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 +index 45814c747b..11d1231df2 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -1817,7 +1817,7 @@ rw_pieced_value (struct value *v, struct value *from) @@ -1688,10 +1688,10 @@ index cfca1c2751..d91d69155d 100644 if (subobj_byte_offset + len > max) diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index d69f154af3..420c3e6bd5 100644 +index 76884243fe..ae1c86acfe 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 +1700,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, +@@ -14941,8 +14941,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. */ @@ -1893,10 +1892,10 @@ 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 +index c0f6e64dfc..215034f269 100644 --- a/gdb/frame.c +++ b/gdb/frame.c -@@ -1382,7 +1382,7 @@ deprecated_frame_register_read (struct frame_info *frame, int regnum, +@@ -1398,7 +1398,7 @@ deprecated_frame_register_read (struct frame_info *frame, int regnum, int get_frame_register_bytes (struct frame_info *frame, int regnum, @@ -1905,7 +1904,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, +@@ -1427,7 +1427,7 @@ get_frame_register_bytes (struct frame_info *frame, int regnum, } if (len > maxsize) error (_("Bad debug information detected: " @@ -1915,10 +1914,10 @@ index 07fa2bc77d..b5a2c50ec9 100644 /* Copy the data. */ while (len > 0) diff --git a/gdb/frame.h b/gdb/frame.h -index d5800b78c2..ec70d94b58 100644 +index a6f7fd8947..eb955346d5 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, @@ -1969,7 +1968,7 @@ 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 +index 99cd1bcb92..2a7ab244fb 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -2925,7 +2925,7 @@ floatformat_from_type (const struct type *type) @@ -2441,10 +2440,10 @@ 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 +index 36831071fb..fe59c80c32 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 @@ -2665,10 +2664,10 @@ 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 +index eb21f91c13..9e188a0ec3 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) +@@ -1313,7 +1313,7 @@ ppc_linux_nat_target::can_use_hw_breakpoint (enum bptype type, int cnt, int ot) } int @@ -2678,10 +2677,10 @@ 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 +index 5716f82810..bf54f2690d 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, +@@ -1705,7 +1705,7 @@ ppc_init_linux_record_tdep (struct linux_record_tdep *record_tdep, const struct floatformat ** ppc_floatformat_for_type (struct gdbarch *gdbarch, @@ -2903,10 +2902,10 @@ index d7bb8b5c93..06f878ab01 100644 diff --git a/gdb/remote.c b/gdb/remote.c -index 58ed9e4f4d..ce67d76195 100644 +index e7ade41c34..5bf085d123 100644 --- a/gdb/remote.c +++ b/gdb/remote.c -@@ -146,7 +146,7 @@ public: +@@ -455,7 +455,7 @@ public: int remove_hw_breakpoint (struct gdbarch *, struct bp_target_info *) override; @@ -2915,7 +2914,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; +@@ -10552,7 +10552,7 @@ int remote_hw_watchpoint_length_limit = -1; int remote_hw_breakpoint_limit = -1; int @@ -2983,7 +2982,7 @@ index 5da5e4e7fc..29db0e8ea6 100644 struct target_ops *ops_beneath = find_target_beneath (this); diff --git a/gdb/stack.c b/gdb/stack.c -index 74c92537da..10f246ecd1 100644 +index bfd9653cca..e71a44e70a 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -190,7 +190,7 @@ print_stack_frame (struct frame_info *frame, int print_level, @@ -3133,7 +3132,7 @@ 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 +index d99d663895..836d4e3d5d 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -829,10 +829,10 @@ collection_list::add_register (unsigned int regno) @@ -3474,10 +3473,10 @@ 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 +index 3e0b2ff883..33c28f2340 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 +3486,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 +3497,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 diff --git a/gdb-rhbz795424-bitpos-21of25.patch b/gdb-rhbz795424-bitpos-21of25.patch index 84f40f8..f00e764 100644 --- a/gdb-rhbz795424-bitpos-21of25.patch +++ b/gdb-rhbz795424-bitpos-21of25.patch @@ -115,7 +115,7 @@ index e5c1b07040..06fb3b77c9 100644 base_valaddr = buf.data (); diff --git a/gdb/utils.c b/gdb/utils.c -index 7813df1436..c816e2f897 100644 +index c69c01efc1..42d4225595 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -2816,6 +2816,17 @@ string_to_core_addr (const char *my_string) @@ -149,10 +149,10 @@ index 96b922dbef..a7f9be5f4e 100644 address = value_address (*arg1p); diff --git a/gdb/value.c b/gdb/value.c -index 569281dbbd..1964cf771c 100644 +index 33c28f2340..f1a98a8556 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 +160,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 +169,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); diff --git a/gdb-rhbz795424-bitpos-22of25.patch b/gdb-rhbz795424-bitpos-22of25.patch index 1f4d982..3592faa 100644 --- a/gdb-rhbz795424-bitpos-22of25.patch +++ b/gdb-rhbz795424-bitpos-22of25.patch @@ -282,7 +282,7 @@ 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 +index 9e188a0ec3..f08a964983 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 +306,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) +@@ -1664,11 +1664,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 +321,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) +@@ -1756,7 +1756,7 @@ num_memory_accesses (const std::vector &chain) of the constant. */ static int check_condition (CORE_ADDR watch_addr, struct expression *cond, @@ -330,7 +330,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, +@@ -1807,7 +1807,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 +340,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, +@@ -1825,7 +1826,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 +349,7 @@ index b70f168106..a712197618 100644 struct expression *cond, int insert) { if (len == 1 -@@ -2274,7 +2275,7 @@ ppc_linux_nat_target::stopped_by_watchpoint () +@@ -2091,7 +2092,7 @@ ppc_linux_nat_target::stopped_by_watchpoint () bool ppc_linux_nat_target::watchpoint_addr_within_range (CORE_ADDR addr, CORE_ADDR start, @@ -381,10 +381,10 @@ index ca7cc221f9..717a1130fe 100644 { int pflags = 0; diff --git a/gdb/remote.c b/gdb/remote.c -index ce67d76195..635cb266e8 100644 +index 5bf085d123..9eed75aa8c 100644 --- a/gdb/remote.c +++ b/gdb/remote.c -@@ -138,7 +138,7 @@ public: +@@ -447,7 +447,7 @@ public: bool stopped_data_address (CORE_ADDR *) override; @@ -393,7 +393,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, +@@ -10481,7 +10481,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 +402,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, +@@ -10501,7 +10501,7 @@ remote_target::insert_watchpoint (CORE_ADDR addr, int len, bool remote_target::watchpoint_addr_within_range (CORE_ADDR addr, @@ -411,7 +411,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, +@@ -10530,7 +10530,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); diff --git a/gdb-rhbz795424-bitpos-23of25.patch b/gdb-rhbz795424-bitpos-23of25.patch index 4bd2010..23628ed 100644 --- a/gdb-rhbz795424-bitpos-23of25.patch +++ b/gdb-rhbz795424-bitpos-23of25.patch @@ -886,10 +886,10 @@ 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 +index ecf6191df0..acf2473018 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 +901,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: +@@ -309,7 +309,7 @@ ran_out_of_registers_for_arguments: if ((argno < nargs) || argbytes) { diff --git a/gdb-vla-intel-fortran-strides.patch b/gdb-vla-intel-fortran-strides.patch index 0f5cbcf..43e5bcf 100644 --- a/gdb-vla-intel-fortran-strides.patch +++ b/gdb-vla-intel-fortran-strides.patch @@ -37,7 +37,7 @@ dbfd7140bf4c0500d1f5d192be781f83f78f7922 23 files changed, 1242 insertions(+), 183 deletions(-) diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c -index 6ecc5a9be6..fa9ff30721 100644 +index 730934fe6e..e1dd28e7e7 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -2600,11 +2600,14 @@ dwarf2_locexpr_baton_eval (const struct dwarf2_locexpr_baton *dlbaton, @@ -145,10 +145,10 @@ index f82e7b2d11..74f0597359 100644 property to C code. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index 49ce83ff20..a28d0a029e 100644 +index 834bce776a..464dff0d2b 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -17635,7 +17635,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17552,7 +17552,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 +157,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) +@@ -17572,7 +17572,9 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) low.kind = PROP_CONST; high.kind = PROP_CONST; @@ -167,22 +167,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) +@@ -17605,6 +17607,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) +@@ -17682,7 +17692,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; @@ -840,7 +840,7 @@ 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 +index 4f77a5214e..98d3260860 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -902,7 +902,8 @@ operator== (const range_bounds &l, const range_bounds &r) diff --git a/gdb-vla-intel-fortran-vla-strings.patch b/gdb-vla-intel-fortran-vla-strings.patch index 4d2a16a..eebed08 100644 --- a/gdb-vla-intel-fortran-vla-strings.patch +++ b/gdb-vla-intel-fortran-vla-strings.patch @@ -79,7 +79,7 @@ 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 +index 464dff0d2b..7fe15e5d05 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -1789,7 +1789,8 @@ static void read_signatured_type (struct signatured_type *); @@ -92,7 +92,7 @@ index a28d0a029e..4006f4a48f 100644 /* memory allocation interface */ -@@ -13681,7 +13682,7 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu) +@@ -13640,7 +13641,7 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu) { newobj->static_link = XOBNEW (&objfile->objfile_obstack, struct dynamic_prop); @@ -101,7 +101,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) +@@ -16311,7 +16312,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 +110,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 " +@@ -17076,29 +17078,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 +137,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 +159,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 +173,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 +213,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) +@@ -17446,7 +17509,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 +223,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, +@@ -17457,14 +17521,33 @@ attr_to_dynamic_prop (const struct attribute *attr, struct die_info *die, if (attr_form_is_block (attr)) { @@ -265,7 +261,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, +@@ -17497,8 +17580,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 +292,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) +@@ -17609,7 +17712,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) +@@ -17617,7 +17720,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) +@@ -17625,10 +17728,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 +323,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) +@@ -25129,7 +25232,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 +332,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) +@@ -25143,7 +25246,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 +341,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) +@@ -25155,7 +25258,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); @@ -508,7 +504,7 @@ index f14f1811f4..4f6a0ed09a 100644 } fprintfi_filtered (level, stream, "End Type "); diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c -index 64711e8cfb..2aa5253100 100644 +index 98d3260860..99cd1bcb92 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -1919,7 +1919,8 @@ is_dynamic_type_internal (struct type *type, int top_level) diff --git a/gdb-vla-intel-stringbt-fix.patch b/gdb-vla-intel-stringbt-fix.patch index 78e1d87..b9fe0e2 100644 --- a/gdb-vla-intel-stringbt-fix.patch +++ b/gdb-vla-intel-stringbt-fix.patch @@ -31,7 +31,7 @@ Thanks, Jan diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c -index fa9ff30721..cfca1c2751 100644 +index e1dd28e7e7..45814c747b 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -42,6 +42,7 @@ diff --git a/gdb.spec b/gdb.spec index 8a0c0bb..b8b0d8c 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 20180529 # 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%{?dist} +Release: 16%{?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 @@ -1026,6 +1026,9 @@ then fi %changelog +* 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/sources b/sources index 37748c2..68212fa 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ SHA512 (gdb-libstdc++-v3-python-7.1.1-20170526.tar.xz) = 3d540b99581ffa4cf2810bec979c9a01a1f8ce782b7c8efb46b40dd2421d60cdb0e52b53c5477c3e86a57957a2a14489f5c29dc53868738a1ef79e79cf76d0a1 SHA512 (v1.6.1.tar.gz) = c7c9c8ba78021fff3fde12a216f5729c6031114e5a727f49b7ff1a31c53b5ddba24d1b3aee252d8278ecd1fafe78a44ed059c12b9eb29eca33093e0720673468 -SHA512 (gdb-8.1.50.20180522.tar.xz) = 27a6b106cc1f21a74acf31be45d623115a18818a9f5008ac7748dbe745685f41f055fe8acf736ee5f0d6716d47b2a4307197db8899a3a4e220bed72b1e126d97 +SHA512 (gdb-8.1.50.20180529.tar.xz) = 93e2272eacf890c5ad99f7a04f8e24df8300a064730781adadcc65441e8a73fb1668d962628d3cbc10e6c91d8efe1bda211aa83ebd135667c502369339a963a7 From 56d681a5964538573197f1ced3932d6b21909cdc Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Tue, 5 Jun 2018 11:25:20 -0400 Subject: [PATCH 02/16] Remove missing "^index .*" lines from patches, and regenerate them --- gdb-6.3-bz140532-ppc-unwinding-test.patch | 1 - gdb-6.3-gstack-20050411.patch | 1 - gdb-6.3-ppc64displaysymbol-20041124.patch | 1 - gdb-6.3-ppc64syscall-20040622.patch | 1 - gdb-6.3-readnever-20050907.patch | 1 - gdb-6.3-rh-testversion-20041202.patch | 1 - gdb-6.3-test-self-20050110.patch | 1 - ...337-resolve-tls-without-debuginfo-v2.patch | 1 - gdb-6.5-bz203661-emit-relocs.patch | 1 - gdb-6.5-bz216711-clone-is-outermost.patch | 4 - ...379-solib-trampoline-lookup-lock-fix.patch | 1 - gdb-6.6-buildid-locate-core-as-arg.patch | 3 - ...warning-missing-debuginfo-rhbz981154.patch | 1 - ...buildid-locate-rpm-librpm-workaround.patch | 2 - gdb-6.6-buildid-locate-rpm-scl.patch | 2 - gdb-6.6-buildid-locate-rpm.patch | 8 -- ...6.6-buildid-locate-solib-missing-ids.patch | 1 - gdb-6.6-buildid-locate.patch | 15 ---- ....6-scheduler_locking-step-is-default.patch | 5 -- gdb-6.6-testsuite-timeouts.patch | 2 - gdb-6.7-testsuite-stable-results.patch | 2 - gdb-6.8-bz436037-reg-no-longer-active.patch | 1 - gdb-6.8-bz442765-threaded-exec-test.patch | 2 - gdb-6.8-quit-never-aborts.patch | 4 - gdb-6.8-sparc64-silence-memcpy-check.patch | 1 - ...add-workaround-to-broken-debug-files.patch | 1 - gdb-archer-pie-addons-keep-disabled.patch | 3 - gdb-archer-pie-addons.patch | 2 - gdb-archer-vla-tests.patch | 5 -- gdb-archer.patch | 13 --- gdb-attach-fail-reasons-5of5.patch | 10 --- gdb-btrobust.patch | 1 - gdb-bz1219747-attach-kills.patch | 1 - gdb-bz533176-fortran-omp-step.patch | 1 - gdb-bz541866-rwatch-before-run.patch | 3 - gdb-bz568248-oom-is-error.patch | 1 - gdb-ccache-workaround.patch | 1 - gdb-container-rh-pkg.patch | 1 - gdb-core-open-vdso-warning.patch | 1 - gdb-dts-rhel6-python-compat.patch | 1 - gdb-fedora-libncursesw.patch | 2 - gdb-follow-child-stale-parent.patch | 1 - gdb-glibc-strstr-workaround.patch | 1 - gdb-gnat-dwarf-crash-3of3.patch | 4 - gdb-jit-reader-multilib.patch | 2 - gdb-libexec-add-index.patch | 1 - gdb-linux_perf-bundle.patch | 4 - gdb-moribund-utrace-workaround.patch | 1 - gdb-python-gil.patch | 3 - gdb-readline62-ask-more-rh.patch | 1 - gdb-rhbz1350436-type-printers-error.patch | 3 - gdb-rhbz795424-bitpos-20of25.patch | 85 ------------------- gdb-rhbz795424-bitpos-21of25.patch | 8 -- gdb-rhbz795424-bitpos-22of25.patch | 11 --- gdb-rhbz795424-bitpos-23of25.patch | 30 ------- gdb-rhbz795424-bitpos-25of25.patch | 3 - gdb-runtest-pie-override.patch | 1 - gdb-stale-frame_info.patch | 1 - gdb-testsuite-readline63-sigint.patch | 1 - gdb-vla-intel-fix-print-char-array.patch | 2 - gdb-vla-intel-fortran-strides.patch | 19 ----- gdb-vla-intel-fortran-vla-strings.patch | 14 --- gdb-vla-intel-stringbt-fix.patch | 1 - gdb-x86_64-i386-syscall-restart.patch | 1 - generate-patches-from-git-repo.sh | 2 +- 65 files changed, 1 insertion(+), 309 deletions(-) diff --git a/gdb-6.3-bz140532-ppc-unwinding-test.patch b/gdb-6.3-bz140532-ppc-unwinding-test.patch index c4b7105..418a4c7 100644 --- a/gdb-6.3-bz140532-ppc-unwinding-test.patch +++ b/gdb-6.3-bz140532-ppc-unwinding-test.patch @@ -306,7 +306,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-gstack-20050411.patch b/gdb-6.3-gstack-20050411.patch index 73301c3..43f5647 100644 --- a/gdb-6.3-gstack-20050411.patch +++ b/gdb-6.3-gstack-20050411.patch @@ -16,7 +16,6 @@ FileName: gdb-6.3-gstack-20050411.patch * gstack.sh, gstack.1: New files. diff --git a/gdb/Makefile.in b/gdb/Makefile.in -index 5b650c6643..8c487916d2 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1729,7 +1729,7 @@ info install-info clean-info dvi pdf install-pdf html install-html: force diff --git a/gdb-6.3-ppc64displaysymbol-20041124.patch b/gdb-6.3-ppc64displaysymbol-20041124.patch index 7e5a4fd..fc17ec6 100644 --- a/gdb-6.3-ppc64displaysymbol-20041124.patch +++ b/gdb-6.3-ppc64displaysymbol-20041124.patch @@ -15,7 +15,6 @@ 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, diff --git a/gdb-6.3-ppc64syscall-20040622.patch b/gdb-6.3-ppc64syscall-20040622.patch index 4e324c7..576039a 100644 --- a/gdb-6.3-ppc64syscall-20040622.patch +++ b/gdb-6.3-ppc64syscall-20040622.patch @@ -17,7 +17,6 @@ FileName: gdb-6.3-ppc64syscall-20040622.patch "func_start". diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c -index ff4699c191..feed75fbf9 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -134,6 +134,7 @@ static const char *powerpc_vector_abi_string = "auto"; diff --git a/gdb-6.3-readnever-20050907.patch b/gdb-6.3-readnever-20050907.patch index bb7c408..cbb2485 100644 --- a/gdb-6.3-readnever-20050907.patch +++ b/gdb-6.3-readnever-20050907.patch @@ -24,7 +24,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..00f1b07 100644 --- a/gdb-6.3-rh-testversion-20041202.patch +++ b/gdb-6.3-rh-testversion-20041202.patch @@ -15,7 +15,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-self-20050110.patch b/gdb-6.3-test-self-20050110.patch index 8817bb9..985777c 100644 --- a/gdb-6.3-test-self-20050110.patch +++ b/gdb-6.3-test-self-20050110.patch @@ -17,7 +17,6 @@ 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} { 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..404e27c 100644 --- a/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch +++ b/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch @@ -44,7 +44,6 @@ 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) diff --git a/gdb-6.5-bz203661-emit-relocs.patch b/gdb-6.5-bz203661-emit-relocs.patch index a21a597..e82399d 100644 --- a/gdb-6.5-bz203661-emit-relocs.patch +++ b/gdb-6.5-bz203661-emit-relocs.patch @@ -9,7 +9,6 @@ FileName: gdb-6.5-bz203661-emit-relocs.patch ;;=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 a57bd6a593..e9875a08de 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -3492,6 +3492,12 @@ default_symfile_relocate (struct objfile *objfile, asection *sectp, diff --git a/gdb-6.5-bz216711-clone-is-outermost.patch b/gdb-6.5-bz216711-clone-is-outermost.patch index d98cdcb..2bcf613 100644 --- a/gdb-6.5-bz216711-clone-is-outermost.patch +++ b/gdb-6.5-bz216711-clone-is-outermost.patch @@ -34,7 +34,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,7 +127,6 @@ 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, @@ -171,7 +169,6 @@ 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) @@ -185,7 +182,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-solib-trampoline-lookup-lock-fix.patch b/gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch index fc5ca9a..0aafb24 100644 --- a/gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch +++ b/gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch @@ -11,7 +11,6 @@ FileName: gdb-6.5-bz218379-solib-trampoline-lookup-lock-fix.patch 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.6-buildid-locate-core-as-arg.patch b/gdb-6.6-buildid-locate-core-as-arg.patch index b9c8788..0bbc13a 100644 --- a/gdb-6.6-buildid-locate-core-as-arg.patch +++ b/gdb-6.6-buildid-locate-core-as-arg.patch @@ -64,7 +64,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 +77,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 +119,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..5c69796 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 @@ -28,7 +28,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..d83eba0 100644 --- a/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch +++ b/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch @@ -9,7 +9,6 @@ FileName: gdb-6.6-buildid-locate-rpm-librpm-workaround.patch ;;=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 +32,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 162fdae..c3b0d62 100644 --- a/gdb-6.6-buildid-locate-rpm-scl.patch +++ b/gdb-6.6-buildid-locate-rpm-scl.patch @@ -12,7 +12,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,7 +99,6 @@ index 5af9d66899..2ff93191c7 100644 { return strcoll (*ap, *bp); diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index cf0c887a2a..fa6744b377 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -3469,6 +3469,16 @@ read_index_from_section (struct objfile *objfile, diff --git a/gdb-6.6-buildid-locate-rpm.patch b/gdb-6.6-buildid-locate-rpm.patch index da8f81d..901a759 100644 --- a/gdb-6.6-buildid-locate-rpm.patch +++ b/gdb-6.6-buildid-locate-rpm.patch @@ -8,7 +8,6 @@ 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 @@ @@ -234,7 +233,6 @@ index e0d38ea267..da5ac313e3 100644 # Copyright (C) 2001, 2003, 2005, 2011 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,7 +701,6 @@ 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 @@ -1258,7 +1254,6 @@ 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, @@ -1462,7 +1457,6 @@ 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) @@ -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,7 +1501,6 @@ 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, diff --git a/gdb-6.6-buildid-locate-solib-missing-ids.patch b/gdb-6.6-buildid-locate-solib-missing-ids.patch index 40b4071..d022dd9 100644 --- a/gdb-6.6-buildid-locate-solib-missing-ids.patch +++ b/gdb-6.6-buildid-locate-solib-missing-ids.patch @@ -14,7 +14,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 ce126fb..bac6e2c 100644 --- a/gdb-6.6-buildid-locate.patch +++ b/gdb-6.6-buildid-locate.patch @@ -9,7 +9,6 @@ FileName: gdb-6.6-buildid-locate.patch ;;=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 +832,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 +870,6 @@ index 15fb609409..1f62db0239 100644 #endif /* BUILD_ID_H */ diff --git a/gdb/coffread.c b/gdb/coffread.c -index 5345fb7998..66d725d4a3 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 +883,6 @@ index 5345fb7998..66d725d4a3 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 @@ @@ -983,7 +979,6 @@ index c6175279da..76945950b9 100644 + &setlist, &showlist); } diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo -index 62ba1d25a4..06a8d6d2b3 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -19561,6 +19561,27 @@ information files. @@ -1015,7 +1010,6 @@ index 62ba1d25a4..06a8d6d2b3 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 7fe15e5d05..901ebeb4e5 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2683,7 +2683,7 @@ dwarf2_get_dwz_file (struct dwarf2_per_objfile *dwarf2_per_objfile) @@ -1028,7 +1022,6 @@ index 7fe15e5d05..901ebeb4e5 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 +1047,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 +1061,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 +1082,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,7 +1148,6 @@ 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 @@ -1173,7 +1162,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 +1199,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,7 +1210,6 @@ 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 ee66a38e08..83f2854faa 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -1694,6 +1694,16 @@ proc default_gdb_start { } { @@ -1244,7 +1230,6 @@ index ee66a38e08..83f2854faa 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-scheduler_locking-step-is-default.patch b/gdb-6.6-scheduler_locking-step-is-default.patch index 47d73d0..3fa245a 100644 --- a/gdb-6.6-scheduler_locking-step-is-default.patch +++ b/gdb-6.6-scheduler_locking-step-is-default.patch @@ -9,7 +9,6 @@ FileName: gdb-6.6-scheduler_locking-step-is-default.patch ;;=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[] = { @@ -22,7 +21,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 +33,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 +46,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 +67,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..b6092e9 100644 --- a/gdb-6.6-testsuite-timeouts.patch +++ b/gdb-6.6-testsuite-timeouts.patch @@ -9,7 +9,6 @@ FileName: gdb-6.6-testsuite-timeouts.patch ;;=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 +21,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-testsuite-stable-results.patch b/gdb-6.7-testsuite-stable-results.patch index 234f6f3..032fd5d 100644 --- a/gdb-6.7-testsuite-stable-results.patch +++ b/gdb-6.7-testsuite-stable-results.patch @@ -28,7 +28,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 +60,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..ed29368 100644 --- a/gdb-6.8-bz436037-reg-no-longer-active.patch +++ b/gdb-6.8-bz436037-reg-no-longer-active.patch @@ -9,7 +9,6 @@ FileName: gdb-6.8-bz436037-reg-no-longer-active.patch ;;=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..a948702 100644 --- a/gdb-6.8-bz442765-threaded-exec-test.patch +++ b/gdb-6.8-bz442765-threaded-exec-test.patch @@ -11,7 +11,6 @@ FileName: gdb-6.8-bz442765-threaded-exec-test.patch 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 +150,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-quit-never-aborts.patch b/gdb-6.8-quit-never-aborts.patch index a2abda9..4c504b7 100644 --- a/gdb-6.8-quit-never-aborts.patch +++ b/gdb-6.8-quit-never-aborts.patch @@ -16,7 +16,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 +30,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,7 +45,6 @@ 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) @@ -65,7 +62,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 42d4225595..8f9159bfa6 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..22994b3 100644 --- a/gdb-6.8-sparc64-silence-memcpy-check.patch +++ b/gdb-6.8-sparc64-silence-memcpy-check.patch @@ -9,7 +9,6 @@ FileName: gdb-6.8-sparc64-silence-memcpy-check.patch ;;=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, 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..11419b0 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 @@ -19,7 +19,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-pie-addons-keep-disabled.patch b/gdb-archer-pie-addons-keep-disabled.patch index b301df6..123238d 100644 --- a/gdb-archer-pie-addons-keep-disabled.patch +++ b/gdb-archer-pie-addons-keep-disabled.patch @@ -8,7 +8,6 @@ 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) @@ -63,7 +62,6 @@ 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); @@ -77,7 +75,6 @@ index 4223158fbc..407cc531db 100644 extern void print_breakpoint (breakpoint *bp); diff --git a/gdb/objfiles.c b/gdb/objfiles.c -index 0432ce6208..c009a40b09 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 08a1564..eddce02 100644 --- a/gdb-archer-pie-addons.patch +++ b/gdb-archer-pie-addons.patch @@ -8,7 +8,6 @@ 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 @@ -52,7 +51,6 @@ 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 6bb6b8eb61..3e0b2ff883 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -2829,7 +2829,8 @@ value_static_field (struct type *type, int fieldno) diff --git a/gdb-archer-vla-tests.patch b/gdb-archer-vla-tests.patch index 7ff0cab..67daf8d 100644 --- a/gdb-archer-vla-tests.patch +++ b/gdb-archer-vla-tests.patch @@ -8,7 +8,6 @@ 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 +1085,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 +1102,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,7 +3689,6 @@ 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 83f2854faa..4402f78f79 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -169,6 +169,11 @@ proc gdb_unload {} { @@ -3708,7 +3704,6 @@ index 83f2854faa..4402f78f79 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 72753ee..bfdcfe3 100644 --- a/gdb-archer.patch +++ b/gdb-archer.patch @@ -17,7 +17,6 @@ commit 718a1618b2f691a7f407213bb50f100ac59f91c3 tromey/python diff --git a/gdb/Makefile.in b/gdb/Makefile.in -index 8c487916d2..cbbefb91af 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -2096,6 +2096,12 @@ stamp-h: $(srcdir)/config.in config.status @@ -34,7 +33,6 @@ index 8c487916d2..cbbefb91af 100644 $(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 = \ @@ -56,7 +54,6 @@ index 5c7c0b4c2e..2014607e9e 100644 gdb/printer/bound_registers.py diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo -index 06a8d6d2b3..2fc7a46f46 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -1245,6 +1245,16 @@ for remote debugging. @@ -77,7 +74,6 @@ index 06a8d6d2b3..2fc7a46f46 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 +86,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 +105,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 @@ @@ -458,7 +452,6 @@ 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 @@ -472,7 +465,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 f5829d6c08..a2a849f77d 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -95,6 +95,8 @@ const struct extension_language_defn extension_language_python = @@ -617,7 +609,6 @@ index f5829d6c08..a2a849f77d 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 +619,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 +631,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 +658,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 +676,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..e2726aa 100644 --- a/gdb-attach-fail-reasons-5of5.patch +++ b/gdb-attach-fail-reasons-5of5.patch @@ -45,7 +45,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,7 +68,6 @@ 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 @@ -138,7 +136,6 @@ 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 @@ -153,7 +150,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,7 +173,6 @@ 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 @@ -246,7 +241,6 @@ 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 @@ -261,7 +255,6 @@ 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 () @@ -283,7 +276,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 +298,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,7 +347,6 @@ 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); diff --git a/gdb-btrobust.patch b/gdb-btrobust.patch index 2b1044d..7de516d 100644 --- a/gdb-btrobust.patch +++ b/gdb-btrobust.patch @@ -14,7 +14,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..25f9e5e 100644 --- a/gdb-bz1219747-attach-kills.patch +++ b/gdb-bz1219747-attach-kills.patch @@ -80,7 +80,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..2d9d443 100644 --- a/gdb-bz533176-fortran-omp-step.patch +++ b/gdb-bz533176-fortran-omp-step.patch @@ -30,7 +30,6 @@ 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) diff --git a/gdb-bz541866-rwatch-before-run.patch b/gdb-bz541866-rwatch-before-run.patch index 4507b1b..d45c42d 100644 --- a/gdb-bz541866-rwatch-before-run.patch +++ b/gdb-bz541866-rwatch-before-run.patch @@ -10,7 +10,6 @@ FileName: gdb-bz541866-rwatch-before-run.patch ;;=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, @@ -98,7 +97,6 @@ new file mode 100644 + +#endif /* NM_LINUX64_H */ diff --git a/gdb/configure.nat b/gdb/configure.nat -index bcaeaf4583..28babcf0ad 100644 --- a/gdb/configure.nat +++ b/gdb/configure.nat @@ -237,6 +237,7 @@ case ${gdb_host} in @@ -118,7 +116,6 @@ index bcaeaf4583..28babcf0ad 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 diff --git a/gdb-bz568248-oom-is-error.patch b/gdb-bz568248-oom-is-error.patch index 4a905f2..e8ec5de 100644 --- a/gdb-bz568248-oom-is-error.patch +++ b/gdb-bz568248-oom-is-error.patch @@ -53,7 +53,6 @@ gdb/ * utils.c (nomem): Change internal_error to error. diff --git a/gdb/utils.c b/gdb/utils.c -index a2e933bc8d..c69c01efc1 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -746,13 +746,11 @@ malloc_failure (long size) diff --git a/gdb-ccache-workaround.patch b/gdb-ccache-workaround.patch index d9cd975..e49d2ff 100644 --- a/gdb-ccache-workaround.patch +++ b/gdb-ccache-workaround.patch @@ -9,7 +9,6 @@ FileName: gdb-ccache-workaround.patch ;;=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 54157bf..f24f66c 100644 --- a/gdb-container-rh-pkg.patch +++ b/gdb-container-rh-pkg.patch @@ -9,7 +9,6 @@ FileName: gdb-container-rh-pkg.patch ;;=fedora diff --git a/gdb/remote.c b/gdb/remote.c -index 9eed75aa8c..ffaf01fa7d 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -14048,7 +14048,17 @@ remote_target::pid_to_exec_file (int pid) diff --git a/gdb-core-open-vdso-warning.patch b/gdb-core-open-vdso-warning.patch index 9368bca..8d757dd 100644 --- a/gdb-core-open-vdso-warning.patch +++ b/gdb-core-open-vdso-warning.patch @@ -19,7 +19,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..0f67baa 100644 --- a/gdb-dts-rhel6-python-compat.patch +++ b/gdb-dts-rhel6-python-compat.patch @@ -11,7 +11,6 @@ FileName: gdb-dts-rhel6-python-compat.patch 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..861003b 100644 --- a/gdb-fedora-libncursesw.patch +++ b/gdb-fedora-libncursesw.patch @@ -12,7 +12,6 @@ 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 @@ -50,7 +49,6 @@ 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 diff --git a/gdb-follow-child-stale-parent.patch b/gdb-follow-child-stale-parent.patch index 09b4042..3887c9e 100644 --- a/gdb-follow-child-stale-parent.patch +++ b/gdb-follow-child-stale-parent.patch @@ -24,7 +24,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-glibc-strstr-workaround.patch b/gdb-glibc-strstr-workaround.patch index 79f6630..a1243d9 100644 --- a/gdb-glibc-strstr-workaround.patch +++ b/gdb-glibc-strstr-workaround.patch @@ -9,7 +9,6 @@ FileName: gdb-glibc-strstr-workaround.patch ;;=fedora: Compatibility with RHELs (unchecked which ones). diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index 901ebeb4e5..76884243fe 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -21272,6 +21272,26 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu, diff --git a/gdb-gnat-dwarf-crash-3of3.patch b/gdb-gnat-dwarf-crash-3of3.patch index b4a0486..01cc642 100644 --- a/gdb-gnat-dwarf-crash-3of3.patch +++ b/gdb-gnat-dwarf-crash-3of3.patch @@ -42,7 +42,6 @@ gdb/ * dwarf2read.c (process_die): Change gdb_assert to complaint. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index ae1c86acfe..cf0c887a2a 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -10491,6 +10491,13 @@ private: @@ -60,7 +59,6 @@ index ae1c86acfe..cf0c887a2a 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 \ @@ -78,7 +76,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; @@ -170,7 +167,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..43ae3b1 100644 --- a/gdb-jit-reader-multilib.patch +++ b/gdb-jit-reader-multilib.patch @@ -9,7 +9,6 @@ FileName: gdb-jit-reader-multilib.patch ;;=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 @@ -29,7 +28,6 @@ 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) diff --git a/gdb-libexec-add-index.patch b/gdb-libexec-add-index.patch index 483413b..d4a335b 100644 --- a/gdb-libexec-add-index.patch +++ b/gdb-libexec-add-index.patch @@ -9,7 +9,6 @@ FileName: gdb-libexec-add-index.patch ;;=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-linux_perf-bundle.patch b/gdb-linux_perf-bundle.patch index e18947b..e1e816e 100644 --- a/gdb-linux_perf-bundle.patch +++ b/gdb-linux_perf-bundle.patch @@ -9,7 +9,6 @@ FileName: gdb-linux_perf-bundle.patch ;;=fedora diff --git a/gdb/configure b/gdb/configure -index a2d480c1e5..4f102c3ede 100755 --- a/gdb/configure +++ b/gdb/configure @@ -11973,7 +11973,7 @@ else @@ -22,7 +21,6 @@ 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 @@ -35,7 +33,6 @@ index 57ebcaeb08..1840f91651 100644 ]]), [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 +56,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..4b88926 100644 --- a/gdb-moribund-utrace-workaround.patch +++ b/gdb-moribund-utrace-workaround.patch @@ -14,7 +14,6 @@ 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) diff --git a/gdb-python-gil.patch b/gdb-python-gil.patch index d82cd52..a182b44 100644 --- a/gdb-python-gil.patch +++ b/gdb-python-gil.patch @@ -9,7 +9,6 @@ FileName: gdb-python-gil.patch ;;=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 +27,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 +39,6 @@ index 26400f4fba..b8e2d9049d 100644 #endif diff --git a/gdb/python/python.c b/gdb/python/python.c -index c29e7d7a6b..f5829d6c08 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..8368970 100644 --- a/gdb-readline62-ask-more-rh.patch +++ b/gdb-readline62-ask-more-rh.patch @@ -9,7 +9,6 @@ FileName: gdb-readline62-ask-more-rh.patch ;;=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-rhbz1350436-type-printers-error.patch b/gdb-rhbz1350436-type-printers-error.patch index bec81e8..4f68aa2 100644 --- a/gdb-rhbz1350436-type-printers-error.patch +++ b/gdb-rhbz1350436-type-printers-error.patch @@ -15,7 +15,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 +31,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 +42,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-rhbz795424-bitpos-20of25.patch b/gdb-rhbz795424-bitpos-20of25.patch index 8be6227..61316a1 100644 --- a/gdb-rhbz795424-bitpos-20of25.patch +++ b/gdb-rhbz795424-bitpos-20of25.patch @@ -473,7 +473,6 @@ 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, @@ -486,7 +485,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 64bddc2670..e90e901027 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -78,7 +78,7 @@ static struct type *desc_bounds_type (struct type *); @@ -873,7 +871,6 @@ index 64bddc2670..e90e901027 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, @@ -904,7 +901,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 +925,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,7 +1072,6 @@ 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, @@ -1106,7 +1100,6 @@ index 186690af30..338a0f2c87 100644 } 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 +1129,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 +1143,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 +1155,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,7 +1167,6 @@ 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, @@ -1190,7 +1179,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 +1278,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 +1290,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 +1302,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) @@ -1350,7 +1335,6 @@ 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 @@ -1372,7 +1356,6 @@ 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 6bbb470957..307eee32c4 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -185,7 +185,7 @@ c_printchar (int c, struct type *type, struct ui_file *stream) @@ -1403,7 +1386,6 @@ index 6bbb470957..307eee32c4 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 *, @@ -1425,7 +1407,6 @@ index 18dedcc1fa..8afd3ee784 100644 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, @@ -1450,7 +1431,6 @@ index cb793f0770..fad41891e2 100644 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 +1472,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 +1489,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 +1516,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 +1562,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,7 +1574,6 @@ 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 *, @@ -1611,7 +1586,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 +1598,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 45814c747b..11d1231df2 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -1817,7 +1817,7 @@ rw_pieced_value (struct value *v, struct value *from) @@ -1688,7 +1661,6 @@ index 45814c747b..11d1231df2 100644 if (subobj_byte_offset + len > max) diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index 76884243fe..ae1c86acfe 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2021,11 +2021,11 @@ dwarf2_complex_location_expr_complaint (void) @@ -1719,7 +1691,6 @@ index 76884243fe..ae1c86acfe 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, @@ -1775,7 +1746,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) @@ -1788,7 +1758,6 @@ 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 */ @@ -1801,7 +1770,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 @@ @@ -1861,7 +1829,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 * @@ -1892,7 +1859,6 @@ 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 c0f6e64dfc..215034f269 100644 --- a/gdb/frame.c +++ b/gdb/frame.c @@ -1398,7 +1398,7 @@ deprecated_frame_register_read (struct frame_info *frame, int regnum, @@ -1914,7 +1880,6 @@ index c0f6e64dfc..215034f269 100644 /* Copy the data. */ while (len > 0) diff --git a/gdb/frame.h b/gdb/frame.h -index a6f7fd8947..eb955346d5 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -620,7 +620,7 @@ extern void put_frame_register (struct frame_info *frame, int regnum, @@ -1927,7 +1892,6 @@ index a6f7fd8947..eb955346d5 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, @@ -1940,7 +1904,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) @@ -1955,7 +1918,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 @@ -1968,7 +1930,6 @@ 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 99cd1bcb92..2a7ab244fb 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -2925,7 +2925,7 @@ floatformat_from_type (const struct type *type) @@ -2028,7 +1989,6 @@ index 99cd1bcb92..2a7ab244fb 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 @@ -2059,7 +2019,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) @@ -2100,7 +2059,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) @@ -2167,7 +2125,6 @@ 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, @@ -2180,7 +2137,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, @@ -2193,7 +2149,6 @@ 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, @@ -2206,7 +2161,6 @@ 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) @@ -2228,7 +2182,6 @@ 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 @@ -2250,7 +2203,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) @@ -2288,7 +2240,6 @@ 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 *, @@ -2301,7 +2252,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, @@ -2321,7 +2271,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, @@ -2394,7 +2343,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 @@ @@ -2409,7 +2357,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 @@ -2440,7 +2387,6 @@ 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 36831071fb..fe59c80c32 100644 --- a/gdb/mips-linux-nat.c +++ b/gdb/mips-linux-nat.c @@ -614,7 +614,7 @@ mips_linux_nat_target::stopped_data_address (CORE_ADDR *paddr) @@ -2453,7 +2399,6 @@ index 36831071fb..fe59c80c32 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, @@ -2475,7 +2420,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, @@ -2488,7 +2432,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) @@ -2560,7 +2503,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) @@ -2611,7 +2553,6 @@ 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 *, @@ -2640,7 +2581,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 = @@ -2664,7 +2604,6 @@ 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 eb21f91c13..9e188a0ec3 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -1313,7 +1313,7 @@ ppc_linux_nat_target::can_use_hw_breakpoint (enum bptype type, int cnt, int ot) @@ -2677,7 +2616,6 @@ index eb21f91c13..9e188a0ec3 100644 /* Handle sub-8-byte quantities. */ if (len <= 0) diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c -index 5716f82810..bf54f2690d 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -1705,7 +1705,7 @@ ppc_init_linux_record_tdep (struct linux_record_tdep *record_tdep, @@ -2690,7 +2628,6 @@ index 5716f82810..bf54f2690d 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, @@ -2712,7 +2649,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, @@ -2725,7 +2661,6 @@ 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) @@ -2813,7 +2748,6 @@ 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, @@ -2902,7 +2836,6 @@ index d7bb8b5c93..06f878ab01 100644 diff --git a/gdb/remote.c b/gdb/remote.c -index e7ade41c34..5bf085d123 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -455,7 +455,7 @@ public: @@ -2924,7 +2857,6 @@ index e7ade41c34..5bf085d123 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) @@ -2946,7 +2878,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, @@ -2960,7 +2891,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 @@ -2982,7 +2912,6 @@ index 5da5e4e7fc..29db0e8ea6 100644 struct target_ops *ops_beneath = find_target_beneath (this); diff --git a/gdb/stack.c b/gdb/stack.c -index bfd9653cca..e71a44e70a 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -190,7 +190,7 @@ print_stack_frame (struct frame_info *frame, int print_level, @@ -3024,7 +2953,6 @@ index bfd9653cca..e71a44e70a 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, @@ -3043,7 +2971,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 @@ -3097,7 +3024,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 *, @@ -3119,7 +3045,6 @@ 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 @@ -3132,7 +3057,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 d99d663895..836d4e3d5d 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -829,10 +829,10 @@ collection_list::add_register (unsigned int regno) @@ -3229,7 +3153,6 @@ index d99d663895..836d4e3d5d 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,7 +3165,6 @@ index 42e413018a..978074cbc8 100644 struct gdbarch *gdbarch, long frame_regno, long frame_offset, 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) @@ -3288,7 +3210,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 *, @@ -3370,7 +3291,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, @@ -3433,7 +3353,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, @@ -3473,7 +3392,6 @@ 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 3e0b2ff883..33c28f2340 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -383,7 +383,8 @@ value_bytes_available (const struct value *value, @@ -3508,7 +3426,6 @@ index 3e0b2ff883..33c28f2340 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 @@ -3568,7 +3485,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, @@ -3581,7 +3497,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 f00e764..3737747 100644 --- a/gdb-rhbz795424-bitpos-21of25.patch +++ b/gdb-rhbz795424-bitpos-21of25.patch @@ -62,7 +62,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 +79,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,7 +90,6 @@ 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); @@ -103,7 +100,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,7 +111,6 @@ index e5c1b07040..06fb3b77c9 100644 base_valaddr = buf.data (); diff --git a/gdb/utils.c b/gdb/utils.c -index c69c01efc1..42d4225595 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -2816,6 +2816,17 @@ string_to_core_addr (const char *my_string) @@ -137,7 +132,6 @@ index c69c01efc1..42d4225595 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,7 +143,6 @@ index 96b922dbef..a7f9be5f4e 100644 address = value_address (*arg1p); diff --git a/gdb/value.c b/gdb/value.c -index 33c28f2340..f1a98a8556 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -933,6 +933,7 @@ allocate_value_lazy (struct type *type) @@ -178,7 +171,6 @@ index 33c28f2340..f1a98a8556 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 3592faa..98a8613 100644 --- a/gdb-rhbz795424-bitpos-22of25.patch +++ b/gdb-rhbz795424-bitpos-22of25.patch @@ -106,7 +106,6 @@ 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: @@ -137,7 +136,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: @@ -168,7 +166,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 +251,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 +278,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 9e188a0ec3..f08a964983 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 @@ -359,7 +354,6 @@ index 9e188a0ec3..f08a964983 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,7 +375,6 @@ index ca7cc221f9..717a1130fe 100644 { int pflags = 0; diff --git a/gdb/remote.c b/gdb/remote.c -index 5bf085d123..9eed75aa8c 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -447,7 +447,7 @@ public: @@ -421,7 +414,6 @@ index 5bf085d123..9eed75aa8c 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 +426,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 @@ -526,7 +517,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; @@ -548,7 +538,6 @@ 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 diff --git a/gdb-rhbz795424-bitpos-23of25.patch b/gdb-rhbz795424-bitpos-23of25.patch index 23628ed..da0641a 100644 --- a/gdb-rhbz795424-bitpos-23of25.patch +++ b/gdb-rhbz795424-bitpos-23of25.patch @@ -147,7 +147,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,7 +192,6 @@ 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, @@ -226,7 +224,6 @@ index 338a0f2c87..241abcd6d5 100644 } } 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 +236,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 +309,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 +344,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 +365,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 +402,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,7 +437,6 @@ 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, @@ -467,7 +458,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 +470,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, @@ -547,7 +536,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 +551,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,7 +563,6 @@ 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) @@ -602,7 +588,6 @@ 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, @@ -615,7 +600,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 @@ -764,7 +748,6 @@ 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, @@ -777,7 +760,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, @@ -871,7 +853,6 @@ index a6ba5d0ffd..184b7d6261 100644 if (writebuf != NULL) regcache_cooked_write_part (regcache, regnum, 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,7 +867,6 @@ 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 ecf6191df0..acf2473018 100644 --- a/gdb/rs6000-aix-tdep.c +++ b/gdb/rs6000-aix-tdep.c @@ -177,9 +177,9 @@ rs6000_push_dummy_call (struct gdbarch *gdbarch, struct value *function, @@ -911,7 +891,6 @@ index ecf6191df0..acf2473018 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 +903,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 +944,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 +1001,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,7 +1022,6 @@ 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, @@ -1087,7 +1062,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 +1074,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 +1095,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 +1116,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,7 +1131,6 @@ 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, diff --git a/gdb-rhbz795424-bitpos-25of25.patch b/gdb-rhbz795424-bitpos-25of25.patch index 8372b8e..7ebd094 100644 --- a/gdb-rhbz795424-bitpos-25of25.patch +++ b/gdb-rhbz795424-bitpos-25of25.patch @@ -57,7 +57,6 @@ 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 @@ -73,7 +72,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, @@ -122,7 +120,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-runtest-pie-override.patch b/gdb-runtest-pie-override.patch index f1748fd..843c005 100644 --- a/gdb-runtest-pie-override.patch +++ b/gdb-runtest-pie-override.patch @@ -25,7 +25,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-stale-frame_info.patch b/gdb-stale-frame_info.patch index fda5f64..8e74545 100644 --- a/gdb-stale-frame_info.patch +++ b/gdb-stale-frame_info.patch @@ -41,7 +41,6 @@ gdb/ 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 @@ diff --git a/gdb-testsuite-readline63-sigint.patch b/gdb-testsuite-readline63-sigint.patch index dc0fb6f..86298b8 100644 --- a/gdb-testsuite-readline63-sigint.patch +++ b/gdb-testsuite-readline63-sigint.patch @@ -15,7 +15,6 @@ 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 { } { diff --git a/gdb-vla-intel-fix-print-char-array.patch b/gdb-vla-intel-fix-print-char-array.patch index eba8e51..455144d 100644 --- a/gdb-vla-intel-fix-print-char-array.patch +++ b/gdb-vla-intel-fix-print-char-array.patch @@ -22,7 +22,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 +50,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 43e5bcf..cbbd9fe 100644 --- a/gdb-vla-intel-fortran-strides.patch +++ b/gdb-vla-intel-fortran-strides.patch @@ -37,7 +37,6 @@ dbfd7140bf4c0500d1f5d192be781f83f78f7922 23 files changed, 1242 insertions(+), 183 deletions(-) diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c -index 730934fe6e..e1dd28e7e7 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 +127,6 @@ index 730934fe6e..e1dd28e7e7 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,7 +143,6 @@ index f82e7b2d11..74f0597359 100644 property to C code. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c -index 834bce776a..464dff0d2b 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -17552,7 +17552,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) @@ -192,7 +189,6 @@ index 834bce776a..464dff0d2b 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 +617,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 +689,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 +741,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 +813,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 +832,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 4f77a5214e..98d3260860 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -902,7 +902,8 @@ operator== (const range_bounds &l, const range_bounds &r) @@ -952,7 +943,6 @@ index 4f77a5214e..98d3260860 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 @@ -1009,7 +999,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,7 +1038,6 @@ 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, @@ -1090,7 +1078,6 @@ 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) @@ -1651,7 +1638,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 +1649,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 +1743,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,7 +1761,6 @@ 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) @@ -1800,7 +1783,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 +2012,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 eebed08..6588c1a 100644 --- a/gdb-vla-intel-fortran-vla-strings.patch +++ b/gdb-vla-intel-fortran-vla-strings.patch @@ -33,7 +33,6 @@ 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* @@ -46,7 +45,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 +77,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 464dff0d2b..7fe15e5d05 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -1789,7 +1789,8 @@ static void read_signatured_type (struct signatured_type *); @@ -351,7 +348,6 @@ index 464dff0d2b..7fe15e5d05 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 *); @@ -504,7 +500,6 @@ index f14f1811f4..4f6a0ed09a 100644 } fprintfi_filtered (level, stream, "End Type "); diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c -index 98d3260860..99cd1bcb92 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -1919,7 +1919,8 @@ is_dynamic_type_internal (struct type *type, int top_level) @@ -595,7 +590,6 @@ index 98d3260860..99cd1bcb92 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 @@ @@ -627,7 +621,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] { @@ -1018,7 +1011,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] @@ -1211,7 +1203,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" \ @@ -1236,7 +1227,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"] @@ -1258,7 +1248,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" \ @@ -1288,7 +1277,6 @@ 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) @@ -1318,7 +1306,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) @@ -1352,7 +1339,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 b9fe0e2..a5b5114 100644 --- a/gdb-vla-intel-stringbt-fix.patch +++ b/gdb-vla-intel-stringbt-fix.patch @@ -31,7 +31,6 @@ Thanks, Jan diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c -index e1dd28e7e7..45814c747b 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -42,6 +42,7 @@ diff --git a/gdb-x86_64-i386-syscall-restart.patch b/gdb-x86_64-i386-syscall-restart.patch index a301628..4b1c096 100644 --- a/gdb-x86_64-i386-syscall-restart.patch +++ b/gdb-x86_64-i386-syscall-restart.patch @@ -88,7 +88,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, diff --git a/generate-patches-from-git-repo.sh b/generate-patches-from-git-repo.sh index 6790319..0dddf82 100755 --- a/generate-patches-from-git-repo.sh +++ b/generate-patches-from-git-repo.sh @@ -71,7 +71,7 @@ for c in `git rev-list --reverse ${common_ancestor}..HEAD` ; do # 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 < Date: Tue, 5 Jun 2018 15:25:07 -0400 Subject: [PATCH 03/16] Rebase to FSF GDB 8.1.50.20180605 (8.2pre). --- .gitignore | 2 +- _git_upstream_commit | 2 +- gdb-6.3-gstack-20050411.patch | 6 +- gdb-6.5-bz216711-clone-is-outermost.patch | 10 +- gdb-6.6-buildid-locate.patch | 4 +- gdb-6.8-sparc64-silence-memcpy-check.patch | 2 +- gdb-archer-pie-addons-keep-disabled.patch | 2 +- gdb-archer-pie-addons.patch | 6 +- gdb-archer.patch | 6 +- gdb-attach-fail-reasons-5of5.patch | 4 +- gdb-bz541866-rwatch-before-run.patch | 8 +- gdb-container-rh-pkg.patch | 2 +- gdb-glibc-strstr-workaround.patch | 2 +- gdb-gnat-dwarf-crash-3of3.patch | 2 +- gdb-moribund-utrace-workaround.patch | 2 +- gdb-rhbz795424-bitpos-20of25.patch | 201 ++++++++------------- gdb-rhbz795424-bitpos-21of25.patch | 2 +- gdb-rhbz795424-bitpos-22of25.patch | 22 +-- gdb-rhbz795424-bitpos-23of25.patch | 90 ++++----- gdb-rhbz795424-bitpos-25of25.patch | 2 +- gdb-vla-intel-fortran-strides.patch | 36 ++-- gdb-vla-intel-fortran-vla-strings.patch | 40 ++-- gdb-x86_64-i386-syscall-restart.patch | 2 +- gdb.spec | 7 +- sources | 2 +- 25 files changed, 206 insertions(+), 258 deletions(-) diff --git a/.gitignore b/.gitignore index c26b5d5..1e1d158 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /gdb-libstdc++-v3-python-7.1.1-20170526.tar.xz /v1.6.1.tar.gz -/gdb-8.1.50.20180529.tar.xz +/gdb-8.1.50.20180605.tar.xz diff --git a/_git_upstream_commit b/_git_upstream_commit index 688cd57..efee1b2 100644 --- a/_git_upstream_commit +++ b/_git_upstream_commit @@ -1 +1 @@ -b8283aea9e599f17dbae7f52223994e3a9168143 +54d343a24019367e85bb2e90966f2da483868637 diff --git a/gdb-6.3-gstack-20050411.patch b/gdb-6.3-gstack-20050411.patch index 43f5647..4253c75 100644 --- a/gdb-6.3-gstack-20050411.patch +++ b/gdb-6.3-gstack-20050411.patch @@ -18,7 +18,7 @@ FileName: gdb-6.3-gstack-20050411.patch diff --git a/gdb/Makefile.in b/gdb/Makefile.in --- a/gdb/Makefile.in +++ b/gdb/Makefile.in -@@ -1729,7 +1729,7 @@ info install-info clean-info dvi pdf install-pdf html install-html: force +@@ -1731,7 +1731,7 @@ info install-info clean-info dvi pdf install-pdf html install-html: force install: all @$(MAKE) $(FLAGS_TO_PASS) install-only @@ -27,7 +27,7 @@ diff --git a/gdb/Makefile.in b/gdb/Makefile.in transformed_name=`t='$(program_transform_name)'; \ echo gdb | sed -e "$$t"` ; \ if test "x$$transformed_name" = x; then \ -@@ -1778,7 +1778,25 @@ install-guile: +@@ -1780,7 +1780,25 @@ install-guile: install-python: $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb @@ -54,7 +54,7 @@ diff --git a/gdb/Makefile.in b/gdb/Makefile.in transformed_name=`t='$(program_transform_name)'; \ echo gdb | sed -e $$t` ; \ if test "x$$transformed_name" = x; then \ -@@ -1801,6 +1819,18 @@ uninstall: force $(CONFIG_UNINSTALL) +@@ -1803,6 +1821,18 @@ uninstall: force $(CONFIG_UNINSTALL) fi @$(MAKE) DO=uninstall "DODIRS=$(SUBDIRS)" $(FLAGS_TO_PASS) subdir_do diff --git a/gdb-6.5-bz216711-clone-is-outermost.patch b/gdb-6.5-bz216711-clone-is-outermost.patch index 2bcf613..9e2429d 100644 --- a/gdb-6.5-bz216711-clone-is-outermost.patch +++ b/gdb-6.5-bz216711-clone-is-outermost.patch @@ -129,7 +129,7 @@ diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c --- 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); @@ -137,7 +137,7 @@ diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c 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; @@ -148,7 +148,7 @@ diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c 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); @@ -156,7 +156,7 @@ diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c 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,7 +171,7 @@ diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c --- 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; diff --git a/gdb-6.6-buildid-locate.patch b/gdb-6.6-buildid-locate.patch index bac6e2c..0fe8ac2 100644 --- a/gdb-6.6-buildid-locate.patch +++ b/gdb-6.6-buildid-locate.patch @@ -1024,7 +1024,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c diff --git a/gdb/elfread.c b/gdb/elfread.c --- a/gdb/elfread.c +++ b/gdb/elfread.c -@@ -1290,7 +1290,9 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) +@@ -1287,7 +1287,9 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) && objfile->separate_debug_objfile == NULL && objfile->separate_debug_objfile_backlink == NULL) { @@ -1035,7 +1035,7 @@ diff --git a/gdb/elfread.c b/gdb/elfread.c if (debugfile.empty ()) debugfile = find_separate_debug_file_by_debuglink (objfile); -@@ -1302,6 +1304,10 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) +@@ -1299,6 +1301,10 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) symbol_file_add_separate (abfd.get (), debugfile.c_str (), symfile_flags, objfile); } diff --git a/gdb-6.8-sparc64-silence-memcpy-check.patch b/gdb-6.8-sparc64-silence-memcpy-check.patch index 22994b3..c379a69 100644 --- a/gdb-6.8-sparc64-silence-memcpy-check.patch +++ b/gdb-6.8-sparc64-silence-memcpy-check.patch @@ -17,5 +17,5 @@ diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c /* 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-archer-pie-addons-keep-disabled.patch b/gdb-archer-pie-addons-keep-disabled.patch index 123238d..5e29ccc 100644 --- a/gdb-archer-pie-addons-keep-disabled.patch +++ b/gdb-archer-pie-addons-keep-disabled.patch @@ -10,7 +10,7 @@ FileName: gdb-archer-pie-addons-keep-disabled.patch diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c -@@ -15511,6 +15511,50 @@ initialize_breakpoint_ops (void) +@@ -15514,6 +15514,50 @@ initialize_breakpoint_ops (void) static struct cmd_list_element *enablebreaklist = NULL; diff --git a/gdb-archer-pie-addons.patch b/gdb-archer-pie-addons.patch index eddce02..ac36f51 100644 --- a/gdb-archer-pie-addons.patch +++ b/gdb-archer-pie-addons.patch @@ -26,7 +26,7 @@ diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h 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) @@ -34,7 +34,7 @@ diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h #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)) @@ -42,7 +42,7 @@ diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h #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)) diff --git a/gdb-archer.patch b/gdb-archer.patch index bfdcfe3..237ede6 100644 --- a/gdb-archer.patch +++ b/gdb-archer.patch @@ -19,7 +19,7 @@ tromey/python diff --git a/gdb/Makefile.in b/gdb/Makefile.in --- a/gdb/Makefile.in +++ b/gdb/Makefile.in -@@ -2096,6 +2096,12 @@ stamp-h: $(srcdir)/config.in config.status +@@ -2098,6 +2098,12 @@ stamp-h: $(srcdir)/config.in config.status CONFIG_LINKS= \ $(SHELL) config.status @@ -29,7 +29,7 @@ diff --git a/gdb/Makefile.in b/gdb/Makefile.in + 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 @@ -454,7 +454,7 @@ new file mode 100644 diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h -@@ -641,6 +641,9 @@ class gdbpy_enter_varobj : public gdbpy_enter +@@ -643,6 +643,9 @@ class gdbpy_enter_varobj : public gdbpy_enter }; diff --git a/gdb-attach-fail-reasons-5of5.patch b/gdb-attach-fail-reasons-5of5.patch index e2726aa..d8fa568 100644 --- a/gdb-attach-fail-reasons-5of5.patch +++ b/gdb-attach-fail-reasons-5of5.patch @@ -257,7 +257,7 @@ diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c --- 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) @@ -349,7 +349,7 @@ diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c diff --git a/gdb/nat/linux-ptrace.h b/gdb/nat/linux-ptrace.h --- 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-bz541866-rwatch-before-run.patch b/gdb-bz541866-rwatch-before-run.patch index d45c42d..d02beb3 100644 --- a/gdb-bz541866-rwatch-before-run.patch +++ b/gdb-bz541866-rwatch-before-run.patch @@ -12,7 +12,7 @@ FileName: gdb-bz541866-rwatch-before-run.patch diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c -@@ -8808,7 +8808,7 @@ init_breakpoint_sal (struct breakpoint *b, struct gdbarch *gdbarch, +@@ -8798,7 +8798,7 @@ init_breakpoint_sal (struct breakpoint *b, struct gdbarch *gdbarch, int enabled, int internal, unsigned flags, int display_canonical) { @@ -21,7 +21,7 @@ diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c if (type == bp_hardware_breakpoint) { -@@ -14345,7 +14345,7 @@ enable_breakpoint_disp (struct breakpoint *bpt, enum bpdisp disposition, +@@ -14348,7 +14348,7 @@ enable_breakpoint_disp (struct breakpoint *bpt, enum bpdisp disposition, if (bpt->type == bp_hardware_breakpoint) { @@ -99,7 +99,7 @@ new file mode 100644 diff --git a/gdb/configure.nat b/gdb/configure.nat --- 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. @@ -107,7 +107,7 @@ diff --git a/gdb/configure.nat b/gdb/configure.nat 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 diff --git a/gdb-container-rh-pkg.patch b/gdb-container-rh-pkg.patch index f24f66c..3c9e772 100644 --- a/gdb-container-rh-pkg.patch +++ b/gdb-container-rh-pkg.patch @@ -11,7 +11,7 @@ FileName: gdb-container-rh-pkg.patch diff --git a/gdb/remote.c b/gdb/remote.c --- a/gdb/remote.c +++ b/gdb/remote.c -@@ -14048,7 +14048,17 @@ remote_target::pid_to_exec_file (int pid) +@@ -14047,7 +14047,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-glibc-strstr-workaround.patch b/gdb-glibc-strstr-workaround.patch index a1243d9..95dcca6 100644 --- a/gdb-glibc-strstr-workaround.patch +++ b/gdb-glibc-strstr-workaround.patch @@ -11,7 +11,7 @@ FileName: gdb-glibc-strstr-workaround.patch diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -21272,6 +21272,26 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu, +@@ -21261,6 +21261,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 01cc642..5eb2f97 100644 --- a/gdb-gnat-dwarf-crash-3of3.patch +++ b/gdb-gnat-dwarf-crash-3of3.patch @@ -44,7 +44,7 @@ gdb/ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -10491,6 +10491,13 @@ private: +@@ -10489,6 +10489,13 @@ private: static void process_die (struct die_info *die, struct dwarf2_cu *cu) { diff --git a/gdb-moribund-utrace-workaround.patch b/gdb-moribund-utrace-workaround.patch index 4b88926..7e0b0fd 100644 --- a/gdb-moribund-utrace-workaround.patch +++ b/gdb-moribund-utrace-workaround.patch @@ -16,7 +16,7 @@ Bug in FSF GDB exploited by the ptrace-on-utrace interaction. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c -@@ -12017,6 +12017,8 @@ update_global_location_list (enum ugll_insert_mode insert_mode) +@@ -12007,6 +12007,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-rhbz795424-bitpos-20of25.patch b/gdb-rhbz795424-bitpos-20of25.patch index 61316a1..ddf3eef 100644 --- a/gdb-rhbz795424-bitpos-20of25.patch +++ b/gdb-rhbz795424-bitpos-20of25.patch @@ -475,7 +475,7 @@ Content-Disposition: attachment; filename=bitpos-main.patch diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c --- 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, +@@ -740,7 +740,7 @@ aarch64_linux_nat_target::remove_watchpoint (CORE_ADDR addr, int len, /* Implement the "region_ok_for_hw_watchpoint" target_ops method. */ int @@ -686,7 +686,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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) { @@ -695,7 +695,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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); @@ -704,7 +704,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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) { @@ -713,7 +713,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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 * @@ -722,7 +722,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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) { @@ -731,7 +731,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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 @@ -743,7 +743,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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) { @@ -754,7 +754,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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 * @@ -763,7 +763,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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)); @@ -772,7 +772,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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; } @@ -783,7 +783,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c /* 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 * @@ -792,7 +792,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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 * @@ -801,7 +801,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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 { @@ -811,7 +811,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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). */ @@ -822,7 +822,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c { 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; @@ -835,7 +835,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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)) { @@ -844,7 +844,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c 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)) @@ -860,7 +860,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c } 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. */ @@ -891,7 +891,7 @@ diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h 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 *); +@@ -263,7 +263,7 @@ extern int ada_is_constrained_packed_array_type (struct type *); extern struct value *ada_value_primitive_packed_val (struct value *, const gdb_byte *, @@ -1074,7 +1074,7 @@ diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c --- 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]; @@ -1083,20 +1083,17 @@ diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c 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 @@ -1169,7 +1166,7 @@ diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c --- 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 @@ -1316,7 +1313,7 @@ diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c } return 0; } -@@ -6814,7 +6814,7 @@ breakpoint_address_match (const address_space *aspace1, CORE_ADDR addr1, +@@ -6809,7 +6809,7 @@ breakpoint_address_match (const address_space *aspace1, CORE_ADDR addr1, static int breakpoint_address_match_range (const address_space *aspace1, CORE_ADDR addr1, @@ -1325,7 +1322,7 @@ diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c CORE_ADDR addr2) { return ((gdbarch_has_global_breakpoints (target_gdbarch ()) -@@ -10906,7 +10906,7 @@ can_use_hardware_watchpoint (const std::vector &vals) +@@ -10896,7 +10896,7 @@ can_use_hardware_watchpoint (const std::vector &vals) && TYPE_CODE (vtype) != TYPE_CODE_ARRAY)) { CORE_ADDR vaddr = value_address (v); @@ -1388,7 +1385,7 @@ diff --git a/gdb/c-lang.c b/gdb/c-lang.c diff --git a/gdb/c-lang.h b/gdb/c-lang.h --- a/gdb/c-lang.h +++ b/gdb/c-lang.h -@@ -77,7 +77,7 @@ extern void c_print_typedef (struct type *, +@@ -84,7 +84,7 @@ extern void c_print_typedef (struct type *, struct ui_file *); extern void c_val_print (struct type *, @@ -1397,7 +1394,7 @@ diff --git a/gdb/c-lang.h b/gdb/c-lang.h 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 *); +@@ -104,7 +104,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, @@ -1409,7 +1406,7 @@ diff --git a/gdb/c-lang.h b/gdb/c-lang.h diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c --- 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, +@@ -968,7 +968,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)); @@ -1419,7 +1416,7 @@ diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c } /* 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, +@@ -1568,8 +1569,8 @@ c_type_print_base_struct_union (struct type *type, struct ui_file *stream, print_spaces_filtered_with_print_options (level + 4, stream, flags); @@ -1679,7 +1676,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c } static void -@@ -14941,8 +14941,8 @@ dwarf2_add_field (struct field_info *fip, struct die_info *die, +@@ -14940,8 +14940,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. */ @@ -1894,7 +1891,7 @@ diff --git a/gdb/frame.h b/gdb/frame.h diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c --- 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 ** @@ -1932,7 +1929,7 @@ diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c --- 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 * @@ -1941,7 +1938,7 @@ diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c 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, @@ -1952,7 +1949,7 @@ diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c 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; @@ -1961,7 +1958,7 @@ diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c 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) { @@ -1970,7 +1967,7 @@ diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c 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"); @@ -1979,7 +1976,7 @@ diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c 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, @@ -1991,7 +1988,7 @@ diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h --- 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. */ @@ -2000,7 +1997,7 @@ diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h /* * 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. */ @@ -2009,7 +2006,7 @@ diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h 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. */ @@ -2151,7 +2148,7 @@ diff --git a/gdb/go-valprint.c b/gdb/go-valprint.c diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c --- 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, @@ -2606,7 +2603,7 @@ diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c -@@ -1313,7 +1313,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 @@ -2663,7 +2660,7 @@ diff --git a/gdb/procfs.c b/gdb/procfs.c diff --git a/gdb/regcache.c b/gdb/regcache.c --- a/gdb/regcache.c +++ b/gdb/regcache.c -@@ -846,7 +846,7 @@ regcache::cooked_write (int regnum, const gdb_byte *buf) +@@ -781,7 +781,7 @@ regcache::cooked_write (int regnum, const gdb_byte *buf) operation. */ enum register_status @@ -2672,7 +2669,7 @@ diff --git a/gdb/regcache.c b/gdb/regcache.c bool is_raw) { struct gdbarch *gdbarch = arch (); -@@ -875,7 +875,7 @@ readable_regcache::read_part (int regnum, int offset, int len, void *in, +@@ -810,7 +810,7 @@ readable_regcache::read_part (int regnum, int offset, int len, void *in, } enum register_status @@ -2681,14 +2678,7 @@ diff --git a/gdb/regcache.c b/gdb/regcache.c const void *out, 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); +@@ -847,7 +847,8 @@ regcache::write_part (int regnum, int offset, int len, } enum register_status @@ -2698,15 +2688,8 @@ diff --git a/gdb/regcache.c b/gdb/regcache.c { 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); - } +@@ -856,7 +857,7 @@ readable_regcache::raw_read_part (int regnum, int offset, int len, gdb_byte *buf + /* See regcache.h. */ void -regcache::raw_write_part (int regnum, int offset, int len, @@ -2714,31 +2697,16 @@ diff --git a/gdb/regcache.c b/gdb/regcache.c 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); +@@ -864,7 +865,7 @@ regcache::raw_write_part (int regnum, int offset, int len, } - enum register_status -readable_regcache::cooked_read_part (int regnum, int offset, int len, +readable_regcache::cooked_read_part (int regnum, LONGEST offset, LONGEST len, 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); +@@ -872,7 +873,7 @@ readable_regcache::cooked_read_part (int regnum, int offset, int len, } void @@ -2750,53 +2718,28 @@ diff --git a/gdb/regcache.c b/gdb/regcache.c diff --git a/gdb/regcache.h b/gdb/regcache.h --- 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> +@@ -200,8 +200,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> +@@ -213,16 +213,16 @@ 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); + /* Read register REGNUM from the regcache and return a new value. This + will call mark_value_bytes_unavailable as appropriate. */ struct value *cooked_read_value (int regnum); protected: @@ -2807,20 +2750,22 @@ diff --git a/gdb/regcache.h b/gdb/regcache.h }; /* 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; +@@ -300,11 +300,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: +@@ -338,13 +339,12 @@ protected: static std::forward_list current_regcache; private: @@ -2847,7 +2792,7 @@ diff --git a/gdb/remote.c b/gdb/remote.c int insert_watchpoint (CORE_ADDR, int, enum target_hw_bp_type, struct expression *) override; -@@ -10552,7 +10552,7 @@ int remote_hw_watchpoint_length_limit = -1; +@@ -10551,7 +10551,7 @@ int remote_hw_watchpoint_length_limit = -1; int remote_hw_breakpoint_limit = -1; int @@ -3167,7 +3112,7 @@ diff --git a/gdb/tracepoint.h b/gdb/tracepoint.h diff --git a/gdb/valarith.c b/gdb/valarith.c --- 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 * @@ -3176,7 +3121,7 @@ diff --git a/gdb/valarith.c b/gdb/valarith.c { 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; @@ -3185,7 +3130,7 @@ diff --git a/gdb/valarith.c b/gdb/valarith.c 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) { @@ -3194,7 +3139,7 @@ diff --git a/gdb/valarith.c b/gdb/valarith.c 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) { diff --git a/gdb-rhbz795424-bitpos-21of25.patch b/gdb-rhbz795424-bitpos-21of25.patch index 3737747..ea4a17c 100644 --- a/gdb-rhbz795424-bitpos-21of25.patch +++ b/gdb-rhbz795424-bitpos-21of25.patch @@ -113,7 +113,7 @@ diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c diff --git a/gdb/utils.c b/gdb/utils.c --- a/gdb/utils.c +++ b/gdb/utils.c -@@ -2816,6 +2816,17 @@ string_to_core_addr (const char *my_string) +@@ -2817,6 +2817,17 @@ string_to_core_addr (const char *my_string) return addr; } diff --git a/gdb-rhbz795424-bitpos-22of25.patch b/gdb-rhbz795424-bitpos-22of25.patch index 98a8613..f5c1398 100644 --- a/gdb-rhbz795424-bitpos-22of25.patch +++ b/gdb-rhbz795424-bitpos-22of25.patch @@ -108,7 +108,7 @@ Content-Disposition: attachment; filename=bitpos-wp.patch diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c --- 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; @@ -125,7 +125,7 @@ diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c int can_do_single_step () override; -@@ -822,7 +822,8 @@ aarch64_linux_nat_target::stopped_by_watchpoint () +@@ -819,7 +819,8 @@ aarch64_linux_nat_target::stopped_by_watchpoint () bool aarch64_linux_nat_target::watchpoint_addr_within_range (CORE_ADDR addr, @@ -156,7 +156,7 @@ diff --git a/gdb/arm-linux-nat.c b/gdb/arm-linux-nat.c 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, @@ -301,7 +301,7 @@ diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c override; int masked_watch_num_registers (CORE_ADDR, CORE_ADDR) override; -@@ -1664,11 +1664,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 @@ -316,7 +316,7 @@ diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c CORE_ADDR addr_end_data, addr_end_dvc; /* The DVC register compares bytes within fixed-length windows which -@@ -1756,7 +1756,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, @@ -325,7 +325,7 @@ diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c { int pc = 1, num_accesses_left, num_accesses_right; struct value *left_val, *right_val; -@@ -1807,7 +1807,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 @@ -335,7 +335,7 @@ diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c int rw, struct expression *cond) { -@@ -1825,7 +1826,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, @@ -344,7 +344,7 @@ diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c struct expression *cond, int insert) { if (len == 1 -@@ -2091,7 +2092,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, @@ -386,7 +386,7 @@ diff --git a/gdb/remote.c b/gdb/remote.c int can_use_hw_breakpoint (enum bptype, int, int) override; -@@ -10481,7 +10481,7 @@ remote_target::insert_watchpoint (CORE_ADDR addr, int len, +@@ -10480,7 +10480,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); @@ -395,7 +395,7 @@ diff --git a/gdb/remote.c b/gdb/remote.c putpkt (rs->buf); getpkt (&rs->buf, &rs->buf_size, 0); -@@ -10501,7 +10501,7 @@ remote_target::insert_watchpoint (CORE_ADDR addr, int len, +@@ -10500,7 +10500,7 @@ remote_target::insert_watchpoint (CORE_ADDR addr, int len, bool remote_target::watchpoint_addr_within_range (CORE_ADDR addr, @@ -404,7 +404,7 @@ diff --git a/gdb/remote.c b/gdb/remote.c { CORE_ADDR diff = remote_address_masked (addr - start); -@@ -10530,7 +10530,7 @@ remote_target::remove_watchpoint (CORE_ADDR addr, int len, +@@ -10529,7 +10529,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); diff --git a/gdb-rhbz795424-bitpos-23of25.patch b/gdb-rhbz795424-bitpos-23of25.patch index da0641a..1012677 100644 --- a/gdb-rhbz795424-bitpos-23of25.patch +++ b/gdb-rhbz795424-bitpos-23of25.patch @@ -194,7 +194,7 @@ diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c --- 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; @@ -205,7 +205,7 @@ diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c 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]); @@ -214,13 +214,13 @@ diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c 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 @@ -439,7 +439,7 @@ diff --git a/gdb/h8300-tdep.c b/gdb/h8300-tdep.c diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c --- 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); @@ -448,7 +448,7 @@ diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c 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) { @@ -508,7 +508,7 @@ diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c 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) { @@ -517,7 +517,7 @@ diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c /* 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); @@ -526,7 +526,7 @@ diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c 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) { @@ -565,7 +565,7 @@ diff --git a/gdb/m32r-tdep.c b/gdb/m32r-tdep.c diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c --- 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); @@ -574,7 +574,7 @@ diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c 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]); @@ -590,7 +590,7 @@ diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c diff --git a/gdb/mep-tdep.c b/gdb/mep-tdep.c --- 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++) { @@ -622,7 +622,7 @@ diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c 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)); @@ -639,7 +639,7 @@ diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c /* 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, @@ -648,7 +648,7 @@ diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c { 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++) { @@ -657,7 +657,7 @@ diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c 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; @@ -666,7 +666,7 @@ diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c 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) { @@ -682,7 +682,7 @@ diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c 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) @@ -693,7 +693,7 @@ diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c 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; @@ -702,7 +702,7 @@ diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c 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)); @@ -719,7 +719,7 @@ diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c 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; @@ -730,7 +730,7 @@ diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c 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)); @@ -750,7 +750,7 @@ diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c --- 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; @@ -792,7 +792,7 @@ diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c 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, @@ -806,16 +806,16 @@ diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c /* 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; @@ -824,7 +824,7 @@ diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c 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; @@ -833,7 +833,7 @@ diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c 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; @@ -842,7 +842,7 @@ diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c 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; @@ -851,7 +851,7 @@ diff --git a/gdb/ppc-sysv-tdep.c b/gdb/ppc-sysv-tdep.c + = (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 --- a/gdb/rl78-tdep.c +++ b/gdb/rl78-tdep.c @@ -881,7 +881,7 @@ diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c gdb_byte tmp_buffer[50]; int f_argno = 0; /* current floating point argno */ int wordsize = gdbarch_tdep (gdbarch)->wordsize; -@@ -309,7 +309,7 @@ ran_out_of_registers_for_arguments: +@@ -307,7 +307,7 @@ ran_out_of_registers_for_arguments: if ((argno < nargs) || argbytes) { @@ -1024,7 +1024,7 @@ diff --git a/gdb/spu-tdep.c b/gdb/spu-tdep.c diff --git a/gdb/tic6x-tdep.c b/gdb/tic6x-tdep.c --- 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; @@ -1033,7 +1033,7 @@ diff --git a/gdb/tic6x-tdep.c b/gdb/tic6x-tdep.c 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++) { @@ -1042,7 +1042,7 @@ diff --git a/gdb/tic6x-tdep.c b/gdb/tic6x-tdep.c 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)); @@ -1051,7 +1051,7 @@ diff --git a/gdb/tic6x-tdep.c b/gdb/tic6x-tdep.c 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__, @@ -1133,7 +1133,7 @@ diff --git a/gdb/xstormy16-tdep.c b/gdb/xstormy16-tdep.c diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c --- 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__, @@ -1143,7 +1143,7 @@ diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c 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; @@ -1165,7 +1165,7 @@ diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c 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)); @@ -1179,7 +1179,7 @@ diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c 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; } @@ -1189,7 +1189,7 @@ diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c /* 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) { @@ -1198,7 +1198,7 @@ diff --git a/gdb/xtensa-tdep.c b/gdb/xtensa-tdep.c 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.patch b/gdb-rhbz795424-bitpos-25of25.patch index 7ebd094..be3e9cf 100644 --- a/gdb-rhbz795424-bitpos-25of25.patch +++ b/gdb-rhbz795424-bitpos-25of25.patch @@ -110,7 +110,7 @@ diff --git a/gdb/f-typeprint.c b/gdb/f-typeprint.c 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); diff --git a/gdb-vla-intel-fortran-strides.patch b/gdb-vla-intel-fortran-strides.patch index cbbd9fe..f5e54fe 100644 --- a/gdb-vla-intel-fortran-strides.patch +++ b/gdb-vla-intel-fortran-strides.patch @@ -145,7 +145,7 @@ diff --git a/gdb/dwarf2loc.h b/gdb/dwarf2loc.h diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -17552,7 +17552,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17541,7 +17541,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; @@ -154,7 +154,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c int low_default_is_valid; int high_bound_is_count = 0; const char *name; -@@ -17572,7 +17572,9 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17561,7 +17561,9 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) low.kind = PROP_CONST; high.kind = PROP_CONST; @@ -164,7 +164,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c /* Set LOW_DEFAULT_IS_VALID if current language and DWARF version allow omitting DW_AT_lower_bound. */ -@@ -17605,6 +17607,14 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17594,6 +17596,14 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) break; } @@ -179,7 +179,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c attr = dwarf2_attr (die, DW_AT_lower_bound, cu); if (attr) attr_to_dynamic_prop (attr, die, cu, &low); -@@ -17682,7 +17692,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17671,7 +17681,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; @@ -896,7 +896,7 @@ diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c 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; @@ -911,7 +911,7 @@ diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c { 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; @@ -920,7 +920,7 @@ diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c { 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; } @@ -956,7 +956,7 @@ diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h /* 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; @@ -964,7 +964,7 @@ diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h } 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 @@ -980,7 +980,7 @@ diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h /* 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)) @@ -990,7 +990,7 @@ diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h #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 *, @@ -1080,7 +1080,7 @@ diff --git a/gdb/rust-exp.y b/gdb/rust-exp.y diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c -@@ -1106,13 +1106,11 @@ rust_range (struct expression *exp, int *pos, enum noside noside) +@@ -1105,13 +1105,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; @@ -1097,7 +1097,7 @@ diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c 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, +@@ -1200,7 +1198,7 @@ rust_compute_range (struct type *type, struct value *range, *low = 0; *high = 0; @@ -1106,7 +1106,7 @@ diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c if (TYPE_NFIELDS (type) == 0) return; -@@ -1209,15 +1207,14 @@ rust_compute_range (struct type *type, struct value *range, +@@ -1208,15 +1206,14 @@ rust_compute_range (struct type *type, struct value *range, i = 0; if (strcmp (TYPE_FIELD_NAME (type, 0), "start") == 0) { @@ -1124,7 +1124,7 @@ diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c *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, +@@ -1234,7 +1231,7 @@ rust_subscript (struct expression *exp, int *pos, enum noside noside, struct type *rhstype; LONGEST low, high_bound; /* Initialized to appease the compiler. */ @@ -1133,7 +1133,7 @@ diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c LONGEST high = 0; int want_slice = 0; -@@ -1333,7 +1330,7 @@ rust_subscript (struct expression *exp, int *pos, enum noside noside, +@@ -1332,7 +1329,7 @@ rust_subscript (struct expression *exp, int *pos, enum noside noside, error (_("Cannot subscript non-array type")); if (want_slice @@ -1142,7 +1142,7 @@ diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c 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, +@@ -1350,7 +1347,7 @@ rust_subscript (struct expression *exp, int *pos, enum noside noside, CORE_ADDR addr; struct value *addrval, *tem; @@ -1763,7 +1763,7 @@ diff --git a/gdb/testsuite/gdb.fortran/vla.f90 b/gdb/testsuite/gdb.fortran/vla.f diff --git a/gdb/valarith.c b/gdb/valarith.c --- 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); diff --git a/gdb-vla-intel-fortran-vla-strings.patch b/gdb-vla-intel-fortran-vla-strings.patch index 6588c1a..96d4545 100644 --- a/gdb-vla-intel-fortran-vla-strings.patch +++ b/gdb-vla-intel-fortran-vla-strings.patch @@ -35,7 +35,7 @@ git diff --stat -p gdb/master...gdb/users/bheckel/fortran-vla-strings diff --git a/gdb/NEWS b/gdb/NEWS --- a/gdb/NEWS +++ b/gdb/NEWS -@@ -59,6 +59,8 @@ SH-5/SH64 running OpenBSD SH-5/SH64 support in sh*-*-openbsd* +@@ -73,6 +73,8 @@ SH-5/SH64 running OpenBSD SH-5/SH64 support in sh*-*-openbsd* *** Changes in GDB 8.1 @@ -89,7 +89,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c /* memory allocation interface */ -@@ -13640,7 +13641,7 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu) +@@ -13639,7 +13640,7 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu) { newobj->static_link = XOBNEW (&objfile->objfile_obstack, struct dynamic_prop); @@ -98,7 +98,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c } cu->list_in_scope = &local_symbols; -@@ -16311,7 +16312,8 @@ read_array_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -16304,7 +16305,8 @@ read_array_type (struct die_info *die, struct dwarf2_cu *cu) byte_stride_prop = (struct dynamic_prop *) alloca (sizeof (struct dynamic_prop)); @@ -108,7 +108,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c if (!stride_ok) { complaint (_("unable to read array DW_AT_byte_stride " -@@ -17076,29 +17078,90 @@ read_tag_string_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17065,29 +17067,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; @@ -210,7 +210,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c char_type = language_string_char_type (cu->language_defn, gdbarch); type = create_string_type (NULL, char_type, range_type); -@@ -17446,7 +17509,8 @@ read_base_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17435,7 +17498,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, @@ -220,7 +220,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c { struct dwarf2_property_baton *baton; struct obstack *obstack -@@ -17457,14 +17521,33 @@ attr_to_dynamic_prop (const struct attribute *attr, struct die_info *die, +@@ -17446,14 +17510,33 @@ attr_to_dynamic_prop (const struct attribute *attr, struct die_info *die, if (attr_form_is_block (attr)) { @@ -258,7 +258,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c } else if (attr_form_is_ref (attr)) { -@@ -17497,8 +17580,28 @@ attr_to_dynamic_prop (const struct attribute *attr, struct die_info *die, +@@ -17486,8 +17569,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; @@ -289,7 +289,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c prop->data.baton = baton; prop->kind = PROP_LOCEXPR; gdb_assert (prop->data.baton != NULL); -@@ -17609,7 +17712,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17598,7 +17701,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) attr = dwarf2_attr (die, DW_AT_byte_stride, cu); if (attr) @@ -298,7 +298,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c complaint (_("Missing DW_AT_byte_stride " "- DIE at 0x%s [in module %s]"), sect_offset_str (die->sect_off), -@@ -17617,7 +17720,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17606,7 +17709,7 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) attr = dwarf2_attr (die, DW_AT_lower_bound, cu); if (attr) @@ -307,7 +307,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c else if (!low_default_is_valid) complaint (_("Missing DW_AT_lower_bound " "- DIE at %s [in module %s]"), -@@ -17625,10 +17728,10 @@ read_subrange_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -17614,10 +17717,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); @@ -320,7 +320,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c { /* If bounds are constant do the final calculation here. */ if (low.kind == PROP_CONST && high.kind == PROP_CONST) -@@ -25129,7 +25232,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) +@@ -25118,7 +25221,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)) { @@ -329,7 +329,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c add_dyn_prop (DYN_PROP_ALLOCATED, prop, type); } else if (attr != NULL) -@@ -25143,7 +25246,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) +@@ -25132,7 +25235,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)) { @@ -338,7 +338,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c add_dyn_prop (DYN_PROP_ASSOCIATED, prop, type); } else if (attr != NULL) -@@ -25155,7 +25258,7 @@ set_die_type (struct die_info *die, struct type *type, struct dwarf2_cu *cu) +@@ -25144,7 +25247,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); @@ -490,7 +490,7 @@ diff --git a/gdb/f-typeprint.c b/gdb/f-typeprint.c 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), @@ -502,7 +502,7 @@ diff --git a/gdb/f-typeprint.c b/gdb/f-typeprint.c diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c --- 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. */ @@ -512,7 +512,7 @@ diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c 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: @@ -520,7 +520,7 @@ diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c { 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; @@ -530,7 +530,7 @@ diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c 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)); @@ -547,7 +547,7 @@ diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c 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; } @@ -576,7 +576,7 @@ diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c /* 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; } diff --git a/gdb-x86_64-i386-syscall-restart.patch b/gdb-x86_64-i386-syscall-restart.patch index 4b1c096..f8b3e5a 100644 --- a/gdb-x86_64-i386-syscall-restart.patch +++ b/gdb-x86_64-i386-syscall-restart.patch @@ -103,7 +103,7 @@ diff --git a/gdb/amd64-nat.c b/gdb/amd64-nat.c 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 b8b0d8c..d98a473 100644 --- a/gdb.spec +++ b/gdb.spec @@ -18,7 +18,7 @@ Name: %{?scl_prefix}gdb # Freeze it when GDB gets branched -%global snapsrc 20180529 +%global snapsrc 20180605 # 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: 16%{?dist} +Release: 17%{?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 @@ -1026,6 +1026,9 @@ then fi %changelog +* 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). diff --git a/sources b/sources index 68212fa..1f485dd 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ SHA512 (gdb-libstdc++-v3-python-7.1.1-20170526.tar.xz) = 3d540b99581ffa4cf2810bec979c9a01a1f8ce782b7c8efb46b40dd2421d60cdb0e52b53c5477c3e86a57957a2a14489f5c29dc53868738a1ef79e79cf76d0a1 SHA512 (v1.6.1.tar.gz) = c7c9c8ba78021fff3fde12a216f5729c6031114e5a727f49b7ff1a31c53b5ddba24d1b3aee252d8278ecd1fafe78a44ed059c12b9eb29eca33093e0720673468 -SHA512 (gdb-8.1.50.20180529.tar.xz) = 93e2272eacf890c5ad99f7a04f8e24df8300a064730781adadcc65441e8a73fb1668d962628d3cbc10e6c91d8efe1bda211aa83ebd135667c502369339a963a7 +SHA512 (gdb-8.1.50.20180605.tar.xz) = cadfc5d9c28a227c29fe3a30cfe0c5bee4ac4c7daf2c383d2bbc0b121ce7190eafc153358ba98b1d48b16c1ff30393ae90ef449a76dd2c574989e34acb193351 From 732f37d3a415e5f747d70b261bda8daa39ae9744 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Thu, 7 Jun 2018 14:14:40 -0400 Subject: [PATCH 04/16] Add gdb-aarch64-guard-sve-macros.patch and unbreak Aarch64 build --- _gdb.spec.Patch.include | 4 ++ _gdb.spec.patch.include | 1 + _patch_order | 1 + gdb-aarch64-guard-sve-macros.patch | 74 ++++++++++++++++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 gdb-aarch64-guard-sve-macros.patch diff --git a/_gdb.spec.Patch.include b/_gdb.spec.Patch.include index 3ee5fa4..fa0ec1e 100644 --- a/_gdb.spec.Patch.include +++ b/_gdb.spec.Patch.include @@ -508,3 +508,7 @@ Patch121: gdb-vla-intel-fix-print-char-array.patch # =fedoratest Patch122: gdb-rhbz1553104-s390x-arch12-test.patch +# Guard declarations of 'sve_{vq,vl}_from_{vl,vq}' macros on Aarch64 +# This patch should be removed on the next rebase. +Patch123: gdb-aarch64-guard-sve-macros.patch + diff --git a/_gdb.spec.patch.include b/_gdb.spec.patch.include index 131cf93..27a39b7 100644 --- a/_gdb.spec.patch.include +++ b/_gdb.spec.patch.include @@ -120,3 +120,4 @@ %patch120 -p1 %patch121 -p1 %patch122 -p1 +%patch123 -p1 diff --git a/_patch_order b/_patch_order index aaec704..0b3b3e8 100644 --- a/_patch_order +++ b/_patch_order @@ -120,3 +120,4 @@ gdb-testsuite-readline63-sigint.patch gdb-archer.patch gdb-vla-intel-fix-print-char-array.patch gdb-rhbz1553104-s390x-arch12-test.patch +gdb-aarch64-guard-sve-macros.patch diff --git a/gdb-aarch64-guard-sve-macros.patch b/gdb-aarch64-guard-sve-macros.patch new file mode 100644 index 0000000..6a7b3e7 --- /dev/null +++ b/gdb-aarch64-guard-sve-macros.patch @@ -0,0 +1,74 @@ +From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 +From: Sergio Durigan Junior +Date: Tue, 5 Jun 2018 17:55:39 -0400 +Subject: gdb-aarch64-guard-sve-macros.patch + +FileName: gdb-aarch64-guard-sve-macros.patch + +;; Guard declarations of 'sve_{vq,vl}_from_{vl,vq}' macros on Aarch64 +;; This patch should be removed on the next rebase. + +Guard declarations of 'sve_{vq,vl}_from_{vl,vq}' macros on Aarch64 (and unbreak build) + +Commit 122394f1476b1c925a281b15399119500c8231c1 ("Function for reading +the Aarch64 SVE vector length") has added macros to manipulate SVE +vector sizes based on Linux kernel sources, but did not guard them +with #ifndef's, which breaks the build when the system headers already +have these macros: + + CXX aarch64-linux-nat.o + In file included from ../../gdb/aarch64-tdep.h:25, + from ../../gdb/aarch64-linux-nat.c:30: + ../../gdb/arch/aarch64.h:79: error: "sve_vq_from_vl" redefined [-Werror] + #define sve_vq_from_vl(vl) ((vl) / 0x10) + + In file included from /usr/include/bits/sigcontext.h:30, + from /usr/include/signal.h:291, + from build-gnulib/import/signal.h:52, + from ../../gdb/linux-nat.h:23, + from ../../gdb/aarch64-linux-nat.c:26: + /usr/include/asm/sigcontext.h:154: note: this is the location of the previous definition + #define sve_vq_from_vl(vl) ((vl) / SVE_VQ_BYTES) + + In file included from ../../gdb/aarch64-tdep.h:25, + from ../../gdb/aarch64-linux-nat.c:30: + ../../gdb/arch/aarch64.h:80: error: "sve_vl_from_vq" redefined [-Werror] + #define sve_vl_from_vq(vq) ((vq) * 0x10) + + In file included from /usr/include/bits/sigcontext.h:30, + from /usr/include/signal.h:291, + from build-gnulib/import/signal.h:52, + from ../../gdb/linux-nat.h:23, + from ../../gdb/aarch64-linux-nat.c:26: + /usr/include/asm/sigcontext.h:155: note: this is the location of the previous definition + #define sve_vl_from_vq(vq) ((vq) * SVE_VQ_BYTES) + +In order to fix this breakage, this commit guards the declaration of +the macros using #ifndef's. + +gdb/ChangeLog: +2018-06-06 Sergio Durigan Junior + + * arch/aarch64.h (sve_vg_from_vl): Guard with #ifndef. + (sve_vl_from_vg): Likewise. + (sve_vq_from_vl): Likewise. + (sve_vl_from_vq): Likewise. + (sve_vq_from_vg): Likewise. + (sve_vg_from_vq): Likewise. + +diff --git a/gdb/arch/aarch64.h b/gdb/arch/aarch64.h +--- a/gdb/arch/aarch64.h ++++ b/gdb/arch/aarch64.h +@@ -76,8 +76,12 @@ enum aarch64_regnum + + #define sve_vg_from_vl(vl) ((vl) / 8) + #define sve_vl_from_vg(vg) ((vg) * 8) ++#ifndef sve_vq_from_vl + #define sve_vq_from_vl(vl) ((vl) / 0x10) ++#endif ++#ifndef sve_vl_from_vq + #define sve_vl_from_vq(vq) ((vq) * 0x10) ++#endif + #define sve_vq_from_vg(vg) (sve_vq_from_vl (sve_vl_from_vg (vg))) + #define sve_vg_from_vq(vq) (sve_vg_from_vl (sve_vl_from_vq (vq))) + From 8014ace474e756fcd6235839d7f063e2e8bb6d5a Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Fri, 8 Jun 2018 17:04:11 -0400 Subject: [PATCH 05/16] Fix Python 3.7 breakage (RH BZ 1577396). Resolves: rhbz#1577396 --- _gdb.spec.Patch.include | 4 ++ _gdb.spec.patch.include | 1 + _patch_order | 1 + gdb-fix-python37-breakage.patch | 68 +++++++++++++++++++++++++++++++++ gdb.spec | 5 ++- 5 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 gdb-fix-python37-breakage.patch diff --git a/_gdb.spec.Patch.include b/_gdb.spec.Patch.include index fa0ec1e..fd18d2a 100644 --- a/_gdb.spec.Patch.include +++ b/_gdb.spec.Patch.include @@ -512,3 +512,7 @@ Patch122: gdb-rhbz1553104-s390x-arch12-test.patch # This patch should be removed on the next rebase. Patch123: gdb-aarch64-guard-sve-macros.patch +# Fix build breakage with Python 3.7 +# RHBZ #1577396 +Patch124: gdb-fix-python37-breakage.patch + diff --git a/_gdb.spec.patch.include b/_gdb.spec.patch.include index 27a39b7..97f12c4 100644 --- a/_gdb.spec.patch.include +++ b/_gdb.spec.patch.include @@ -121,3 +121,4 @@ %patch121 -p1 %patch122 -p1 %patch123 -p1 +%patch124 -p1 diff --git a/_patch_order b/_patch_order index 0b3b3e8..d06db6d 100644 --- a/_patch_order +++ b/_patch_order @@ -121,3 +121,4 @@ gdb-archer.patch gdb-vla-intel-fix-print-char-array.patch gdb-rhbz1553104-s390x-arch12-test.patch gdb-aarch64-guard-sve-macros.patch +gdb-fix-python37-breakage.patch diff --git a/gdb-fix-python37-breakage.patch b/gdb-fix-python37-breakage.patch new file mode 100644 index 0000000..0c01f2d --- /dev/null +++ b/gdb-fix-python37-breakage.patch @@ -0,0 +1,68 @@ +From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 +From: Paul Koning +Date: Fri, 8 Jun 2018 13:26:36 -0400 +Subject: gdb-fix-python37-breakage.patch + +FileName: gdb-fix-python37-breakage.patch + +;; Fix build breakage with Python 3.7 +;; RHBZ #1577396 + +Fix build issue with Python 3.7 + +Originally reported in +https://bugzilla.redhat.com/show_bug.cgi?id=1577396 -- gdb build fails +with Python 3.7 due to references to a Python internal function whose +declaration changed in 3.7. + +gdb/ChangeLog +2018-06-08 Paul Koning + + PR gdb/23252 + + * python/python.c (do_start_initialization): + Avoid call to internal Python API. + (init__gdb_module): New function. + +diff --git a/gdb/python/python.c b/gdb/python/python.c +--- a/gdb/python/python.c ++++ b/gdb/python/python.c +@@ -1810,6 +1810,17 @@ finalize_python (void *ignore) + restore_active_ext_lang (previous_active); + } + ++#ifdef IS_PY3K ++/* This is called via the PyImport_AppendInittab mechanism called ++ during initialization, to make the built-in _gdb module known to ++ Python. */ ++PyMODINIT_FUNC ++init__gdb_module (void) ++{ ++ return PyModule_Create (&python_GdbModuleDef); ++} ++#endif ++ + static bool + do_start_initialization () + { +@@ -1850,6 +1861,9 @@ do_start_initialization () + remain alive for the duration of the program's execution, so + it is not freed after this call. */ + Py_SetProgramName (progname_copy); ++ ++ /* Define _gdb as a built-in module. */ ++ PyImport_AppendInittab ("_gdb", init__gdb_module); + #else + Py_SetProgramName (progname.release ()); + #endif +@@ -1859,9 +1873,7 @@ do_start_initialization () + PyEval_InitThreads (); + + #ifdef IS_PY3K +- gdb_module = PyModule_Create (&python_GdbModuleDef); +- /* Add _gdb module to the list of known built-in modules. */ +- _PyImport_FixupBuiltin (gdb_module, "_gdb"); ++ gdb_module = PyImport_ImportModule ("_gdb"); + #else + gdb_module = Py_InitModule ("_gdb", python_GdbMethods); + #endif diff --git a/gdb.spec b/gdb.spec index d98a473..6937d8c 100644 --- a/gdb.spec +++ b/gdb.spec @@ -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: 17%{?dist} +Release: 18%{?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 @@ -1026,6 +1026,9 @@ then fi %changelog +* 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). From a902391148f12cd8cb1bcc449f1d928c3dfc6d42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 13 Jun 2018 14:51:24 +0200 Subject: [PATCH 06/16] Bootstrap for Python 3.7 --- gdb.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb.spec b/gdb.spec index 6937d8c..6846406 100644 --- a/gdb.spec +++ b/gdb.spec @@ -1,3 +1,4 @@ +%global _without_python 1 # rpmbuild parameters: # --with testsuite: Run the testsuite (biarch if possible). Default is without. # --with buildisa: Use %%{?_isa} for BuildRequires @@ -26,7 +27,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: 18%{?dist} +Release: 19%{?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 @@ -1026,6 +1027,9 @@ then fi %changelog +* 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). From ea73a43ec5b213ad4e5a7c946aaa36d1878433bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 13 Jun 2018 16:03:58 +0200 Subject: [PATCH 07/16] Rebuilt for Python 3.7 --- gdb.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gdb.spec b/gdb.spec index 6846406..52f2ec2 100644 --- a/gdb.spec +++ b/gdb.spec @@ -1,4 +1,3 @@ -%global _without_python 1 # rpmbuild parameters: # --with testsuite: Run the testsuite (biarch if possible). Default is without. # --with buildisa: Use %%{?_isa} for BuildRequires @@ -27,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: 19%{?dist} +Release: 20%{?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 @@ -1027,6 +1026,9 @@ then fi %changelog +* Wed Jun 13 2018 Miro HronĨok +- Rebuilt for Python 3.7 + * Wed Jun 13 2018 Miro HronĨok - Bootstrap for Python 3.7 From 399e22022addf95d16aa90a82d42445d92a16944 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Wed, 13 Jun 2018 15:37:00 -0400 Subject: [PATCH 08/16] Rebase to FSF GDB 8.1.50.20180613 (8.2pre). --- .gitignore | 2 +- _gdb.spec.Patch.include | 8 -- _gdb.spec.patch.include | 2 - _git_upstream_commit | 2 +- _patch_order | 2 - gdb-6.3-ppc64displaysymbol-20041124.patch | 2 +- ...337-resolve-tls-without-debuginfo-v2.patch | 2 +- gdb-6.6-buildid-locate-rpm-scl.patch | 2 +- gdb-6.6-buildid-locate.patch | 8 +- gdb-6.8-quit-never-aborts.patch | 2 +- gdb-aarch64-guard-sve-macros.patch | 74 ------------------- gdb-archer-pie-addons-keep-disabled.patch | 2 +- gdb-archer-vla-tests.patch | 2 +- gdb-archer.patch | 2 +- gdb-bz533176-fortran-omp-step.patch | 4 +- gdb-bz541866-rwatch-before-run.patch | 8 +- gdb-container-rh-pkg.patch | 2 +- gdb-fix-python37-breakage.patch | 68 ----------------- gdb-glibc-strstr-workaround.patch | 2 +- gdb-gnat-dwarf-crash-3of3.patch | 2 +- gdb-moribund-utrace-workaround.patch | 2 +- gdb-rhbz795424-bitpos-20of25.patch | 46 ++++++------ gdb-rhbz795424-bitpos-21of25.patch | 4 +- gdb-rhbz795424-bitpos-22of25.patch | 24 +++--- gdb-vla-intel-fortran-strides.patch | 8 +- gdb-vla-intel-fortran-vla-strings.patch | 26 +++---- gdb.spec | 7 +- sources | 2 +- 28 files changed, 83 insertions(+), 234 deletions(-) delete mode 100644 gdb-aarch64-guard-sve-macros.patch delete mode 100644 gdb-fix-python37-breakage.patch diff --git a/.gitignore b/.gitignore index 1e1d158..02bea06 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /gdb-libstdc++-v3-python-7.1.1-20170526.tar.xz /v1.6.1.tar.gz -/gdb-8.1.50.20180605.tar.xz +/gdb-8.1.50.20180613.tar.xz diff --git a/_gdb.spec.Patch.include b/_gdb.spec.Patch.include index fd18d2a..3ee5fa4 100644 --- a/_gdb.spec.Patch.include +++ b/_gdb.spec.Patch.include @@ -508,11 +508,3 @@ Patch121: gdb-vla-intel-fix-print-char-array.patch # =fedoratest Patch122: gdb-rhbz1553104-s390x-arch12-test.patch -# Guard declarations of 'sve_{vq,vl}_from_{vl,vq}' macros on Aarch64 -# This patch should be removed on the next rebase. -Patch123: gdb-aarch64-guard-sve-macros.patch - -# Fix build breakage with Python 3.7 -# RHBZ #1577396 -Patch124: gdb-fix-python37-breakage.patch - diff --git a/_gdb.spec.patch.include b/_gdb.spec.patch.include index 97f12c4..131cf93 100644 --- a/_gdb.spec.patch.include +++ b/_gdb.spec.patch.include @@ -120,5 +120,3 @@ %patch120 -p1 %patch121 -p1 %patch122 -p1 -%patch123 -p1 -%patch124 -p1 diff --git a/_git_upstream_commit b/_git_upstream_commit index efee1b2..3a34916 100644 --- a/_git_upstream_commit +++ b/_git_upstream_commit @@ -1 +1 @@ -54d343a24019367e85bb2e90966f2da483868637 +1840d81a201932a2d5ad5b089aad85943a5a0a82 diff --git a/_patch_order b/_patch_order index d06db6d..aaec704 100644 --- a/_patch_order +++ b/_patch_order @@ -120,5 +120,3 @@ gdb-testsuite-readline63-sigint.patch gdb-archer.patch gdb-vla-intel-fix-print-char-array.patch gdb-rhbz1553104-s390x-arch12-test.patch -gdb-aarch64-guard-sve-macros.patch -gdb-fix-python37-breakage.patch diff --git a/gdb-6.3-ppc64displaysymbol-20041124.patch b/gdb-6.3-ppc64displaysymbol-20041124.patch index fc17ec6..28a090d 100644 --- a/gdb-6.3-ppc64displaysymbol-20041124.patch +++ b/gdb-6.3-ppc64displaysymbol-20041124.patch @@ -17,7 +17,7 @@ FileName: gdb-6.3-ppc64displaysymbol-20041124.patch diff --git a/gdb/printcmd.c b/gdb/printcmd.c --- 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.5-bz185337-resolve-tls-without-debuginfo-v2.patch b/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch index 404e27c..ef7ef00 100644 --- a/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch +++ b/gdb-6.5-bz185337-resolve-tls-without-debuginfo-v2.patch @@ -46,7 +46,7 @@ glibc-debuginfo-2.7-2.x86_64: /usr/lib/debug/lib64/libc.so.6.debug: diff --git a/gdb/printcmd.c b/gdb/printcmd.c --- 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.6-buildid-locate-rpm-scl.patch b/gdb-6.6-buildid-locate-rpm-scl.patch index c3b0d62..9358131 100644 --- a/gdb-6.6-buildid-locate-rpm-scl.patch +++ b/gdb-6.6-buildid-locate-rpm-scl.patch @@ -101,7 +101,7 @@ diff --git a/gdb/build-id.c b/gdb/build-id.c diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -3469,6 +3469,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) { diff --git a/gdb-6.6-buildid-locate.patch b/gdb-6.6-buildid-locate.patch index 0fe8ac2..93272b2 100644 --- a/gdb-6.6-buildid-locate.patch +++ b/gdb-6.6-buildid-locate.patch @@ -914,7 +914,7 @@ diff --git a/gdb/corelow.c b/gdb/corelow.c + 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); @@ -1024,7 +1024,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c diff --git a/gdb/elfread.c b/gdb/elfread.c --- a/gdb/elfread.c +++ b/gdb/elfread.c -@@ -1287,7 +1287,9 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) +@@ -1288,7 +1288,9 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) && objfile->separate_debug_objfile == NULL && objfile->separate_debug_objfile_backlink == NULL) { @@ -1035,7 +1035,7 @@ diff --git a/gdb/elfread.c b/gdb/elfread.c if (debugfile.empty ()) debugfile = find_separate_debug_file_by_debuglink (objfile); -@@ -1299,6 +1301,10 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) +@@ -1300,6 +1302,10 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) symbol_file_add_separate (abfd.get (), debugfile.c_str (), symfile_flags, objfile); } @@ -1212,7 +1212,7 @@ diff --git a/gdb/testsuite/gdb.base/new-ui-pending-input.exp b/gdb/testsuite/gdb diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp --- 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." } } diff --git a/gdb-6.8-quit-never-aborts.patch b/gdb-6.8-quit-never-aborts.patch index 4c504b7..6e3ce22 100644 --- a/gdb-6.8-quit-never-aborts.patch +++ b/gdb-6.8-quit-never-aborts.patch @@ -47,7 +47,7 @@ diff --git a/gdb/extension.c b/gdb/extension.c diff --git a/gdb/top.c b/gdb/top.c --- a/gdb/top.c +++ b/gdb/top.c -@@ -1604,7 +1604,13 @@ quit_force (int *exit_arg, int from_tty) +@@ -1612,7 +1612,13 @@ quit_force (int *exit_arg, int from_tty) qt.from_tty = from_tty; diff --git a/gdb-aarch64-guard-sve-macros.patch b/gdb-aarch64-guard-sve-macros.patch deleted file mode 100644 index 6a7b3e7..0000000 --- a/gdb-aarch64-guard-sve-macros.patch +++ /dev/null @@ -1,74 +0,0 @@ -From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 -From: Sergio Durigan Junior -Date: Tue, 5 Jun 2018 17:55:39 -0400 -Subject: gdb-aarch64-guard-sve-macros.patch - -FileName: gdb-aarch64-guard-sve-macros.patch - -;; Guard declarations of 'sve_{vq,vl}_from_{vl,vq}' macros on Aarch64 -;; This patch should be removed on the next rebase. - -Guard declarations of 'sve_{vq,vl}_from_{vl,vq}' macros on Aarch64 (and unbreak build) - -Commit 122394f1476b1c925a281b15399119500c8231c1 ("Function for reading -the Aarch64 SVE vector length") has added macros to manipulate SVE -vector sizes based on Linux kernel sources, but did not guard them -with #ifndef's, which breaks the build when the system headers already -have these macros: - - CXX aarch64-linux-nat.o - In file included from ../../gdb/aarch64-tdep.h:25, - from ../../gdb/aarch64-linux-nat.c:30: - ../../gdb/arch/aarch64.h:79: error: "sve_vq_from_vl" redefined [-Werror] - #define sve_vq_from_vl(vl) ((vl) / 0x10) - - In file included from /usr/include/bits/sigcontext.h:30, - from /usr/include/signal.h:291, - from build-gnulib/import/signal.h:52, - from ../../gdb/linux-nat.h:23, - from ../../gdb/aarch64-linux-nat.c:26: - /usr/include/asm/sigcontext.h:154: note: this is the location of the previous definition - #define sve_vq_from_vl(vl) ((vl) / SVE_VQ_BYTES) - - In file included from ../../gdb/aarch64-tdep.h:25, - from ../../gdb/aarch64-linux-nat.c:30: - ../../gdb/arch/aarch64.h:80: error: "sve_vl_from_vq" redefined [-Werror] - #define sve_vl_from_vq(vq) ((vq) * 0x10) - - In file included from /usr/include/bits/sigcontext.h:30, - from /usr/include/signal.h:291, - from build-gnulib/import/signal.h:52, - from ../../gdb/linux-nat.h:23, - from ../../gdb/aarch64-linux-nat.c:26: - /usr/include/asm/sigcontext.h:155: note: this is the location of the previous definition - #define sve_vl_from_vq(vq) ((vq) * SVE_VQ_BYTES) - -In order to fix this breakage, this commit guards the declaration of -the macros using #ifndef's. - -gdb/ChangeLog: -2018-06-06 Sergio Durigan Junior - - * arch/aarch64.h (sve_vg_from_vl): Guard with #ifndef. - (sve_vl_from_vg): Likewise. - (sve_vq_from_vl): Likewise. - (sve_vl_from_vq): Likewise. - (sve_vq_from_vg): Likewise. - (sve_vg_from_vq): Likewise. - -diff --git a/gdb/arch/aarch64.h b/gdb/arch/aarch64.h ---- a/gdb/arch/aarch64.h -+++ b/gdb/arch/aarch64.h -@@ -76,8 +76,12 @@ enum aarch64_regnum - - #define sve_vg_from_vl(vl) ((vl) / 8) - #define sve_vl_from_vg(vg) ((vg) * 8) -+#ifndef sve_vq_from_vl - #define sve_vq_from_vl(vl) ((vl) / 0x10) -+#endif -+#ifndef sve_vl_from_vq - #define sve_vl_from_vq(vq) ((vq) * 0x10) -+#endif - #define sve_vq_from_vg(vg) (sve_vq_from_vl (sve_vl_from_vg (vg))) - #define sve_vg_from_vq(vq) (sve_vg_from_vl (sve_vl_from_vq (vq))) - diff --git a/gdb-archer-pie-addons-keep-disabled.patch b/gdb-archer-pie-addons-keep-disabled.patch index 5e29ccc..bab06d6 100644 --- a/gdb-archer-pie-addons-keep-disabled.patch +++ b/gdb-archer-pie-addons-keep-disabled.patch @@ -10,7 +10,7 @@ FileName: gdb-archer-pie-addons-keep-disabled.patch diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c -@@ -15514,6 +15514,50 @@ initialize_breakpoint_ops (void) +@@ -15515,6 +15515,50 @@ initialize_breakpoint_ops (void) static struct cmd_list_element *enablebreaklist = NULL; diff --git a/gdb-archer-vla-tests.patch b/gdb-archer-vla-tests.patch index 67daf8d..8e800d1 100644 --- a/gdb-archer-vla-tests.patch +++ b/gdb-archer-vla-tests.patch @@ -3691,7 +3691,7 @@ new file mode 100644 diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp --- 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 } diff --git a/gdb-archer.patch b/gdb-archer.patch index 237ede6..7406b24 100644 --- a/gdb-archer.patch +++ b/gdb-archer.patch @@ -599,7 +599,7 @@ diff --git a/gdb/python/python.c b/gdb/python/python.c 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." }, diff --git a/gdb-bz533176-fortran-omp-step.patch b/gdb-bz533176-fortran-omp-step.patch index 2d9d443..9ce6cf5 100644 --- a/gdb-bz533176-fortran-omp-step.patch +++ b/gdb-bz533176-fortran-omp-step.patch @@ -32,7 +32,7 @@ debugging problem of GOMP outside of the scope of this Bug. diff --git a/gdb/infrun.c b/gdb/infrun.c --- a/gdb/infrun.c +++ b/gdb/infrun.c -@@ -6699,6 +6699,16 @@ process_event_stop_test (struct execution_control_state *ecs) +@@ -6703,6 +6703,16 @@ process_event_stop_test (struct execution_control_state *ecs) if (ecs->event_thread->control.step_over_calls == STEP_OVER_ALL) { @@ -49,7 +49,7 @@ diff --git a/gdb/infrun.c b/gdb/infrun.c /* 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) +@@ -6736,6 +6746,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 d02beb3..b0bfdf0 100644 --- a/gdb-bz541866-rwatch-before-run.patch +++ b/gdb-bz541866-rwatch-before-run.patch @@ -12,7 +12,7 @@ FileName: gdb-bz541866-rwatch-before-run.patch diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c -@@ -8798,7 +8798,7 @@ init_breakpoint_sal (struct breakpoint *b, struct gdbarch *gdbarch, +@@ -8799,7 +8799,7 @@ init_breakpoint_sal (struct breakpoint *b, struct gdbarch *gdbarch, int enabled, int internal, unsigned flags, int display_canonical) { @@ -21,7 +21,7 @@ diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c if (type == bp_hardware_breakpoint) { -@@ -14348,7 +14348,7 @@ enable_breakpoint_disp (struct breakpoint *bpt, enum bpdisp disposition, +@@ -14349,7 +14349,7 @@ enable_breakpoint_disp (struct breakpoint *bpt, enum bpdisp disposition, if (bpt->type == bp_hardware_breakpoint) { @@ -118,13 +118,13 @@ diff --git a/gdb/configure.nat b/gdb/configure.nat diff --git a/gdb/target.h b/gdb/target.h --- 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-container-rh-pkg.patch b/gdb-container-rh-pkg.patch index 3c9e772..35b027a 100644 --- a/gdb-container-rh-pkg.patch +++ b/gdb-container-rh-pkg.patch @@ -11,7 +11,7 @@ FileName: gdb-container-rh-pkg.patch diff --git a/gdb/remote.c b/gdb/remote.c --- a/gdb/remote.c +++ b/gdb/remote.c -@@ -14047,7 +14047,17 @@ remote_target::pid_to_exec_file (int pid) +@@ -13903,7 +13903,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-fix-python37-breakage.patch b/gdb-fix-python37-breakage.patch deleted file mode 100644 index 0c01f2d..0000000 --- a/gdb-fix-python37-breakage.patch +++ /dev/null @@ -1,68 +0,0 @@ -From FEDORA_PATCHES Mon Sep 17 00:00:00 2001 -From: Paul Koning -Date: Fri, 8 Jun 2018 13:26:36 -0400 -Subject: gdb-fix-python37-breakage.patch - -FileName: gdb-fix-python37-breakage.patch - -;; Fix build breakage with Python 3.7 -;; RHBZ #1577396 - -Fix build issue with Python 3.7 - -Originally reported in -https://bugzilla.redhat.com/show_bug.cgi?id=1577396 -- gdb build fails -with Python 3.7 due to references to a Python internal function whose -declaration changed in 3.7. - -gdb/ChangeLog -2018-06-08 Paul Koning - - PR gdb/23252 - - * python/python.c (do_start_initialization): - Avoid call to internal Python API. - (init__gdb_module): New function. - -diff --git a/gdb/python/python.c b/gdb/python/python.c ---- a/gdb/python/python.c -+++ b/gdb/python/python.c -@@ -1810,6 +1810,17 @@ finalize_python (void *ignore) - restore_active_ext_lang (previous_active); - } - -+#ifdef IS_PY3K -+/* This is called via the PyImport_AppendInittab mechanism called -+ during initialization, to make the built-in _gdb module known to -+ Python. */ -+PyMODINIT_FUNC -+init__gdb_module (void) -+{ -+ return PyModule_Create (&python_GdbModuleDef); -+} -+#endif -+ - static bool - do_start_initialization () - { -@@ -1850,6 +1861,9 @@ do_start_initialization () - remain alive for the duration of the program's execution, so - it is not freed after this call. */ - Py_SetProgramName (progname_copy); -+ -+ /* Define _gdb as a built-in module. */ -+ PyImport_AppendInittab ("_gdb", init__gdb_module); - #else - Py_SetProgramName (progname.release ()); - #endif -@@ -1859,9 +1873,7 @@ do_start_initialization () - PyEval_InitThreads (); - - #ifdef IS_PY3K -- gdb_module = PyModule_Create (&python_GdbModuleDef); -- /* Add _gdb module to the list of known built-in modules. */ -- _PyImport_FixupBuiltin (gdb_module, "_gdb"); -+ gdb_module = PyImport_ImportModule ("_gdb"); - #else - gdb_module = Py_InitModule ("_gdb", python_GdbMethods); - #endif diff --git a/gdb-glibc-strstr-workaround.patch b/gdb-glibc-strstr-workaround.patch index 95dcca6..635de31 100644 --- a/gdb-glibc-strstr-workaround.patch +++ b/gdb-glibc-strstr-workaround.patch @@ -11,7 +11,7 @@ FileName: gdb-glibc-strstr-workaround.patch diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -21261,6 +21261,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 5eb2f97..f2a7ec3 100644 --- a/gdb-gnat-dwarf-crash-3of3.patch +++ b/gdb-gnat-dwarf-crash-3of3.patch @@ -44,7 +44,7 @@ gdb/ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -10489,6 +10489,13 @@ private: +@@ -10483,6 +10483,13 @@ private: static void process_die (struct die_info *die, struct dwarf2_cu *cu) { diff --git a/gdb-moribund-utrace-workaround.patch b/gdb-moribund-utrace-workaround.patch index 7e0b0fd..e45bd8e 100644 --- a/gdb-moribund-utrace-workaround.patch +++ b/gdb-moribund-utrace-workaround.patch @@ -16,7 +16,7 @@ Bug in FSF GDB exploited by the ptrace-on-utrace interaction. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c -@@ -12007,6 +12007,8 @@ update_global_location_list (enum ugll_insert_mode insert_mode) +@@ -12008,6 +12008,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-rhbz795424-bitpos-20of25.patch b/gdb-rhbz795424-bitpos-20of25.patch index ddf3eef..1de7d36 100644 --- a/gdb-rhbz795424-bitpos-20of25.patch +++ b/gdb-rhbz795424-bitpos-20of25.patch @@ -1313,7 +1313,7 @@ diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c } return 0; } -@@ -6809,7 +6809,7 @@ breakpoint_address_match (const address_space *aspace1, CORE_ADDR addr1, +@@ -6810,7 +6810,7 @@ breakpoint_address_match (const address_space *aspace1, CORE_ADDR addr1, static int breakpoint_address_match_range (const address_space *aspace1, CORE_ADDR addr1, @@ -1322,7 +1322,7 @@ diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c CORE_ADDR addr2) { return ((gdbarch_has_global_breakpoints (target_gdbarch ()) -@@ -10896,7 +10896,7 @@ can_use_hardware_watchpoint (const std::vector &vals) +@@ -10897,7 +10897,7 @@ can_use_hardware_watchpoint (const std::vector &vals) && TYPE_CODE (vtype) != TYPE_CODE_ARRAY)) { CORE_ADDR vaddr = value_address (v); @@ -1676,7 +1676,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c } static void -@@ -14940,8 +14940,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. */ @@ -2660,7 +2660,7 @@ diff --git a/gdb/procfs.c b/gdb/procfs.c diff --git a/gdb/regcache.c b/gdb/regcache.c --- a/gdb/regcache.c +++ b/gdb/regcache.c -@@ -781,7 +781,7 @@ regcache::cooked_write (int regnum, const gdb_byte *buf) +@@ -784,7 +784,7 @@ regcache::cooked_write (int regnum, const gdb_byte *buf) operation. */ enum register_status @@ -2669,7 +2669,7 @@ diff --git a/gdb/regcache.c b/gdb/regcache.c bool is_raw) { struct gdbarch *gdbarch = arch (); -@@ -810,7 +810,7 @@ readable_regcache::read_part (int regnum, int offset, int len, void *in, +@@ -813,7 +813,7 @@ readable_regcache::read_part (int regnum, int offset, int len, void *in, } enum register_status @@ -2678,7 +2678,7 @@ diff --git a/gdb/regcache.c b/gdb/regcache.c const void *out, bool is_raw) { struct gdbarch *gdbarch = arch (); -@@ -847,7 +847,8 @@ regcache::write_part (int regnum, int offset, int len, +@@ -850,7 +850,8 @@ regcache::write_part (int regnum, int offset, int len, } enum register_status @@ -2688,7 +2688,7 @@ diff --git a/gdb/regcache.c b/gdb/regcache.c { assert_regnum (regnum); return read_part (regnum, offset, len, buf, true); -@@ -856,7 +857,7 @@ readable_regcache::raw_read_part (int regnum, int offset, int len, gdb_byte *buf +@@ -859,7 +860,7 @@ readable_regcache::raw_read_part (int regnum, int offset, int len, gdb_byte *buf /* See regcache.h. */ void @@ -2697,7 +2697,7 @@ diff --git a/gdb/regcache.c b/gdb/regcache.c const gdb_byte *buf) { assert_regnum (regnum); -@@ -864,7 +865,7 @@ regcache::raw_write_part (int regnum, int offset, int len, +@@ -867,7 +868,7 @@ regcache::raw_write_part (int regnum, int offset, int len, } enum register_status @@ -2706,7 +2706,7 @@ diff --git a/gdb/regcache.c b/gdb/regcache.c gdb_byte *buf) { gdb_assert (regnum >= 0 && regnum < m_descr->nr_cooked_registers); -@@ -872,7 +873,7 @@ readable_regcache::cooked_read_part (int regnum, int offset, int len, +@@ -875,7 +876,7 @@ readable_regcache::cooked_read_part (int regnum, int offset, int len, } void @@ -2718,7 +2718,7 @@ diff --git a/gdb/regcache.c b/gdb/regcache.c diff --git a/gdb/regcache.h b/gdb/regcache.h --- a/gdb/regcache.h +++ b/gdb/regcache.h -@@ -200,8 +200,8 @@ public: +@@ -233,8 +233,8 @@ public: enum register_status raw_read (int regnum, T *val); /* Partial transfer of raw registers. Return the status of the register. */ @@ -2729,7 +2729,7 @@ diff --git a/gdb/regcache.h b/gdb/regcache.h /* Make certain that the register REGNUM is up-to-date. */ virtual void raw_update (int regnum) = 0; -@@ -213,16 +213,16 @@ public: +@@ -246,16 +246,16 @@ public: enum register_status cooked_read (int regnum, T *val); /* Partial transfer of a cooked register. */ @@ -2750,7 +2750,7 @@ diff --git a/gdb/regcache.h b/gdb/regcache.h }; /* Buffer of registers, can be read and written. */ -@@ -300,11 +300,12 @@ public: +@@ -312,11 +312,12 @@ public: /* Partial transfer of raw registers. Perform read, modify, write style operations. */ @@ -2765,7 +2765,7 @@ diff --git a/gdb/regcache.h b/gdb/regcache.h const gdb_byte *buf); void supply_regset (const struct regset *regset, -@@ -338,13 +339,12 @@ protected: +@@ -350,13 +351,12 @@ protected: static std::forward_list current_regcache; private: @@ -2783,7 +2783,7 @@ diff --git a/gdb/regcache.h b/gdb/regcache.h diff --git a/gdb/remote.c b/gdb/remote.c --- a/gdb/remote.c +++ b/gdb/remote.c -@@ -455,7 +455,7 @@ public: +@@ -462,7 +462,7 @@ public: int remove_hw_breakpoint (struct gdbarch *, struct bp_target_info *) override; @@ -2792,7 +2792,7 @@ diff --git a/gdb/remote.c b/gdb/remote.c int insert_watchpoint (CORE_ADDR, int, enum target_hw_bp_type, struct expression *) override; -@@ -10551,7 +10551,7 @@ int remote_hw_watchpoint_length_limit = -1; +@@ -10407,7 +10407,7 @@ int remote_hw_watchpoint_length_limit = -1; int remote_hw_breakpoint_limit = -1; int @@ -2847,15 +2847,15 @@ diff --git a/gdb/spu-multiarch.c b/gdb/spu-multiarch.c 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 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -2943,7 +2943,7 @@ diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c -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 @@ -2958,9 +2958,9 @@ diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c +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); @@ -2980,7 +2980,7 @@ diff --git a/gdb/target.c b/gdb/target.c 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) +@@ -3182,7 +3182,7 @@ target_fileio_read_stralloc (struct inferior *inf, const char *filename) static int default_region_ok_for_hw_watchpoint (struct target_ops *self, @@ -2992,7 +2992,7 @@ diff --git a/gdb/target.c b/gdb/target.c diff --git a/gdb/target.h b/gdb/target.h --- 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. */ diff --git a/gdb-rhbz795424-bitpos-21of25.patch b/gdb-rhbz795424-bitpos-21of25.patch index ea4a17c..149ce6e 100644 --- a/gdb-rhbz795424-bitpos-21of25.patch +++ b/gdb-rhbz795424-bitpos-21of25.patch @@ -92,7 +92,7 @@ diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c diff --git a/gdb/defs.h b/gdb/defs.h --- 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" @@ -113,7 +113,7 @@ diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c diff --git a/gdb/utils.c b/gdb/utils.c --- a/gdb/utils.c +++ b/gdb/utils.c -@@ -2817,6 +2817,17 @@ string_to_core_addr (const char *my_string) +@@ -2834,6 +2834,17 @@ string_to_core_addr (const char *my_string) return addr; } diff --git a/gdb-rhbz795424-bitpos-22of25.patch b/gdb-rhbz795424-bitpos-22of25.patch index f5c1398..ca82a4b 100644 --- a/gdb-rhbz795424-bitpos-22of25.patch +++ b/gdb-rhbz795424-bitpos-22of25.patch @@ -377,7 +377,7 @@ diff --git a/gdb/procfs.c b/gdb/procfs.c diff --git a/gdb/remote.c b/gdb/remote.c --- a/gdb/remote.c +++ b/gdb/remote.c -@@ -447,7 +447,7 @@ public: +@@ -454,7 +454,7 @@ public: bool stopped_data_address (CORE_ADDR *) override; @@ -386,7 +386,7 @@ diff --git a/gdb/remote.c b/gdb/remote.c int can_use_hw_breakpoint (enum bptype, int, int) override; -@@ -10480,7 +10480,7 @@ remote_target::insert_watchpoint (CORE_ADDR addr, int len, +@@ -10336,7 +10336,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); @@ -395,7 +395,7 @@ diff --git a/gdb/remote.c b/gdb/remote.c putpkt (rs->buf); getpkt (&rs->buf, &rs->buf_size, 0); -@@ -10500,7 +10500,7 @@ remote_target::insert_watchpoint (CORE_ADDR addr, int len, +@@ -10356,7 +10356,7 @@ remote_target::insert_watchpoint (CORE_ADDR addr, int len, bool remote_target::watchpoint_addr_within_range (CORE_ADDR addr, @@ -404,7 +404,7 @@ diff --git a/gdb/remote.c b/gdb/remote.c { CORE_ADDR diff = remote_address_masked (addr - start); -@@ -10529,7 +10529,7 @@ remote_target::remove_watchpoint (CORE_ADDR addr, int len, +@@ -10385,7 +10385,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); @@ -459,7 +459,7 @@ diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c -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 @@ -474,7 +474,7 @@ diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c +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); @@ -491,7 +491,7 @@ diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c -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 @@ -506,9 +506,9 @@ diff --git a/gdb/target-delegates.c b/gdb/target-delegates.c +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); @@ -528,7 +528,7 @@ diff --git a/gdb/target.c b/gdb/target.c 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, +@@ -3190,7 +3190,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, @@ -540,7 +540,7 @@ diff --git a/gdb/target.c b/gdb/target.c diff --git a/gdb/target.h b/gdb/target.h --- 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); @@ -549,7 +549,7 @@ diff --git a/gdb/target.h b/gdb/target.h 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-vla-intel-fortran-strides.patch b/gdb-vla-intel-fortran-strides.patch index f5e54fe..068fa83 100644 --- a/gdb-vla-intel-fortran-strides.patch +++ b/gdb-vla-intel-fortran-strides.patch @@ -145,7 +145,7 @@ diff --git a/gdb/dwarf2loc.h b/gdb/dwarf2loc.h diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c -@@ -17541,7 +17541,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; @@ -154,7 +154,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c int low_default_is_valid; int high_bound_is_count = 0; const char *name; -@@ -17561,7 +17561,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; @@ -164,7 +164,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c /* Set LOW_DEFAULT_IS_VALID if current language and DWARF version allow omitting DW_AT_lower_bound. */ -@@ -17594,6 +17596,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; } @@ -179,7 +179,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c attr = dwarf2_attr (die, DW_AT_lower_bound, cu); if (attr) attr_to_dynamic_prop (attr, die, cu, &low); -@@ -17671,7 +17681,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; diff --git a/gdb-vla-intel-fortran-vla-strings.patch b/gdb-vla-intel-fortran-vla-strings.patch index 96d4545..d132701 100644 --- a/gdb-vla-intel-fortran-vla-strings.patch +++ b/gdb-vla-intel-fortran-vla-strings.patch @@ -35,7 +35,7 @@ git diff --stat -p gdb/master...gdb/users/bheckel/fortran-vla-strings diff --git a/gdb/NEWS b/gdb/NEWS --- a/gdb/NEWS +++ b/gdb/NEWS -@@ -73,6 +73,8 @@ SH-5/SH64 running OpenBSD SH-5/SH64 support in sh*-*-openbsd* +@@ -86,6 +86,8 @@ SH-5/SH64 running OpenBSD SH-5/SH64 support in sh*-*-openbsd* *** Changes in GDB 8.1 @@ -89,7 +89,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c /* memory allocation interface */ -@@ -13639,7 +13640,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); @@ -98,7 +98,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c } cu->list_in_scope = &local_symbols; -@@ -16304,7 +16305,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)); @@ -108,7 +108,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c if (!stride_ok) { complaint (_("unable to read array DW_AT_byte_stride " -@@ -17065,29 +17067,90 @@ read_tag_string_type (struct die_info *die, struct dwarf2_cu *cu) +@@ -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; @@ -210,7 +210,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c char_type = language_string_char_type (cu->language_defn, gdbarch); type = create_string_type (NULL, char_type, range_type); -@@ -17435,7 +17498,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, @@ -220,7 +220,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c { struct dwarf2_property_baton *baton; struct obstack *obstack -@@ -17446,14 +17510,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)) { @@ -258,7 +258,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c } else if (attr_form_is_ref (attr)) { -@@ -17486,8 +17569,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; @@ -289,7 +289,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c prop->data.baton = baton; prop->kind = PROP_LOCEXPR; gdb_assert (prop->data.baton != NULL); -@@ -17598,7 +17701,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) @@ -298,7 +298,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c complaint (_("Missing DW_AT_byte_stride " "- DIE at 0x%s [in module %s]"), sect_offset_str (die->sect_off), -@@ -17606,7 +17709,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) @@ -307,7 +307,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c else if (!low_default_is_valid) complaint (_("Missing DW_AT_lower_bound " "- DIE at %s [in module %s]"), -@@ -17614,10 +17717,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); @@ -320,7 +320,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c { /* If bounds are constant do the final calculation here. */ if (low.kind == PROP_CONST && high.kind == PROP_CONST) -@@ -25118,7 +25221,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)) { @@ -329,7 +329,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c add_dyn_prop (DYN_PROP_ALLOCATED, prop, type); } else if (attr != NULL) -@@ -25132,7 +25235,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)) { @@ -338,7 +338,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c add_dyn_prop (DYN_PROP_ASSOCIATED, prop, type); } else if (attr != NULL) -@@ -25144,7 +25247,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); diff --git a/gdb.spec b/gdb.spec index 52f2ec2..b9a97ae 100644 --- a/gdb.spec +++ b/gdb.spec @@ -18,7 +18,7 @@ Name: %{?scl_prefix}gdb # Freeze it when GDB gets branched -%global snapsrc 20180605 +%global snapsrc 20180613 # 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: 20%{?dist} +Release: 21%{?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 @@ -1026,6 +1026,9 @@ then fi %changelog +* 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 diff --git a/sources b/sources index 1f485dd..40fc047 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ SHA512 (gdb-libstdc++-v3-python-7.1.1-20170526.tar.xz) = 3d540b99581ffa4cf2810bec979c9a01a1f8ce782b7c8efb46b40dd2421d60cdb0e52b53c5477c3e86a57957a2a14489f5c29dc53868738a1ef79e79cf76d0a1 SHA512 (v1.6.1.tar.gz) = c7c9c8ba78021fff3fde12a216f5729c6031114e5a727f49b7ff1a31c53b5ddba24d1b3aee252d8278ecd1fafe78a44ed059c12b9eb29eca33093e0720673468 -SHA512 (gdb-8.1.50.20180605.tar.xz) = cadfc5d9c28a227c29fe3a30cfe0c5bee4ac4c7daf2c383d2bbc0b121ce7190eafc153358ba98b1d48b16c1ff30393ae90ef449a76dd2c574989e34acb193351 +SHA512 (gdb-8.1.50.20180613.tar.xz) = 7c473403922fa3d6dcd7d9efc6ae46e96c9a71a81bca992c081cdfaed011b537d928ee19d49aaa6e6038cb027ed47291f52312c85cfd60d53edfa5c49e514e72 From 4f2cb1818a5eb16d68088be831d0d001a6a97ced Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Mon, 18 Jun 2018 13:47:30 -0400 Subject: [PATCH 09/16] Do not run /sbin/install-info when installing the documentation (except for DTS). --- gdb.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/gdb.spec b/gdb.spec index b9a97ae..caa527a 100644 --- a/gdb.spec +++ b/gdb.spec @@ -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: 21%{?dist} +Release: 22%{?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 @@ -386,8 +386,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++, @@ -1003,6 +1008,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. @@ -1024,8 +1034,13 @@ then /sbin/install-info --delete --info-dir=%{_infodir} %{_infodir}/gdb.info.gz || : fi fi +%endif %changelog +* 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). From f3cfd8cd2d0afc9b4024bcbc9d9489f59c0f0153 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Mon, 18 Jun 2018 17:33:24 -0400 Subject: [PATCH 10/16] Rebase to FSF GDB 8.1.50.20180618 (8.2pre). --- _git_upstream_commit | 2 +- gdb-6.3-test-self-20050110.patch | 2 +- gdb-6.6-buildid-locate.patch | 2 +- gdb-gnat-dwarf-crash-3of3.patch | 2 +- gdb-testsuite-readline63-sigint.patch | 2 +- gdb.spec | 7 +++++-- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/_git_upstream_commit b/_git_upstream_commit index 3a34916..072c964 100644 --- a/_git_upstream_commit +++ b/_git_upstream_commit @@ -1 +1 @@ -1840d81a201932a2d5ad5b089aad85943a5a0a82 +7010835a6c5fd3679feae7e6345f2f10d4d761b4 diff --git a/gdb-6.3-test-self-20050110.patch b/gdb-6.3-test-self-20050110.patch index 985777c..99fca9c 100644 --- a/gdb-6.3-test-self-20050110.patch +++ b/gdb-6.3-test-self-20050110.patch @@ -19,7 +19,7 @@ FileName: gdb-6.3-test-self-20050110.patch diff --git a/gdb/testsuite/lib/selftest-support.exp b/gdb/testsuite/lib/selftest-support.exp --- 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.6-buildid-locate.patch b/gdb-6.6-buildid-locate.patch index 93272b2..ba71288 100644 --- a/gdb-6.6-buildid-locate.patch +++ b/gdb-6.6-buildid-locate.patch @@ -981,7 +981,7 @@ diff --git a/gdb/corelow.c b/gdb/corelow.c diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo -@@ -19561,6 +19561,27 @@ information files. +@@ -19562,6 +19562,27 @@ information files. @end table diff --git a/gdb-gnat-dwarf-crash-3of3.patch b/gdb-gnat-dwarf-crash-3of3.patch index f2a7ec3..6aa5a7c 100644 --- a/gdb-gnat-dwarf-crash-3of3.patch +++ b/gdb-gnat-dwarf-crash-3of3.patch @@ -155,7 +155,7 @@ diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c 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); diff --git a/gdb-testsuite-readline63-sigint.patch b/gdb-testsuite-readline63-sigint.patch index 86298b8..3201c1a 100644 --- a/gdb-testsuite-readline63-sigint.patch +++ b/gdb-testsuite-readline63-sigint.patch @@ -17,7 +17,7 @@ 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 --- 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.spec b/gdb.spec index caa527a..805e5e5 100644 --- a/gdb.spec +++ b/gdb.spec @@ -18,7 +18,7 @@ Name: %{?scl_prefix}gdb # Freeze it when GDB gets branched -%global snapsrc 20180613 +%global snapsrc 20180618 # 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: 22%{?dist} +Release: 23%{?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 @@ -1037,6 +1037,9 @@ fi %endif %changelog +* 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). From 3638ec5fec29822920e05a90967f7cbbfa142ba6 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Mon, 18 Jun 2018 17:34:55 -0400 Subject: [PATCH 11/16] Upload sources to lookaside cache --- .gitignore | 2 +- sources | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 02bea06..19111c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /gdb-libstdc++-v3-python-7.1.1-20170526.tar.xz /v1.6.1.tar.gz -/gdb-8.1.50.20180613.tar.xz +/gdb-8.1.50.20180618.tar.xz diff --git a/sources b/sources index 40fc047..5cc77a6 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ SHA512 (gdb-libstdc++-v3-python-7.1.1-20170526.tar.xz) = 3d540b99581ffa4cf2810bec979c9a01a1f8ce782b7c8efb46b40dd2421d60cdb0e52b53c5477c3e86a57957a2a14489f5c29dc53868738a1ef79e79cf76d0a1 SHA512 (v1.6.1.tar.gz) = c7c9c8ba78021fff3fde12a216f5729c6031114e5a727f49b7ff1a31c53b5ddba24d1b3aee252d8278ecd1fafe78a44ed059c12b9eb29eca33093e0720673468 -SHA512 (gdb-8.1.50.20180613.tar.xz) = 7c473403922fa3d6dcd7d9efc6ae46e96c9a71a81bca992c081cdfaed011b537d928ee19d49aaa6e6038cb027ed47291f52312c85cfd60d53edfa5c49e514e72 +SHA512 (gdb-8.1.50.20180618.tar.xz) = dffafcfbec2bc8deb27c411451b7cacab21aeded6d1ca1b89c12fa292bcbb6007a0b4cea3604dcea737e5353e9c71c6c2ec111806145fd79d4e30c7662608b6d From fd7e5d77a8ceafd8a11562a7499cfd2aca6e6762 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Mon, 18 Jun 2018 20:10:24 -0400 Subject: [PATCH 12/16] Remove need for "FileName:" line on the header of the patches. --- README.local-patches | 14 +++++--------- gdb-6.3-attach-see-vdso-test.patch | 2 -- gdb-6.3-bz140532-ppc-unwinding-test.patch | 2 -- gdb-6.3-bz202689-exec-from-pthread-test.patch | 2 -- gdb-6.3-focus-cmd-prev-test.patch | 2 -- gdb-6.3-gstack-20050411.patch | 2 -- gdb-6.3-inferior-notification-20050721.patch | 2 -- gdb-6.3-inheritancetest-20050726.patch | 2 -- gdb-6.3-mapping-zero-inode-test.patch | 2 -- gdb-6.3-ppc64displaysymbol-20041124.patch | 2 -- gdb-6.3-ppc64syscall-20040622.patch | 2 -- gdb-6.3-readnever-20050907.patch | 2 -- gdb-6.3-rh-testversion-20041202.patch | 5 +---- gdb-6.3-test-dtorfix-20050121.patch | 2 -- gdb-6.3-test-movedir-20050125.patch | 2 -- gdb-6.3-test-pie-20050107.patch | 2 -- gdb-6.3-test-self-20050110.patch | 2 -- gdb-6.3-threaded-watchpoints2-20050225.patch | 2 -- gdb-6.5-BEA-testsuite.patch | 2 -- gdb-6.5-bz109921-DW_AT_decl_file-test.patch | 2 -- ...bz185337-resolve-tls-without-debuginfo-v2.patch | 2 -- gdb-6.5-bz203661-emit-relocs.patch | 2 -- gdb-6.5-bz216711-clone-is-outermost.patch | 2 -- gdb-6.5-bz218379-ppc-solib-trampoline-test.patch | 2 -- ...bz218379-solib-trampoline-lookup-lock-fix.patch | 2 -- gdb-6.5-bz243845-stale-testing-zombie-test.patch | 2 -- gdb-6.5-gcore-buffer-limit-test.patch | 2 -- gdb-6.5-ia64-libunwind-leak-test.patch | 2 -- gdb-6.5-last-address-space-byte-test.patch | 2 -- gdb-6.5-missed-trap-on-step-test.patch | 2 -- gdb-6.5-readline-long-line-crash-test.patch | 2 -- gdb-6.5-section-num-fixup-test.patch | 2 -- gdb-6.5-sharedlibrary-path.patch | 2 -- gdb-6.6-buildid-locate-core-as-arg.patch | 4 +--- ...ding-warning-missing-debuginfo-rhbz981154.patch | 2 -- gdb-6.6-buildid-locate-rpm-librpm-workaround.patch | 2 -- gdb-6.6-buildid-locate-rpm-scl.patch | 2 -- gdb-6.6-buildid-locate-rpm.patch | 2 -- gdb-6.6-buildid-locate-solib-missing-ids.patch | 2 -- gdb-6.6-buildid-locate.patch | 2 -- gdb-6.6-bz229517-gcore-without-terminal.patch | 2 -- gdb-6.6-bz230000-power6-disassembly-test.patch | 2 -- gdb-6.6-bz237572-ppc-atomic-sequence-test.patch | 2 -- gdb-6.6-scheduler_locking-step-is-default.patch | 2 -- gdb-6.6-testsuite-timeouts.patch | 2 -- gdb-6.7-charsign-test.patch | 2 -- gdb-6.7-ppc-clobbered-registers-O2-test.patch | 2 -- gdb-6.7-testsuite-stable-results.patch | 2 -- gdb-6.8-bz436037-reg-no-longer-active.patch | 2 -- gdb-6.8-bz442765-threaded-exec-test.patch | 2 -- gdb-6.8-bz466901-backtrace-full-prelinked.patch | 2 -- gdb-6.8-quit-never-aborts.patch | 2 -- gdb-6.8-sparc64-silence-memcpy-check.patch | 2 -- gdb-6.8-watchpoint-conditionals-test.patch | 2 -- ...parc-add-workaround-to-broken-debug-files.patch | 2 -- gdb-archer-next-over-throw-cxx-exec.patch | 2 -- gdb-archer-pie-addons-keep-disabled.patch | 2 -- gdb-archer-pie-addons.patch | 2 -- gdb-archer-vla-tests.patch | 2 -- gdb-archer.patch | 2 -- gdb-attach-fail-reasons-5of5.patch | 4 +--- gdb-btrobust.patch | 2 -- gdb-bz1219747-attach-kills.patch | 4 +--- gdb-bz533176-fortran-omp-step.patch | 2 -- gdb-bz541866-rwatch-before-run.patch | 2 -- gdb-bz568248-oom-is-error.patch | 4 +--- gdb-bz601887-dwarf4-rh-test.patch | 2 -- gdb-bz634108-solib_address.patch | 2 -- gdb-ccache-workaround.patch | 2 -- gdb-container-rh-pkg.patch | 2 -- gdb-core-open-vdso-warning.patch | 2 -- gdb-dts-rhel6-python-compat.patch | 2 -- gdb-fedora-libncursesw.patch | 2 -- gdb-follow-child-stale-parent.patch | 2 -- gdb-fortran-frame-string.patch | 4 +--- gdb-glibc-strstr-workaround.patch | 2 -- gdb-gnat-dwarf-crash-3of3.patch | 4 +--- gdb-jit-reader-multilib.patch | 2 -- gdb-libexec-add-index.patch | 2 -- gdb-lineno-makeup-test.patch | 2 -- gdb-linux_perf-bundle.patch | 2 -- gdb-moribund-utrace-workaround.patch | 2 -- gdb-opcodes-clflushopt-test.patch | 2 -- gdb-physname-pr11734-test.patch | 2 -- gdb-physname-pr12273-test.patch | 2 -- gdb-ppc-power7-test.patch | 2 -- gdb-python-gil.patch | 2 -- gdb-readline62-ask-more-rh.patch | 2 -- ...818343-set-solib-absolute-prefix-testcase.patch | 2 -- ...hbz1007614-memleak-infpy_read_memory-test.patch | 2 -- ...ppc64-s390x-wrong-prologue-skip-O2-g-3of3.patch | 2 -- ...rhbz1149205-catch-syscall-after-fork-test.patch | 2 -- gdb-rhbz1156192-recursive-dlopen-test.patch | 2 -- ...ternal-error-unqualified-name-re-set-test.patch | 2 -- gdb-rhbz1261564-aarch64-hw-watchpoint-test.patch | 2 -- gdb-rhbz1325795-framefilters-test.patch | 2 -- gdb-rhbz1350436-type-printers-error.patch | 2 -- gdb-rhbz1398387-tab-crash-test.patch | 2 -- gdb-rhbz1553104-s390x-arch12-test.patch | 2 -- gdb-rhbz795424-bitpos-20of25.patch | 4 +--- gdb-rhbz795424-bitpos-21of25.patch | 4 +--- gdb-rhbz795424-bitpos-22of25.patch | 4 +--- gdb-rhbz795424-bitpos-23of25.patch | 4 +--- gdb-rhbz795424-bitpos-25of25-test.patch | 4 +--- gdb-rhbz795424-bitpos-25of25.patch | 4 +--- gdb-rhbz795424-bitpos-lazyvalue.patch | 2 -- ...4-findvar-assertion-frame-failed-testcase.patch | 2 -- gdb-rhel5.9-testcase-xlf-var-inside-mod.patch | 2 -- gdb-runtest-pie-override.patch | 2 -- gdb-simultaneous-step-resume-breakpoint-test.patch | 2 -- gdb-stale-frame_info.patch | 4 +--- gdb-test-bt-cfi-without-die.patch | 4 +--- gdb-test-dw2-aranges.patch | 2 -- gdb-test-expr-cumulative-archer.patch | 2 -- gdb-test-ivy-bridge.patch | 2 -- gdb-test-pid0-core.patch | 2 -- gdb-testsuite-readline63-sigint.patch | 2 -- gdb-vla-intel-fix-print-char-array.patch | 2 -- gdb-vla-intel-fortran-strides.patch | 2 -- gdb-vla-intel-fortran-vla-strings.patch | 2 -- gdb-vla-intel-stringbt-fix.patch | 5 +---- gdb-vla-intel-tests.patch | 2 -- gdb-x86_64-i386-syscall-restart.patch | 2 -- generate-patches-from-git-repo.sh | 4 ++-- 124 files changed, 23 insertions(+), 273 deletions(-) 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-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 418a4c7..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 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 4253c75..77cb3d0 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 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 28a090d..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. diff --git a/gdb-6.3-ppc64syscall-20040622.patch b/gdb-6.3-ppc64syscall-20040622.patch index 576039a..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. diff --git a/gdb-6.3-readnever-20050907.patch b/gdb-6.3-readnever-20050907.patch index cbb2485..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 diff --git a/gdb-6.3-rh-testversion-20041202.patch b/gdb-6.3-rh-testversion-20041202.patch index 00f1b07..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 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 99fca9c..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 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 ef7ef00..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. diff --git a/gdb-6.5-bz203661-emit-relocs.patch b/gdb-6.5-bz203661-emit-relocs.patch index e82399d..5ef4f39 100644 --- a/gdb-6.5-bz203661-emit-relocs.patch +++ b/gdb-6.5-bz203661-emit-relocs.patch @@ -3,8 +3,6 @@ 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-6.5-bz216711-clone-is-outermost.patch b/gdb-6.5-bz216711-clone-is-outermost.patch index 9e2429d..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 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 0aafb24..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,8 +3,6 @@ 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 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 0bbc13a..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 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 5c69796..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 diff --git a/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch b/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch index d83eba0..375b178 100644 --- a/gdb-6.6-buildid-locate-rpm-librpm-workaround.patch +++ b/gdb-6.6-buildid-locate-rpm-librpm-workaround.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-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-6.6-buildid-locate-rpm-scl.patch b/gdb-6.6-buildid-locate-rpm-scl.patch index 9358131..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 diff --git a/gdb-6.6-buildid-locate-rpm.patch b/gdb-6.6-buildid-locate-rpm.patch index 901a759..db33aa5 100644 --- a/gdb-6.6-buildid-locate-rpm.patch +++ b/gdb-6.6-buildid-locate-rpm.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.patch -FileName: gdb-6.6-buildid-locate-rpm.patch - ;;=push+jan diff --git a/gdb/aclocal.m4 b/gdb/aclocal.m4 diff --git a/gdb-6.6-buildid-locate-solib-missing-ids.patch b/gdb-6.6-buildid-locate-solib-missing-ids.patch index d022dd9..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). diff --git a/gdb-6.6-buildid-locate.patch b/gdb-6.6-buildid-locate.patch index ba71288..847b57e 100644 --- a/gdb-6.6-buildid-locate.patch +++ b/gdb-6.6-buildid-locate.patch @@ -3,8 +3,6 @@ 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-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 3fa245a..77468ed 100644 --- a/gdb-6.6-scheduler_locking-step-is-default.patch +++ b/gdb-6.6-scheduler_locking-step-is-default.patch @@ -3,8 +3,6 @@ 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-6.6-testsuite-timeouts.patch b/gdb-6.6-testsuite-timeouts.patch index b6092e9..a896313 100644 --- a/gdb-6.6-testsuite-timeouts.patch +++ b/gdb-6.6-testsuite-timeouts.patch @@ -3,8 +3,6 @@ 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-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 032fd5d..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 diff --git a/gdb-6.8-bz436037-reg-no-longer-active.patch b/gdb-6.8-bz436037-reg-no-longer-active.patch index ed29368..ea240af 100644 --- a/gdb-6.8-bz436037-reg-no-longer-active.patch +++ b/gdb-6.8-bz436037-reg-no-longer-active.patch @@ -3,8 +3,6 @@ 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-6.8-bz442765-threaded-exec-test.patch b/gdb-6.8-bz442765-threaded-exec-test.patch index a948702..e2ed431 100644 --- a/gdb-6.8-bz442765-threaded-exec-test.patch +++ b/gdb-6.8-bz442765-threaded-exec-test.patch @@ -3,8 +3,6 @@ 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 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 6e3ce22..0c35b89 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 . diff --git a/gdb-6.8-sparc64-silence-memcpy-check.patch b/gdb-6.8-sparc64-silence-memcpy-check.patch index c379a69..6c0848d 100644 --- a/gdb-6.8-sparc64-silence-memcpy-check.patch +++ b/gdb-6.8-sparc64-silence-memcpy-check.patch @@ -3,8 +3,6 @@ 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-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 11419b0..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. 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 bab06d6..93fdc0f 100644 --- a/gdb-archer-pie-addons-keep-disabled.patch +++ b/gdb-archer-pie-addons-keep-disabled.patch @@ -3,8 +3,6 @@ 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 diff --git a/gdb-archer-pie-addons.patch b/gdb-archer-pie-addons.patch index ac36f51..9aef617 100644 --- a/gdb-archer-pie-addons.patch +++ b/gdb-archer-pie-addons.patch @@ -3,8 +3,6 @@ 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 diff --git a/gdb-archer-vla-tests.patch b/gdb-archer-vla-tests.patch index 8e800d1..fa4fa0d 100644 --- a/gdb-archer-vla-tests.patch +++ b/gdb-archer-vla-tests.patch @@ -3,8 +3,6 @@ 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 diff --git a/gdb-archer.patch b/gdb-archer.patch index 7406b24..92e5d81 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 diff --git a/gdb-attach-fail-reasons-5of5.patch b/gdb-attach-fail-reasons-5of5.patch index d8fa568..0eb5c55 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 diff --git a/gdb-btrobust.patch b/gdb-btrobust.patch index 7de516d..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 diff --git a/gdb-bz1219747-attach-kills.patch b/gdb-bz1219747-attach-kills.patch index 25f9e5e..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 diff --git a/gdb-bz533176-fortran-omp-step.patch b/gdb-bz533176-fortran-omp-step.patch index 9ce6cf5..becfeed 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. diff --git a/gdb-bz541866-rwatch-before-run.patch b/gdb-bz541866-rwatch-before-run.patch index b0bfdf0..e1bd4d6 100644 --- a/gdb-bz541866-rwatch-before-run.patch +++ b/gdb-bz541866-rwatch-before-run.patch @@ -3,8 +3,6 @@ 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-bz568248-oom-is-error.patch b/gdb-bz568248-oom-is-error.patch index e8ec5de..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. 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 e49d2ff..60bc5cc 100644 --- a/gdb-ccache-workaround.patch +++ b/gdb-ccache-workaround.patch @@ -3,8 +3,6 @@ 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-container-rh-pkg.patch b/gdb-container-rh-pkg.patch index 35b027a..c53aeb8 100644 --- a/gdb-container-rh-pkg.patch +++ b/gdb-container-rh-pkg.patch @@ -3,8 +3,6 @@ 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-core-open-vdso-warning.patch b/gdb-core-open-vdso-warning.patch index 8d757dd..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@.*> diff --git a/gdb-dts-rhel6-python-compat.patch b/gdb-dts-rhel6-python-compat.patch index 0f67baa..697c6f0 100644 --- a/gdb-dts-rhel6-python-compat.patch +++ b/gdb-dts-rhel6-python-compat.patch @@ -3,8 +3,6 @@ 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 diff --git a/gdb-fedora-libncursesw.patch b/gdb-fedora-libncursesw.patch index 861003b..a0e999e 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 diff --git a/gdb-follow-child-stale-parent.patch b/gdb-follow-child-stale-parent.patch index 3887c9e..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 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 635de31..952be44 100644 --- a/gdb-glibc-strstr-workaround.patch +++ b/gdb-glibc-strstr-workaround.patch @@ -3,8 +3,6 @@ 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-gnat-dwarf-crash-3of3.patch b/gdb-gnat-dwarf-crash-3of3.patch index 6aa5a7c..28b26be 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 diff --git a/gdb-jit-reader-multilib.patch b/gdb-jit-reader-multilib.patch index 43ae3b1..c4fc8b9 100644 --- a/gdb-jit-reader-multilib.patch +++ b/gdb-jit-reader-multilib.patch @@ -3,8 +3,6 @@ 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-libexec-add-index.patch b/gdb-libexec-add-index.patch index d4a335b..af19eab 100644 --- a/gdb-libexec-add-index.patch +++ b/gdb-libexec-add-index.patch @@ -3,8 +3,6 @@ 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-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 e1e816e..7d621dd 100644 --- a/gdb-linux_perf-bundle.patch +++ b/gdb-linux_perf-bundle.patch @@ -3,8 +3,6 @@ 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-moribund-utrace-workaround.patch b/gdb-moribund-utrace-workaround.patch index e45bd8e..39a0c05 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. 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 a182b44..9ff2e45 100644 --- a/gdb-python-gil.patch +++ b/gdb-python-gil.patch @@ -3,8 +3,6 @@ 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-readline62-ask-more-rh.patch b/gdb-readline62-ask-more-rh.patch index 8368970..a1f1171 100644 --- a/gdb-readline62-ask-more-rh.patch +++ b/gdb-readline62-ask-more-rh.patch @@ -3,8 +3,6 @@ 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-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 4f68aa2..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 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 1de7d36..cae9ff7 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). diff --git a/gdb-rhbz795424-bitpos-21of25.patch b/gdb-rhbz795424-bitpos-21of25.patch index 149ce6e..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). diff --git a/gdb-rhbz795424-bitpos-22of25.patch b/gdb-rhbz795424-bitpos-22of25.patch index ca82a4b..dab442a 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). diff --git a/gdb-rhbz795424-bitpos-23of25.patch b/gdb-rhbz795424-bitpos-23of25.patch index 1012677..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). 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 be3e9cf..f62d8da 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). 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 843c005..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 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 index 8e74545..b1dc173 100644 --- a/gdb-stale-frame_info.patch +++ b/gdb-stale-frame_info.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: workaround stale frame_info * (PR 13866) - -FileName: gdb-stale-frame_info.patch +Subject: gdb-stale-frame_info.patch ;; Workaround crashes from stale frame_info pointer (BZ 804256). ;;=push+jan 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 3201c1a..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 diff --git a/gdb-vla-intel-fix-print-char-array.patch b/gdb-vla-intel-fix-print-char-array.patch index 455144d..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): diff --git a/gdb-vla-intel-fortran-strides.patch b/gdb-vla-intel-fortran-strides.patch index 068fa83..8dd7b55 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 diff --git a/gdb-vla-intel-fortran-vla-strings.patch b/gdb-vla-intel-fortran-vla-strings.patch index d132701..f944945 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 diff --git a/gdb-vla-intel-stringbt-fix.patch b/gdb-vla-intel-stringbt-fix.patch index a5b5114..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 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 f8b3e5a..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 diff --git a/generate-patches-from-git-repo.sh b/generate-patches-from-git-repo.sh index 0dddf82..3d454b7 100755 --- a/generate-patches-from-git-repo.sh +++ b/generate-patches-from-git-repo.sh @@ -63,8 +63,8 @@ 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 From a0d6e14aa39b8328976cf000849d2d9aa77adfd5 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Wed, 20 Jun 2018 16:49:13 -0400 Subject: [PATCH 13/16] Add BuildRequires: mpfr-devel (RH BZ 1593280). Resolves: rhbz#1593280 --- gdb.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb.spec b/gdb.spec index 805e5e5..f5ee03f 100644 --- a/gdb.spec +++ b/gdb.spec @@ -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: 23%{?dist} +Release: 24%{?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} @@ -625,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 @@ -1037,6 +1040,9 @@ fi %endif %changelog +* 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). From ab024a6de1bd4daabb19cf5a30576750e8f638ab Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Wed, 27 Jun 2018 15:50:46 -0400 Subject: [PATCH 14/16] Rebase to FSF GDB 8.1.50.20180624 (8.2pre). --- .gitignore | 2 +- _gdb.spec.Patch.include | 88 ++++++------ _gdb.spec.patch.include | 1 - _git_upstream_commit | 2 +- _patch_order | 1 - gdb-6.6-buildid-locate-rpm.patch | 28 ++-- gdb-6.6-buildid-locate.patch | 12 +- ....6-scheduler_locking-step-is-default.patch | 2 +- gdb-6.8-quit-never-aborts.patch | 2 +- gdb-archer-pie-addons-keep-disabled.patch | 4 +- gdb-archer.patch | 2 +- gdb-attach-fail-reasons-5of5.patch | 8 +- gdb-bz533176-fortran-omp-step.patch | 4 +- gdb-bz541866-rwatch-before-run.patch | 4 +- gdb-container-rh-pkg.patch | 2 +- gdb-fedora-libncursesw.patch | 16 +-- gdb-gnat-dwarf-crash-3of3.patch | 8 +- gdb-jit-reader-multilib.patch | 4 +- gdb-linux_perf-bundle.patch | 8 +- gdb-moribund-utrace-workaround.patch | 2 +- gdb-rhbz795424-bitpos-20of25.patch | 130 ++++++++---------- gdb-rhbz795424-bitpos-22of25.patch | 10 +- gdb-rhbz795424-bitpos-25of25.patch | 2 +- gdb-stale-frame_info.patch | 75 ---------- gdb-vla-intel-fortran-strides.patch | 2 +- gdb.spec | 7 +- sources | 2 +- 27 files changed, 172 insertions(+), 256 deletions(-) delete mode 100644 gdb-stale-frame_info.patch diff --git a/.gitignore b/.gitignore index 19111c2..67d9856 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /gdb-libstdc++-v3-python-7.1.1-20170526.tar.xz /v1.6.1.tar.gz -/gdb-8.1.50.20180618.tar.xz +/gdb-8.1.50.20180624.tar.xz 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 072c964..7529270 100644 --- a/_git_upstream_commit +++ b/_git_upstream_commit @@ -1 +1 @@ -7010835a6c5fd3679feae7e6345f2f10d4d761b4 +6706f7706241eda253d26ce4c927dd5bed4942a7 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.6-buildid-locate-rpm.patch b/gdb-6.6-buildid-locate-rpm.patch index db33aa5..8972abe 100644 --- a/gdb-6.6-buildid-locate-rpm.patch +++ b/gdb-6.6-buildid-locate-rpm.patch @@ -8,7 +8,7 @@ Subject: gdb-6.6-buildid-locate-rpm.patch diff --git a/gdb/aclocal.m4 b/gdb/aclocal.m4 --- 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. @@ -226,10 +226,12 @@ diff --git a/gdb/aclocal.m4 b/gdb/aclocal.m4 + +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 --- a/gdb/build-id.c +++ b/gdb/build-id.c @@ -701,7 +703,7 @@ diff --git a/gdb/config.in b/gdb/config.in diff --git a/gdb/configure b/gdb/configure --- a/gdb/configure +++ b/gdb/configure -@@ -716,6 +716,11 @@ PKGVERSION +@@ -748,6 +748,11 @@ PKGVERSION HAVE_NATIVE_GCORE_TARGET TARGET_OBS subdirs @@ -713,7 +715,7 @@ diff --git a/gdb/configure b/gdb/configure GDB_DATADIR DEBUGDIR MAKEINFO_EXTRA_FLAGS -@@ -820,6 +825,7 @@ with_gdb_datadir +@@ -852,6 +857,7 @@ with_gdb_datadir with_relocated_sources with_auto_load_dir with_auto_load_safe_path @@ -721,7 +723,7 @@ diff --git a/gdb/configure b/gdb/configure enable_targets enable_64_bit_bfd enable_gdbcli -@@ -878,6 +884,11 @@ CCC +@@ -910,6 +916,11 @@ CCC CPP MAKEINFO MAKEINFOFLAGS @@ -733,7 +735,7 @@ diff --git a/gdb/configure b/gdb/configure YACC YFLAGS XMKMF' -@@ -1548,6 +1559,8 @@ Optional Packages: +@@ -1580,6 +1591,8 @@ Optional Packages: [--with-auto-load-dir] --without-auto-load-safe-path do not restrict auto-loaded files locations @@ -742,7 +744,7 @@ diff --git a/gdb/configure b/gdb/configure --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: +@@ -1637,6 +1650,13 @@ Some influential environment variables: MAKEINFO Parent configure detects if it is of sufficient version. MAKEINFOFLAGS Parameters for MAKEINFO. @@ -753,10 +755,10 @@ diff --git a/gdb/configure b/gdb/configure + 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'. +@@ -6572,6 +6592,494 @@ _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_auto_load_safe_path" >&5 $as_echo "$with_auto_load_safe_path" >&6; } @@ -1254,7 +1256,7 @@ diff --git a/gdb/configure b/gdb/configure diff --git a/gdb/configure.ac b/gdb/configure.ac --- 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]) @@ -1457,7 +1459,7 @@ diff --git a/gdb/configure.ac b/gdb/configure.ac diff --git a/gdb/corelow.c b/gdb/corelow.c --- 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 diff --git a/gdb-6.6-buildid-locate.patch b/gdb-6.6-buildid-locate.patch index 847b57e..6b41426 100644 --- a/gdb-6.6-buildid-locate.patch +++ b/gdb-6.6-buildid-locate.patch @@ -894,7 +894,7 @@ diff --git a/gdb/corelow.c b/gdb/corelow.c #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. */ } @@ -949,8 +949,8 @@ diff --git a/gdb/corelow.c b/gdb/corelow.c /* 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 @@ -964,7 +964,7 @@ diff --git a/gdb/corelow.c b/gdb/corelow.c 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); @@ -1022,7 +1022,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c diff --git a/gdb/elfread.c b/gdb/elfread.c --- a/gdb/elfread.c +++ b/gdb/elfread.c -@@ -1288,7 +1288,9 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) +@@ -1290,7 +1290,9 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) && objfile->separate_debug_objfile == NULL && objfile->separate_debug_objfile_backlink == NULL) { @@ -1033,7 +1033,7 @@ diff --git a/gdb/elfread.c b/gdb/elfread.c if (debugfile.empty ()) debugfile = find_separate_debug_file_by_debuglink (objfile); -@@ -1300,6 +1302,10 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) +@@ -1302,6 +1304,10 @@ elf_symfile_read (struct objfile *objfile, symfile_add_flags symfile_flags) symbol_file_add_separate (abfd.get (), debugfile.c_str (), symfile_flags, objfile); } diff --git a/gdb-6.6-scheduler_locking-step-is-default.patch b/gdb-6.6-scheduler_locking-step-is-default.patch index 77468ed..ebc4aa6 100644 --- a/gdb-6.6-scheduler_locking-step-is-default.patch +++ b/gdb-6.6-scheduler_locking-step-is-default.patch @@ -9,7 +9,7 @@ Subject: gdb-6.6-scheduler_locking-step-is-default.patch diff --git a/gdb/infrun.c b/gdb/infrun.c --- 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 }; diff --git a/gdb-6.8-quit-never-aborts.patch b/gdb-6.8-quit-never-aborts.patch index 0c35b89..f3765de 100644 --- a/gdb-6.8-quit-never-aborts.patch +++ b/gdb-6.8-quit-never-aborts.patch @@ -45,7 +45,7 @@ diff --git a/gdb/extension.c b/gdb/extension.c diff --git a/gdb/top.c b/gdb/top.c --- a/gdb/top.c +++ b/gdb/top.c -@@ -1612,7 +1612,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; diff --git a/gdb-archer-pie-addons-keep-disabled.patch b/gdb-archer-pie-addons-keep-disabled.patch index 93fdc0f..4dc78f6 100644 --- a/gdb-archer-pie-addons-keep-disabled.patch +++ b/gdb-archer-pie-addons-keep-disabled.patch @@ -8,7 +8,7 @@ Subject: gdb-archer-pie-addons-keep-disabled.patch diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c -@@ -15515,6 +15515,50 @@ initialize_breakpoint_ops (void) +@@ -15519,6 +15519,50 @@ initialize_breakpoint_ops (void) static struct cmd_list_element *enablebreaklist = NULL; @@ -62,7 +62,7 @@ diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h --- 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); diff --git a/gdb-archer.patch b/gdb-archer.patch index 92e5d81..73006be 100644 --- a/gdb-archer.patch +++ b/gdb-archer.patch @@ -452,7 +452,7 @@ new file mode 100644 diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h --- a/gdb/python/python-internal.h +++ b/gdb/python/python-internal.h -@@ -643,6 +643,9 @@ class gdbpy_enter_varobj : public gdbpy_enter +@@ -644,6 +644,9 @@ class gdbpy_enter_varobj : public gdbpy_enter }; diff --git a/gdb-attach-fail-reasons-5of5.patch b/gdb-attach-fail-reasons-5of5.patch index 0eb5c55..e1ecd3a 100644 --- a/gdb-attach-fail-reasons-5of5.patch +++ b/gdb-attach-fail-reasons-5of5.patch @@ -68,7 +68,7 @@ diff --git a/gdb/config.in b/gdb/config.in diff --git a/gdb/configure b/gdb/configure --- a/gdb/configure +++ b/gdb/configure -@@ -15747,6 +15747,64 @@ cat >>confdefs.h <<_ACEOF +@@ -15843,6 +15843,64 @@ cat >>confdefs.h <<_ACEOF _ACEOF @@ -136,7 +136,7 @@ diff --git a/gdb/configure b/gdb/configure diff --git a/gdb/configure.ac b/gdb/configure.ac --- a/gdb/configure.ac +++ b/gdb/configure.ac -@@ -2048,6 +2048,10 @@ case $host_os in +@@ -2047,6 +2047,10 @@ case $host_os in esac AC_DEFINE_UNQUOTED(GDBINIT,"$gdbinit",[The .gdbinit filename.]) @@ -173,7 +173,7 @@ diff --git a/gdb/gdbserver/config.in b/gdb/gdbserver/config.in diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure --- 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 @@ -241,7 +241,7 @@ diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac --- 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 diff --git a/gdb-bz533176-fortran-omp-step.patch b/gdb-bz533176-fortran-omp-step.patch index becfeed..ba1bceb 100644 --- a/gdb-bz533176-fortran-omp-step.patch +++ b/gdb-bz533176-fortran-omp-step.patch @@ -30,7 +30,7 @@ debugging problem of GOMP outside of the scope of this Bug. diff --git a/gdb/infrun.c b/gdb/infrun.c --- a/gdb/infrun.c +++ b/gdb/infrun.c -@@ -6703,6 +6703,16 @@ process_event_stop_test (struct execution_control_state *ecs) +@@ -6670,6 +6670,16 @@ process_event_stop_test (struct execution_control_state *ecs) if (ecs->event_thread->control.step_over_calls == STEP_OVER_ALL) { @@ -47,7 +47,7 @@ diff --git a/gdb/infrun.c b/gdb/infrun.c /* We're doing a "next". Normal (forward) execution: set a breakpoint at the -@@ -6736,6 +6746,7 @@ process_event_stop_test (struct execution_control_state *ecs) +@@ -6703,6 +6713,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 e1bd4d6..d5595fa 100644 --- a/gdb-bz541866-rwatch-before-run.patch +++ b/gdb-bz541866-rwatch-before-run.patch @@ -10,7 +10,7 @@ Subject: gdb-bz541866-rwatch-before-run.patch diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c -@@ -8799,7 +8799,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) { @@ -19,7 +19,7 @@ diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c if (type == bp_hardware_breakpoint) { -@@ -14349,7 +14349,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) { diff --git a/gdb-container-rh-pkg.patch b/gdb-container-rh-pkg.patch index c53aeb8..35eb798 100644 --- a/gdb-container-rh-pkg.patch +++ b/gdb-container-rh-pkg.patch @@ -9,7 +9,7 @@ Subject: gdb-container-rh-pkg.patch diff --git a/gdb/remote.c b/gdb/remote.c --- a/gdb/remote.c +++ b/gdb/remote.c -@@ -13903,7 +13903,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-fedora-libncursesw.patch b/gdb-fedora-libncursesw.patch index a0e999e..66c7b48 100644 --- a/gdb-fedora-libncursesw.patch +++ b/gdb-fedora-libncursesw.patch @@ -12,15 +12,15 @@ https://bugzilla.redhat.com/show_bug.cgi?id=1270534 diff --git a/gdb/configure b/gdb/configure --- a/gdb/configure +++ b/gdb/configure -@@ -9304,6 +9304,7 @@ if test x"$prefer_curses" = xyes; then +@@ -9382,6 +9382,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 : +@@ -9406,7 +9407,7 @@ return waddstr (); return 0; } _ACEOF @@ -29,15 +29,15 @@ diff --git a/gdb/configure b/gdb/configure if test -z "$ac_lib"; then ac_res="none required" else -@@ -9402,6 +9403,7 @@ case $host_os in +@@ -9480,6 +9481,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 : +@@ -9504,7 +9506,7 @@ return tgetent (); return 0; } _ACEOF @@ -49,7 +49,7 @@ diff --git a/gdb/configure b/gdb/configure diff --git a/gdb/configure.ac b/gdb/configure.ac --- a/gdb/configure.ac +++ b/gdb/configure.ac -@@ -760,7 +760,8 @@ if test x"$prefer_curses" = xyes; then +@@ -759,7 +759,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. @@ -59,7 +59,7 @@ diff --git a/gdb/configure.ac b/gdb/configure.ac if test "$ac_cv_search_waddstr" != no; then curses_found=yes -@@ -802,7 +803,8 @@ case $host_os in +@@ -801,7 +802,8 @@ case $host_os in esac # These are the libraries checked by Readline. diff --git a/gdb-gnat-dwarf-crash-3of3.patch b/gdb-gnat-dwarf-crash-3of3.patch index 28b26be..5b270bf 100644 --- a/gdb-gnat-dwarf-crash-3of3.patch +++ b/gdb-gnat-dwarf-crash-3of3.patch @@ -59,7 +59,7 @@ diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c diff --git a/gdb/infrun.c b/gdb/infrun.c --- 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)); } @@ -99,7 +99,7 @@ diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c /* 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); } @@ -125,7 +125,7 @@ diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c 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); @@ -136,7 +136,7 @@ diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c } } -@@ -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; } diff --git a/gdb-jit-reader-multilib.patch b/gdb-jit-reader-multilib.patch index c4fc8b9..6efe38a 100644 --- a/gdb-jit-reader-multilib.patch +++ b/gdb-jit-reader-multilib.patch @@ -9,7 +9,7 @@ Subject: gdb-jit-reader-multilib.patch diff --git a/gdb/configure b/gdb/configure --- a/gdb/configure +++ b/gdb/configure -@@ -9594,10 +9594,12 @@ _ACEOF +@@ -9669,10 +9669,12 @@ _ACEOF @@ -28,7 +28,7 @@ diff --git a/gdb/configure b/gdb/configure diff --git a/gdb/configure.ac b/gdb/configure.ac --- a/gdb/configure.ac +++ b/gdb/configure.ac -@@ -837,10 +837,12 @@ AC_CHECK_SIZEOF(unsigned long long) +@@ -836,10 +836,12 @@ AC_CHECK_SIZEOF(unsigned long long) AC_CHECK_SIZEOF(unsigned long) AC_CHECK_SIZEOF(unsigned __int128) diff --git a/gdb-linux_perf-bundle.patch b/gdb-linux_perf-bundle.patch index 7d621dd..f5bcb6e 100644 --- a/gdb-linux_perf-bundle.patch +++ b/gdb-linux_perf-bundle.patch @@ -9,7 +9,7 @@ Subject: gdb-linux_perf-bundle.patch diff --git a/gdb/configure b/gdb/configure --- a/gdb/configure +++ b/gdb/configure -@@ -11973,7 +11973,7 @@ else +@@ -12048,7 +12048,7 @@ else #include #ifndef PERF_ATTR_SIZE_VER5 @@ -21,14 +21,14 @@ diff --git a/gdb/configure b/gdb/configure diff --git a/gdb/configure.ac b/gdb/configure.ac --- a/gdb/configure.ac +++ b/gdb/configure.ac -@@ -1471,7 +1471,7 @@ else - AC_PREPROC_IFELSE(AC_LANG_SOURCE([[ +@@ -1470,7 +1470,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 --- a/gdb/gdb.c diff --git a/gdb-moribund-utrace-workaround.patch b/gdb-moribund-utrace-workaround.patch index 39a0c05..36f985c 100644 --- a/gdb-moribund-utrace-workaround.patch +++ b/gdb-moribund-utrace-workaround.patch @@ -14,7 +14,7 @@ Bug in FSF GDB exploited by the ptrace-on-utrace interaction. diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c -@@ -12008,6 +12008,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-rhbz795424-bitpos-20of25.patch b/gdb-rhbz795424-bitpos-20of25.patch index cae9ff7..e30b4ee 100644 --- a/gdb-rhbz795424-bitpos-20of25.patch +++ b/gdb-rhbz795424-bitpos-20of25.patch @@ -473,7 +473,7 @@ Content-Disposition: attachment; filename=bitpos-main.patch diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c --- a/gdb/aarch64-linux-nat.c +++ b/gdb/aarch64-linux-nat.c -@@ -740,7 +740,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 @@ -871,7 +871,7 @@ diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h --- 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); @@ -880,7 +880,7 @@ diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h 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 *, @@ -889,7 +889,7 @@ diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h const struct value_print_options *); struct value *ada_convert_actual (struct value *actual, -@@ -263,7 +263,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 *, @@ -1311,7 +1311,7 @@ diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c } return 0; } -@@ -6810,7 +6810,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, @@ -1320,7 +1320,7 @@ diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c CORE_ADDR addr2) { return ((gdbarch_has_global_breakpoints (target_gdbarch ()) -@@ -10897,7 +10897,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); @@ -1332,7 +1332,7 @@ diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h --- 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. */ @@ -1341,7 +1341,7 @@ diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h /* 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. */ @@ -1362,7 +1362,7 @@ diff --git a/gdb/c-lang.c b/gdb/c-lang.c const char *user_encoding, int force_ellipses, const struct value_print_options *options) { -@@ -667,7 +667,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 { @@ -1371,7 +1371,7 @@ diff --git a/gdb/c-lang.c b/gdb/c-lang.c /* Write the terminating character. */ for (i = 0; i < TYPE_LENGTH (type); ++i) -@@ -676,7 +676,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; @@ -1383,7 +1383,7 @@ diff --git a/gdb/c-lang.c b/gdb/c-lang.c diff --git a/gdb/c-lang.h b/gdb/c-lang.h --- a/gdb/c-lang.h +++ b/gdb/c-lang.h -@@ -84,7 +84,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 *, @@ -1392,7 +1392,7 @@ diff --git a/gdb/c-lang.h b/gdb/c-lang.h struct ui_file *, int, struct value *, const struct value_print_options *); -@@ -104,7 +104,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, @@ -1571,7 +1571,7 @@ diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c diff --git a/gdb/d-lang.h b/gdb/d-lang.h --- 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, @@ -1755,7 +1755,7 @@ diff --git a/gdb/f-lang.c b/gdb/f-lang.c diff --git a/gdb/f-lang.h b/gdb/f-lang.h --- 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 *); @@ -1856,7 +1856,7 @@ diff --git a/gdb/findvar.c b/gdb/findvar.c diff --git a/gdb/frame.c b/gdb/frame.c --- a/gdb/frame.c +++ b/gdb/frame.c -@@ -1398,7 +1398,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, @@ -1865,7 +1865,7 @@ diff --git a/gdb/frame.c b/gdb/frame.c int *optimizedp, int *unavailablep) { struct gdbarch *gdbarch = get_frame_arch (frame); -@@ -1427,7 +1427,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: " @@ -2122,7 +2122,7 @@ diff --git a/gdb/gnu-v3-abi.c b/gdb/gnu-v3-abi.c diff --git a/gdb/go-lang.h b/gdb/go-lang.h --- 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, @@ -2158,7 +2158,7 @@ diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c diff --git a/gdb/language.c b/gdb/language.c --- 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, @@ -2167,7 +2167,7 @@ diff --git a/gdb/language.c b/gdb/language.c 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, @@ -2179,7 +2179,7 @@ diff --git a/gdb/language.c b/gdb/language.c diff --git a/gdb/language.h b/gdb/language.h --- 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, @@ -2188,7 +2188,7 @@ diff --git a/gdb/language.h b/gdb/language.h 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, @@ -2237,7 +2237,7 @@ diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c diff --git a/gdb/m2-lang.h b/gdb/m2-lang.h --- 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); @@ -2550,7 +2550,7 @@ diff --git a/gdb/p-lang.c b/gdb/p-lang.c diff --git a/gdb/p-lang.h b/gdb/p-lang.h --- 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 *); @@ -2559,7 +2559,7 @@ diff --git a/gdb/p-lang.h b/gdb/p-lang.h 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 @@ -2613,7 +2613,7 @@ diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c -@@ -1705,7 +1705,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, @@ -2658,35 +2658,34 @@ diff --git a/gdb/procfs.c b/gdb/procfs.c diff --git a/gdb/regcache.c b/gdb/regcache.c --- a/gdb/regcache.c +++ b/gdb/regcache.c -@@ -784,7 +784,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 (); -@@ -813,7 +813,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 (); -@@ -850,7 +850,8 @@ regcache::write_part (int regnum, int offset, int len, + 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); -@@ -859,7 +860,7 @@ readable_regcache::raw_read_part (int regnum, int offset, int len, gdb_byte *buf +@@ -943,7 +943,7 @@ readable_regcache::raw_read_part (int regnum, int offset, int len, /* See regcache.h. */ void @@ -2695,8 +2694,8 @@ diff --git a/gdb/regcache.c b/gdb/regcache.c const gdb_byte *buf) { assert_regnum (regnum); -@@ -867,7 +868,7 @@ regcache::raw_write_part (int regnum, int offset, int len, - } +@@ -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, @@ -2704,8 +2703,8 @@ diff --git a/gdb/regcache.c b/gdb/regcache.c gdb_byte *buf) { gdb_assert (regnum >= 0 && regnum < m_descr->nr_cooked_registers); -@@ -875,7 +876,7 @@ readable_regcache::cooked_read_part (int regnum, int offset, int len, - } +@@ -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, @@ -2716,7 +2715,7 @@ diff --git a/gdb/regcache.c b/gdb/regcache.c diff --git a/gdb/regcache.h b/gdb/regcache.h --- a/gdb/regcache.h +++ b/gdb/regcache.h -@@ -233,8 +233,8 @@ public: +@@ -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. */ @@ -2727,7 +2726,7 @@ diff --git a/gdb/regcache.h b/gdb/regcache.h /* Make certain that the register REGNUM is up-to-date. */ virtual void raw_update (int regnum) = 0; -@@ -246,16 +246,16 @@ public: +@@ -257,8 +257,8 @@ public: enum register_status cooked_read (int regnum, T *val); /* Partial transfer of a cooked register. */ @@ -2738,17 +2737,16 @@ diff --git a/gdb/regcache.h b/gdb/regcache.h /* Read register REGNUM from the regcache and return a new value. This will call mark_value_bytes_unavailable as appropriate. */ - struct value *cooked_read_value (int regnum); +@@ -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. */ -@@ -312,11 +312,12 @@ public: +@@ -326,11 +326,12 @@ public: /* Partial transfer of raw registers. Perform read, modify, write style operations. */ @@ -2763,21 +2761,15 @@ diff --git a/gdb/regcache.h b/gdb/regcache.h const gdb_byte *buf); void supply_regset (const struct regset *regset, -@@ -350,13 +351,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 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -2790,7 +2782,7 @@ diff --git a/gdb/remote.c b/gdb/remote.c int insert_watchpoint (CORE_ADDR, int, enum target_hw_bp_type, struct expression *) override; -@@ -10407,7 +10407,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 @@ -2978,7 +2970,7 @@ diff --git a/gdb/target.c b/gdb/target.c static void default_rcmd (struct target_ops *, const char *, struct ui_file *); -@@ -3182,7 +3182,7 @@ target_fileio_read_stralloc (struct inferior *inf, const char *filename) +@@ -3180,7 +3180,7 @@ target_fileio_read_stralloc (struct inferior *inf, const char *filename) static int default_region_ok_for_hw_watchpoint (struct target_ops *self, @@ -3286,7 +3278,7 @@ diff --git a/gdb/valprint.c b/gdb/valprint.c 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, @@ -3316,7 +3308,7 @@ diff --git a/gdb/valprint.h b/gdb/valprint.h 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, @@ -3325,7 +3317,7 @@ diff --git a/gdb/valprint.h b/gdb/valprint.h 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, diff --git a/gdb-rhbz795424-bitpos-22of25.patch b/gdb-rhbz795424-bitpos-22of25.patch index dab442a..e02d3f1 100644 --- a/gdb-rhbz795424-bitpos-22of25.patch +++ b/gdb-rhbz795424-bitpos-22of25.patch @@ -123,7 +123,7 @@ diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c int can_do_single_step () override; -@@ -819,7 +819,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, @@ -384,7 +384,7 @@ diff --git a/gdb/remote.c b/gdb/remote.c int can_use_hw_breakpoint (enum bptype, int, int) override; -@@ -10336,7 +10336,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); @@ -393,7 +393,7 @@ diff --git a/gdb/remote.c b/gdb/remote.c putpkt (rs->buf); getpkt (&rs->buf, &rs->buf_size, 0); -@@ -10356,7 +10356,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, @@ -402,7 +402,7 @@ diff --git a/gdb/remote.c b/gdb/remote.c { CORE_ADDR diff = remote_address_masked (addr - start); -@@ -10385,7 +10385,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); @@ -526,7 +526,7 @@ diff --git a/gdb/target.c b/gdb/target.c static int default_region_ok_for_hw_watchpoint (struct target_ops *, CORE_ADDR, LONGEST); -@@ -3190,7 +3190,7 @@ default_region_ok_for_hw_watchpoint (struct target_ops *self, +@@ -3188,7 +3188,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, diff --git a/gdb-rhbz795424-bitpos-25of25.patch b/gdb-rhbz795424-bitpos-25of25.patch index f62d8da..de6a324 100644 --- a/gdb-rhbz795424-bitpos-25of25.patch +++ b/gdb-rhbz795424-bitpos-25of25.patch @@ -57,7 +57,7 @@ Content-Disposition: attachment; filename=f77-bounds.patch diff --git a/gdb/f-lang.h b/gdb/f-lang.h --- 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]; }; diff --git a/gdb-stale-frame_info.patch b/gdb-stale-frame_info.patch deleted file mode 100644 index b1dc173..0000000 --- a/gdb-stale-frame_info.patch +++ /dev/null @@ -1,75 +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: 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 ---- 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-vla-intel-fortran-strides.patch b/gdb-vla-intel-fortran-strides.patch index 8dd7b55..847c7cc 100644 --- a/gdb-vla-intel-fortran-strides.patch +++ b/gdb-vla-intel-fortran-strides.patch @@ -1038,7 +1038,7 @@ diff --git a/gdb/parse.c b/gdb/parse.c diff --git a/gdb/rust-exp.y b/gdb/rust-exp.y --- 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: { diff --git a/gdb.spec b/gdb.spec index f5ee03f..4fd3db7 100644 --- a/gdb.spec +++ b/gdb.spec @@ -18,7 +18,7 @@ Name: %{?scl_prefix}gdb # Freeze it when GDB gets branched -%global snapsrc 20180618 +%global snapsrc 20180624 # 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: 24%{?dist} +Release: 25%{?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 @@ -1040,6 +1040,9 @@ fi %endif %changelog +* 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). diff --git a/sources b/sources index 5cc77a6..23ef074 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ SHA512 (gdb-libstdc++-v3-python-7.1.1-20170526.tar.xz) = 3d540b99581ffa4cf2810bec979c9a01a1f8ce782b7c8efb46b40dd2421d60cdb0e52b53c5477c3e86a57957a2a14489f5c29dc53868738a1ef79e79cf76d0a1 SHA512 (v1.6.1.tar.gz) = c7c9c8ba78021fff3fde12a216f5729c6031114e5a727f49b7ff1a31c53b5ddba24d1b3aee252d8278ecd1fafe78a44ed059c12b9eb29eca33093e0720673468 -SHA512 (gdb-8.1.50.20180618.tar.xz) = dffafcfbec2bc8deb27c411451b7cacab21aeded6d1ca1b89c12fa292bcbb6007a0b4cea3604dcea737e5353e9c71c6c2ec111806145fd79d4e30c7662608b6d +SHA512 (gdb-8.1.50.20180624.tar.xz) = aaf9a9cb270f12b103d34e30fd5fcb180583a7b0fedeb05e3abf79762243abc9acfc168a770df20f81447c7641f44fb99fea7800fd25696fb8a2fde4b82171eb From bf87ff816c84416d47859bd2cb5dc1d617c43b5f Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Fri, 29 Jun 2018 19:32:31 -0400 Subject: [PATCH 15/16] Rebase to FSF GDB 8.1.50.20180629 (8.2pre). Remove pahole.py. Adjust handling of gdb-gdb.py. --- .gitignore | 2 +- _git_upstream_commit | 2 +- gdb-6.3-gstack-20050411.patch | 6 +- gdb-6.5-bz203661-emit-relocs.patch | 2 +- gdb-6.6-buildid-locate-rpm.patch | 14 ++-- gdb-6.6-buildid-locate.patch | 4 +- gdb-archer.patch | 93 +------------------------ gdb-attach-fail-reasons-5of5.patch | 4 +- gdb-bz533176-fortran-omp-step.patch | 4 +- gdb-fedora-libncursesw.patch | 12 ++-- gdb-jit-reader-multilib.patch | 4 +- gdb-linux_perf-bundle.patch | 4 +- gdb-rhbz795424-bitpos-20of25.patch | 54 +++++++------- gdb-rhbz795424-bitpos-22of25.patch | 2 +- gdb-vla-intel-fortran-strides.patch | 12 ++-- gdb-vla-intel-fortran-vla-strings.patch | 4 +- gdb.spec | 11 ++- sources | 2 +- 18 files changed, 77 insertions(+), 159 deletions(-) diff --git a/.gitignore b/.gitignore index 67d9856..a46c566 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /gdb-libstdc++-v3-python-7.1.1-20170526.tar.xz /v1.6.1.tar.gz -/gdb-8.1.50.20180624.tar.xz +/gdb-8.1.50.20180629.tar.xz diff --git a/_git_upstream_commit b/_git_upstream_commit index 7529270..bcd1724 100644 --- a/_git_upstream_commit +++ b/_git_upstream_commit @@ -1 +1 @@ -6706f7706241eda253d26ce4c927dd5bed4942a7 +fd1ae9058720aa2738cc4852647097dd89c2bb88 diff --git a/gdb-6.3-gstack-20050411.patch b/gdb-6.3-gstack-20050411.patch index 77cb3d0..37b09de 100644 --- a/gdb-6.3-gstack-20050411.patch +++ b/gdb-6.3-gstack-20050411.patch @@ -16,7 +16,7 @@ Subject: gdb-6.3-gstack-20050411.patch diff --git a/gdb/Makefile.in b/gdb/Makefile.in --- a/gdb/Makefile.in +++ b/gdb/Makefile.in -@@ -1731,7 +1731,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 @@ -25,7 +25,7 @@ diff --git a/gdb/Makefile.in b/gdb/Makefile.in transformed_name=`t='$(program_transform_name)'; \ echo gdb | sed -e "$$t"` ; \ if test "x$$transformed_name" = x; then \ -@@ -1780,7 +1780,25 @@ install-guile: +@@ -1784,7 +1784,25 @@ install-guile: install-python: $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(GDB_DATADIR)/python/gdb @@ -52,7 +52,7 @@ diff --git a/gdb/Makefile.in b/gdb/Makefile.in transformed_name=`t='$(program_transform_name)'; \ echo gdb | sed -e $$t` ; \ if test "x$$transformed_name" = x; then \ -@@ -1803,6 +1821,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.5-bz203661-emit-relocs.patch b/gdb-6.5-bz203661-emit-relocs.patch index 5ef4f39..75ca84f 100644 --- a/gdb-6.5-bz203661-emit-relocs.patch +++ b/gdb-6.5-bz203661-emit-relocs.patch @@ -9,7 +9,7 @@ Subject: gdb-6.5-bz203661-emit-relocs.patch diff --git a/gdb/symfile.c b/gdb/symfile.c --- 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.6-buildid-locate-rpm.patch b/gdb-6.6-buildid-locate-rpm.patch index 8972abe..d5ec4b0 100644 --- a/gdb-6.6-buildid-locate-rpm.patch +++ b/gdb-6.6-buildid-locate-rpm.patch @@ -703,7 +703,7 @@ diff --git a/gdb/config.in b/gdb/config.in diff --git a/gdb/configure b/gdb/configure --- a/gdb/configure +++ b/gdb/configure -@@ -748,6 +748,11 @@ PKGVERSION +@@ -749,6 +749,11 @@ CODESIGN_CERT HAVE_NATIVE_GCORE_TARGET TARGET_OBS subdirs @@ -715,7 +715,7 @@ diff --git a/gdb/configure b/gdb/configure GDB_DATADIR DEBUGDIR MAKEINFO_EXTRA_FLAGS -@@ -852,6 +857,7 @@ with_gdb_datadir +@@ -853,6 +858,7 @@ with_gdb_datadir with_relocated_sources with_auto_load_dir with_auto_load_safe_path @@ -723,7 +723,7 @@ diff --git a/gdb/configure b/gdb/configure enable_targets enable_64_bit_bfd enable_gdbcli -@@ -910,6 +916,11 @@ CCC +@@ -912,6 +918,11 @@ CCC CPP MAKEINFO MAKEINFOFLAGS @@ -735,7 +735,7 @@ diff --git a/gdb/configure b/gdb/configure YACC YFLAGS XMKMF' -@@ -1580,6 +1591,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 @@ -744,7 +744,7 @@ diff --git a/gdb/configure b/gdb/configure --with-libunwind-ia64 use libunwind frame unwinding for ia64 targets --with-curses use the curses library instead of the termcap library -@@ -1637,6 +1650,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. @@ -758,7 +758,7 @@ diff --git a/gdb/configure b/gdb/configure YACC The `Yet Another Compiler Compiler' implementation to use. Defaults to the first program found out of: `bison -y', `byacc', `yacc'. -@@ -6572,6 +6592,494 @@ _ACEOF +@@ -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; } @@ -1503,7 +1503,7 @@ diff --git a/gdb/event-top.c b/gdb/event-top.c diff --git a/gdb/symfile.h b/gdb/symfile.h --- 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.patch b/gdb-6.6-buildid-locate.patch index 6b41426..618f41a 100644 --- a/gdb-6.6-buildid-locate.patch +++ b/gdb-6.6-buildid-locate.patch @@ -979,7 +979,7 @@ diff --git a/gdb/corelow.c b/gdb/corelow.c diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo -@@ -19562,6 +19562,27 @@ information files. +@@ -19570,6 +19570,27 @@ information files. @end table @@ -1148,7 +1148,7 @@ diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c diff --git a/gdb/symfile.h b/gdb/symfile.h --- 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); diff --git a/gdb-archer.patch b/gdb-archer.patch index 73006be..dcb989c 100644 --- a/gdb-archer.patch +++ b/gdb-archer.patch @@ -17,7 +17,7 @@ tromey/python diff --git a/gdb/Makefile.in b/gdb/Makefile.in --- a/gdb/Makefile.in +++ b/gdb/Makefile.in -@@ -2098,6 +2098,12 @@ stamp-h: $(srcdir)/config.in config.status +@@ -2112,6 +2112,12 @@ stamp-h: $(srcdir)/config.in config.status CONFIG_LINKS= \ $(SHELL) config.status @@ -33,16 +33,15 @@ diff --git a/gdb/Makefile.in b/gdb/Makefile.in diff --git a/gdb/data-directory/Makefile.in b/gdb/data-directory/Makefile.in --- 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 \ @@ -311,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 diff --git a/gdb-attach-fail-reasons-5of5.patch b/gdb-attach-fail-reasons-5of5.patch index e1ecd3a..6842d18 100644 --- a/gdb-attach-fail-reasons-5of5.patch +++ b/gdb-attach-fail-reasons-5of5.patch @@ -68,7 +68,7 @@ diff --git a/gdb/config.in b/gdb/config.in diff --git a/gdb/configure b/gdb/configure --- a/gdb/configure +++ b/gdb/configure -@@ -15843,6 +15843,64 @@ cat >>confdefs.h <<_ACEOF +@@ -15854,6 +15854,64 @@ cat >>confdefs.h <<_ACEOF _ACEOF @@ -136,7 +136,7 @@ diff --git a/gdb/configure b/gdb/configure diff --git a/gdb/configure.ac b/gdb/configure.ac --- a/gdb/configure.ac +++ b/gdb/configure.ac -@@ -2047,6 +2047,10 @@ case $host_os in +@@ -2054,6 +2054,10 @@ case $host_os in esac AC_DEFINE_UNQUOTED(GDBINIT,"$gdbinit",[The .gdbinit filename.]) diff --git a/gdb-bz533176-fortran-omp-step.patch b/gdb-bz533176-fortran-omp-step.patch index ba1bceb..c42c458 100644 --- a/gdb-bz533176-fortran-omp-step.patch +++ b/gdb-bz533176-fortran-omp-step.patch @@ -30,7 +30,7 @@ debugging problem of GOMP outside of the scope of this Bug. diff --git a/gdb/infrun.c b/gdb/infrun.c --- a/gdb/infrun.c +++ b/gdb/infrun.c -@@ -6670,6 +6670,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) { @@ -47,7 +47,7 @@ diff --git a/gdb/infrun.c b/gdb/infrun.c /* We're doing a "next". Normal (forward) execution: set a breakpoint at the -@@ -6703,6 +6713,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-fedora-libncursesw.patch b/gdb-fedora-libncursesw.patch index 66c7b48..5037e29 100644 --- a/gdb-fedora-libncursesw.patch +++ b/gdb-fedora-libncursesw.patch @@ -12,7 +12,7 @@ https://bugzilla.redhat.com/show_bug.cgi?id=1270534 diff --git a/gdb/configure b/gdb/configure --- a/gdb/configure +++ b/gdb/configure -@@ -9382,6 +9382,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. @@ -20,7 +20,7 @@ diff --git a/gdb/configure b/gdb/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing waddstr" >&5 $as_echo_n "checking for library containing waddstr... " >&6; } if ${ac_cv_search_waddstr+:} false; then : -@@ -9406,7 +9407,7 @@ return waddstr (); +@@ -9417,7 +9418,7 @@ return waddstr (); return 0; } _ACEOF @@ -29,7 +29,7 @@ diff --git a/gdb/configure b/gdb/configure if test -z "$ac_lib"; then ac_res="none required" else -@@ -9480,6 +9481,7 @@ case $host_os in +@@ -9491,6 +9492,7 @@ case $host_os in esac # These are the libraries checked by Readline. @@ -37,7 +37,7 @@ diff --git a/gdb/configure b/gdb/configure { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 $as_echo_n "checking for library containing tgetent... " >&6; } if ${ac_cv_search_tgetent+:} false; then : -@@ -9504,7 +9506,7 @@ return tgetent (); +@@ -9515,7 +9517,7 @@ return tgetent (); return 0; } _ACEOF @@ -49,7 +49,7 @@ diff --git a/gdb/configure b/gdb/configure diff --git a/gdb/configure.ac b/gdb/configure.ac --- a/gdb/configure.ac +++ b/gdb/configure.ac -@@ -759,7 +759,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. @@ -59,7 +59,7 @@ diff --git a/gdb/configure.ac b/gdb/configure.ac if test "$ac_cv_search_waddstr" != no; then curses_found=yes -@@ -801,7 +802,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-jit-reader-multilib.patch b/gdb-jit-reader-multilib.patch index 6efe38a..2aa41c2 100644 --- a/gdb-jit-reader-multilib.patch +++ b/gdb-jit-reader-multilib.patch @@ -9,7 +9,7 @@ Subject: gdb-jit-reader-multilib.patch diff --git a/gdb/configure b/gdb/configure --- a/gdb/configure +++ b/gdb/configure -@@ -9669,10 +9669,12 @@ _ACEOF +@@ -9680,10 +9680,12 @@ _ACEOF @@ -28,7 +28,7 @@ diff --git a/gdb/configure b/gdb/configure diff --git a/gdb/configure.ac b/gdb/configure.ac --- a/gdb/configure.ac +++ b/gdb/configure.ac -@@ -836,10 +836,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-linux_perf-bundle.patch b/gdb-linux_perf-bundle.patch index f5bcb6e..c7533f7 100644 --- a/gdb-linux_perf-bundle.patch +++ b/gdb-linux_perf-bundle.patch @@ -9,7 +9,7 @@ Subject: gdb-linux_perf-bundle.patch diff --git a/gdb/configure b/gdb/configure --- a/gdb/configure +++ b/gdb/configure -@@ -12048,7 +12048,7 @@ else +@@ -12059,7 +12059,7 @@ else #include #ifndef PERF_ATTR_SIZE_VER5 @@ -21,7 +21,7 @@ diff --git a/gdb/configure b/gdb/configure diff --git a/gdb/configure.ac b/gdb/configure.ac --- a/gdb/configure.ac +++ b/gdb/configure.ac -@@ -1470,7 +1470,7 @@ else +@@ -1477,7 +1477,7 @@ else AC_PREPROC_IFELSE([AC_LANG_SOURCE([[ #include #ifndef PERF_ATTR_SIZE_VER5 diff --git a/gdb-rhbz795424-bitpos-20of25.patch b/gdb-rhbz795424-bitpos-20of25.patch index e30b4ee..85691f0 100644 --- a/gdb-rhbz795424-bitpos-20of25.patch +++ b/gdb-rhbz795424-bitpos-20of25.patch @@ -1401,30 +1401,6 @@ diff --git a/gdb/c-lang.h b/gdb/c-lang.h 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 ---- a/gdb/c-typeprint.c -+++ b/gdb/c-typeprint.c -@@ -968,7 +968,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 -@@ -1568,8 +1569,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 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -2794,7 +2770,7 @@ diff --git a/gdb/remote.c b/gdb/remote.c diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c --- 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, @@ -2803,7 +2779,7 @@ diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c 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 @@ -2970,7 +2946,7 @@ diff --git a/gdb/target.c b/gdb/target.c static void default_rcmd (struct target_ops *, const char *, struct ui_file *); -@@ -3180,7 +3180,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, @@ -3099,6 +3075,30 @@ diff --git a/gdb/tracepoint.h b/gdb/tracepoint.h 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 --- a/gdb/valarith.c +++ b/gdb/valarith.c diff --git a/gdb-rhbz795424-bitpos-22of25.patch b/gdb-rhbz795424-bitpos-22of25.patch index e02d3f1..5788c27 100644 --- a/gdb-rhbz795424-bitpos-22of25.patch +++ b/gdb-rhbz795424-bitpos-22of25.patch @@ -526,7 +526,7 @@ diff --git a/gdb/target.c b/gdb/target.c static int default_region_ok_for_hw_watchpoint (struct target_ops *, CORE_ADDR, LONGEST); -@@ -3188,7 +3188,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, diff --git a/gdb-vla-intel-fortran-strides.patch b/gdb-vla-intel-fortran-strides.patch index 847c7cc..941a9d0 100644 --- a/gdb-vla-intel-fortran-strides.patch +++ b/gdb-vla-intel-fortran-strides.patch @@ -1078,7 +1078,7 @@ diff --git a/gdb/rust-exp.y b/gdb/rust-exp.y diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c -@@ -1105,13 +1105,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; @@ -1095,7 +1095,7 @@ diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c if (noside == EVAL_SKIP) return value_from_longest (builtin_type (exp->gdbarch)->builtin_int, 1); -@@ -1200,7 +1198,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; @@ -1104,7 +1104,7 @@ diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c if (TYPE_NFIELDS (type) == 0) return; -@@ -1208,15 +1206,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) { @@ -1122,7 +1122,7 @@ diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c *high = value_as_long (value_field (range, i)); if (rust_inclusive_range_type_p (type)) -@@ -1234,7 +1231,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. */ @@ -1131,7 +1131,7 @@ diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c LONGEST high = 0; int want_slice = 0; -@@ -1332,7 +1329,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 @@ -1140,7 +1140,7 @@ diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c low = low_bound; if (low < 0) error (_("Index less than zero")); -@@ -1350,7 +1347,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; diff --git a/gdb-vla-intel-fortran-vla-strings.patch b/gdb-vla-intel-fortran-vla-strings.patch index f944945..980b94c 100644 --- a/gdb-vla-intel-fortran-vla-strings.patch +++ b/gdb-vla-intel-fortran-vla-strings.patch @@ -33,7 +33,7 @@ git diff --stat -p gdb/master...gdb/users/bheckel/fortran-vla-strings diff --git a/gdb/NEWS b/gdb/NEWS --- a/gdb/NEWS +++ b/gdb/NEWS -@@ -86,6 +86,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 @@ -1277,7 +1277,7 @@ diff --git a/gdb/testsuite/gdb.mi/mi-vla-fortran.exp b/gdb/testsuite/gdb.mi/mi-v diff --git a/gdb/typeprint.c b/gdb/typeprint.c --- 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"); } diff --git a/gdb.spec b/gdb.spec index 4fd3db7..94eb916 100644 --- a/gdb.spec +++ b/gdb.spec @@ -18,7 +18,7 @@ Name: %{?scl_prefix}gdb # Freeze it when GDB gets branched -%global snapsrc 20180624 +%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: 25%{?dist} +Release: 26%{?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 @@ -830,7 +830,7 @@ done %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}"'"))' @@ -1040,6 +1040,11 @@ fi %endif %changelog +* 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). diff --git a/sources b/sources index 23ef074..d1088ae 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ SHA512 (gdb-libstdc++-v3-python-7.1.1-20170526.tar.xz) = 3d540b99581ffa4cf2810bec979c9a01a1f8ce782b7c8efb46b40dd2421d60cdb0e52b53c5477c3e86a57957a2a14489f5c29dc53868738a1ef79e79cf76d0a1 SHA512 (v1.6.1.tar.gz) = c7c9c8ba78021fff3fde12a216f5729c6031114e5a727f49b7ff1a31c53b5ddba24d1b3aee252d8278ecd1fafe78a44ed059c12b9eb29eca33093e0720673468 -SHA512 (gdb-8.1.50.20180624.tar.xz) = aaf9a9cb270f12b103d34e30fd5fcb180583a7b0fedeb05e3abf79762243abc9acfc168a770df20f81447c7641f44fb99fea7800fd25696fb8a2fde4b82171eb +SHA512 (gdb-8.1.50.20180629.tar.xz) = 8950feb5f7a6fef41f6220aa01d93454ed0198b4c0e6fb021da4235b537fab46d46031593e251a6255d9e2a715f0f9174abdf068ee8fc3e1b0c99d60a5b75a95 From 57c3c609d3cb48f2661a8f293f8a93dfef4533a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 2 Jul 2018 14:02:14 +0200 Subject: [PATCH 16/16] Rebuilt for Python 3.7 --- gdb.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gdb.spec b/gdb.spec index 94eb916..f4749d6 100644 --- a/gdb.spec +++ b/gdb.spec @@ -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: 26%{?dist} +Release: 27%{?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 @@ -1040,6 +1040,9 @@ fi %endif %changelog +* 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.