Commit Graph

1127 Commits

Author SHA1 Message Date
Keith Seitz
c09759de79 Disable Guile support on F38+
Resolves: rhbz#2151328
2022-12-07 12:03:23 -08:00
Keith Seitz
7e69ec9711 Remove several unnecessary test patches
- gdb-physname-pr11734-test.patch
- gdb-physname-pr12273-test.patch
These two tests were merged upstream under a different file name.

- gdb-runtest-pie-override.patch
This patch appears unnecessary today. I have tested on all supported
host architectures and detected no regressions. I presume this was
fixed in a different manner through the years.

- gdb-test-expr-cumulative-archer.patch
The patch contains two tests. Both are upstream already.
While one is a little more involved than what landed upstream,
both tests are equivalent. The other test, gdb.cp/namespace-no-imports.exp,
is identical to upstream's gdb.cp/nsnoimports.exp with whitespace
and other trivial changes.
2022-12-05 14:51:32 -08:00
Kevin Buettner
7ca61ebe91 Remove gdb-6.3-threaded-watchpoints2-20050225.patch
The test added by this patch from 2005 is a tweaked verion of the upstream
test gdb.threads/watchthreads.exp from 2004.  (The current version of
gdb.threads/watchthreads.exp has changed somewhat since 2004.)

The tweaks added to the circa 2004 upstream test consist of setting
a breakpoint on thread_function and then continuing to it.  At
that point, initial / runtime values of args[2] and args[3] are
fetched and saved in some TCL variables (which are renamed versions
of args_0 and args_1 in watchthreads.exp).  The rest of the changes
to the tweaked script are mostly related to the renaming related to
args_0 and args_1.  The other major difference is that watchthreads.exp
places hardware watchpoints on args[0] and args[1] whereas the
tweaked test instead watches args[2] and args[3].  However, all
of these initialized to 0.  In the tweaked test, fetching the
initial values when the thread function is first hit should result
in zero values being fetched for args[2] and args[3].

So, in conclusion, the tweaked version of the test doesn't actually
test anything new.  I took a look at old posts / threads from the
gdb-patches mailing list, but I couldn't find a post where Jeff
Johnston included this patch (and an explanation of what it does over
the other patch.)

Since this test doesn't offer anything new/better over what's already
upstream, I'm deleting it.
2022-12-01 19:20:12 -07:00
Bruno Larsen
46e82ad3b5 Remove gdb-rhbz1325795-framefilters-test.patch. This test doesn't
pass in the curret state, and the code that introduced the original
problem has been changed beyong recognition at this point.
2022-12-01 09:17:51 +01:00
Keith Seitz
910689b88d Updates for "ModernC" initiative
Resolves: rhbz#2143992
2022-11-29 14:19:51 -08:00
Kevin Buettner
3d614802ea Remove gdb-6.3-inheritancetest-20050726.patch. Upstream testcase
gdb.cp/impl-this.exp tests the printing of an instance variable from
an inherited class in the "print c" test.
2022-11-23 14:05:18 -07:00
Kevin Buettner
7de4cb0e83 Remove gdb-6.3-test-movedir-20050125.patch
Upstream test gdb.base/fullname.exp provides coverage for this case
and more.
2022-11-18 12:25:59 -07:00
Keith Seitz
73953d59d4 Constify target_desc and enable LTO
This patch backports the upstream commit to constify
target_desc. This eliminates the problems preventing us
from enabling LTO.
2022-11-03 06:40:16 -07:00
Bruno Larsen
eff447ffe1 backport fix to gdb.base/break-main-file-remove-fail 2022-10-18 12:10:01 +02:00
Bruno Larsen
89341dc865 remove gdb-6.3-test-dtor-fix, since it was upstreamed. 2022-10-18 10:46:33 +02:00
Alexandra Hájková
d6591abf53 Bump the release number. 2022-10-13 18:04:14 +02:00
Alexandra Hájková
e599c1296e gdb.spec: Fix the wrong date in a changelog. 2022-10-11 15:34:49 +02:00
Alexandra Hájková
c5ab349836 Backport upstream patch "Add support for readline 8.2". (Andreas Schwab) 2022-10-11 14:58:12 +02:00
Alexandra Hájková
267b55ff0e Update gdb-6.6-buildid-locate.patch to fix RHBZ 2122947. 2022-10-10 15:39:48 +02:00
Keith Seitz
a6e7b2b18f Disable -minimal RPM on RHEL9 GTS.
This patch disables the gdb-minimal package on GTS for RHEL9. Since
the -minimal package only exists to shrink the buildroot size and
we don't use GTS in the buildroot, there's no reason to build it.
2022-07-29 13:39:24 -07:00
Keith Seitz
fbba720a74 Fix s390x dependencies
Fedora doesn't build 32-bit s390x images.
There is no `fpc' package available for s390x, either.
2022-07-29 12:42:05 -07:00
Amit Shah
ddf8291871 Switch to using the dist_name macro for distribution
The new dist_vendor macro[1] in fedora-release helps simplify spec files
by removing the conditionals for populating the distro.

[1] https://src.fedoraproject.org/rpms/fedora-release/pull-request/223
2022-07-28 06:54:17 +00:00
Keith Seitz
b8b001a927 Use system elfutils for all GTS releases (rhel8+). 2022-07-26 18:13:53 +00:00
Keith Seitz
45e744e200 Add 'tests' definition.
Defining this option will iimit the tests performed with the "--with testsuite"
option:

$ rpmbuild -bb --with testsuite --define 'tests "gdb.base/break.exp gdb.dwarf2/*.exp"' \
   gdb.spec

The above will build the RPM with testing, but it will only test the listed tests
(just as if they were passed to TESTS="gdb.base/break.exp gdb.dwarf2/*.exp").
2022-07-26 18:08:52 +00:00
Fedora Release Engineering
0803f3fa54 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 04:14:36 +00:00
Python Maint
3b849ade04 Rebuilt for Python 3.11 2022-06-13 19:52:53 +02:00
Python Maint
e0417821a6 Bootstrap for Python 3.11 2022-06-13 12:33:21 +02:00
Keith Seitz
a896134f83 Typo: We require gmp-devel, not gpm-devel! 2022-06-07 09:48:09 -07:00
Keith Seitz
d959eac300 Add BuildRequires for gmp-devel. 2022-06-07 08:57:43 -07:00
Keith Seitz
c14e8367f2 Update for SCL and older RHEL releases. 2022-05-18 10:31:47 -07:00
Kevin Buettner
1f1906c4c7 Rebase to FSF GDB 12.1.
Update gdb-6.6-buildid-locate.patch.
Update gdb-6.6-buildid-locate-rpm.patch.
Dropped backported patches from GDB 11.1 and 11.2.
2022-05-13 10:30:05 -07:00
Keith Seitz
148a0e2e0a Clean up guile vs guile22 package names for RHEL. 2022-05-10 14:26:25 -07:00
Keith Seitz
8751d74736 Update gdb.spec for s390x cleanups/builddeps. 2022-05-05 13:11:47 -07:00
Kevin Buettner
d6ddcf6b62 Backport upstream patch for RHBZ 2068280. 2022-03-30 14:18:43 -07:00
Kevin Buettner
3410a513b2 On ix86, add -Wno-format-overflow to --enable-gdb-build-warnings.
(This is a workaround for the bogus warning/error that we now see
  on i686 regarding a "may write a terminating nul past the end of
  the destination" message for the sprintf() call in
  global_symbol_searcher::search() in gdb/symtab.c.)
2022-02-09 18:21:30 -07:00
Kevin Buettner
e6e68cd22d Rebase to FSF GDB 11.2. 2022-02-09 14:05:12 -07:00
Kevin Buettner
45ae8fcd2b Tweak changelog date in gdb.spec 2022-02-08 14:19:47 -07:00
Kevin Buettner
6a0ae4aca3 Fix "sect_index_data not initialized" internal error. (RHBZ 2042664,
Kevin Buettner).
2022-02-01 13:14:01 -07:00
Keith Seitz
994c1c4b69 Update libipt to v2.0.5. 2022-01-31 10:12:12 -08:00
Keith Seitz
5368b8a55e WIP for Fedora FTBS issues, rhbz#2042257 2022-01-26 12:35:31 -08:00
Fedora Release Engineering
af7adbba8b - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 04:02:24 +00:00
Alexandra Hájková
ea7e7acd00 Remove gdb-6.3-inferior-notification-20050721.patch
which adds problematic attach-32 test.
2022-01-12 12:23:55 +01:00
Alexandra Hájková
e4fab29564 Backport upstream patch "[PR gdb/27026] CTRL-C is ignored
when debug info is downloaded" (RHBZ 2024875, Aaron Merey).
2022-01-11 13:29:49 +01:00
Alexandra Hájková
d27f55e39a Backport upstream patch "rework "set debuginfod" commands"
(RHBZ 2024875, Simon Marchi).
2022-01-11 13:00:31 +01:00
Alexandra Hájková
adc0bf8d9d Backport upstream patch "Fix unittest.exp failure
due to 'set debuginfod' addition" (RHBZ 2024875, Tom Tromey).
2022-01-11 12:32:00 +01:00
Alexandra Hájková
f7bcd3d6e0 Add -Wno-unused-function to --enable-gdb-build-warnings to prevent the build failure 2022-01-10 15:07:42 +01:00
Alexandra Hájková
02309bbf2d Backport upstream patch "gdb: add set/show commands for managing debuginfod"
(RHBZ 2024875, Aaron Merey).
2022-01-10 13:58:04 +01:00
Alexandra Hájková
fd47e2fe66 Backport upstream patch "gdb.texinfo: Expand documentation for debuginfod
(RHBZ 2024875, Aaron Merey).
2022-01-10 13:17:44 +01:00
Kevin Buettner
08e6f457a2 Add -Wno-deprecated-declarations to --enable-gdb-build-warnings to work
around the python 3.11 deprecation of Py_SetProgramName.
2021-12-06 13:20:59 -07:00
Florian Weimer
8093dfb75d Fix typo in spec file 2021-11-19 19:01:12 +01:00
Timm Bäder
f2c0fdf050 Use %set_build_flags to populate all relevant build flags
This is what rpm's %configure macro does as well, which is not used in
the gdb build.
2021-11-12 14:00:03 +01:00
Kevin Buettner
8fedf35634 Backport upstream fix and test case for a dprintf bug (RHBZ 2022177) 2021-11-10 19:13:52 -07:00
Bruno Larsen
1c15f132e5 Backport manpage to be inline with -help
Resolves: RHBZ 853071
2021-11-09 14:17:00 -03:00
Kevin Buettner
76962235f8 Make adjustments to gdb-6.6-buildid-locate.patch, provided by Tom de Vries. 2021-11-03 14:55:27 -07:00
Kevin Buettner
39bde43193 Rebase to FSF GDB 11.1 2021-10-14 17:52:00 -07:00
Alexandra Hájková
002d745538 Backport test for RHBZ 1976887 (Kevin Buettner). 2021-09-30 13:15:28 +02:00
Alexandra Hájková
7051cf9b48 Backport upstream patch which fixes internal-error: Unexpected
type field location kind (RHBZ 1976887, Alexandra Hájková).
2021-09-30 13:11:52 +02:00
Bruno Larsen
170c3b942c Backport [gdb] Improve early exits for env var in debuginfod-support.c
(Tom de Vries)

Resolves: RHBZ 1970741
2021-09-23 15:25:14 -03:00
Bruno Larsen
4cf9f20b12 Backport [gdb/cli] Don't assert on empty string for core-file
(Tom de Vries)

Resolves: RHBZ 1916516
2021-09-23 15:24:45 -03:00
Peter Robinson
dedb76cf02 Use guile 2.2 (rhbz #1901353) 2021-09-21 23:07:18 +01:00
Fedora Release Engineering
8a5c84de70 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-21 23:54:12 +00:00
Kevin Buettner
0459b344e6 Remove autoconf invocations from spec file.
Remove BuildRequires: autoconf.
2021-07-20 21:57:59 -04:00
Kevin Buettner
71264766c5 Backport upstream patches which fix multi-threaded debugging for
glibc-2.34 (RHBZ 1971096, Simon Marchi, Kevin Buettner).
2021-06-14 23:24:14 -07:00
Kevin Buettner
8f22c5cbd3 Backport "Exclude debuginfo files from 'outside ELF segments' warning".
(Keith Seitz, RH BZ 1898252)
Backport "Fix crash when expanding partial symtab..."
  (Tom Tromey. gdb/27743)
Backport "[gdb/server] Don't overwrite fs/gs_base with -m32"
(Tom de Vries)
2021-06-14 14:51:25 -07:00
Python Maint
506c836503 Rebuilt for Python 3.10 2021-06-07 00:46:57 +02:00
Kevin Buettner
ca26ddfa99 Rebase to FSF GDB 10.2.
Drop gdb-6.3-test-pie-20050107.patch.
Drop gdb-6.3-test-self-20050110.patch.
Drop gdb-6.5-bz218379-ppc-solib-trampoline-test.patch.
Drop gdb-6.6-buildid-locate-core-as-arg.patch.
Drop gdb-6.8-quit-never-aborts.patch.
Drop gdb-archer-pie-addons-keep-disabled.patch.
Drop gdb-archer-pie-addons.patch.
Drop gdb-archer-vla-tests.patch.
Drop gdb-archer.patch.
Drop gdb-attach-fail-reasons-5of5.patch.
Drop gdb-btrobust.patch.
Drop gdb-bz1219747-attach-kills.patch.
Drop gdb-bz533176-fortran-omp-step.patch.
Drop gdb-dts-rhel6-python-compat.patch.
Drop gdb-gnat-dwarf-crash-3of3.patch.
Drop gdb-jit-reader-multilib.patch.
Drop gdb-moribund-utrace-workaround.patch.
Drop gdb-rhbz1930528-fix-gnulib-build-error.patch.
Drop gdb-rhbz1932645-aarch64-ptrace-header-order.patch.
Drop gdb-vla-intel-fix-print-char-array.patch.
Drop gdb-vla-intel-fortran-strides.patch.
Drop gdb-vla-intel-stringbt-fix.patch.
Drop gdb-vla-intel-tests.patch.
Drop process_psymtab_comp_unit-type-unit.patch.
Drop gdb-testsuite-readline63-sigint-revert.patch.
Drop gdb-config.patch.
Add following upstream patches for Fortran stride / slice support:
  gdb-rhbz1964167-convert-enum-range_type.patch
  gdb-rhbz1964167-fortran-array-slices-at-prompt.patch
  gdb-rhbz1964167-fortran-array-strides-in-expressions.patch
  gdb-rhbz1964167-fortran-clean-up-array-expression-evaluation.patch
  gdb-rhbz1964167-fortran-range_type-to-range_flag.patch
  gdb-rhbz1964167-fortran-whitespace_array.patch
  gdb-rhbz1964167-move-fortran-expr-handling.patch
2021-06-06 14:54:47 -07:00
Python Maint
6b2d2db242 Bootstrap for Python 3.10 2021-06-01 16:30:44 +02:00
Keith Seitz
0a3a5ea5a6 Backport "Save/restore file offset while reading notes in core file"
(Keith Seitz, RHBZ 1931344)

Resolves: RHBZ 1931344
2021-03-31 14:49:14 -07:00
Jonathan Wakely
9a3fa11c4d Rebuilt for removed libstdc++ symbols (#1937698) 2021-03-31 17:31:59 +01:00
Kevin Buettner
db92bd60db Remove spec file workaround for RHBZ 1912913. 2021-03-23 10:14:06 -07:00
Kevin Buettner
f293e66ec1 Fix potential hang during gdbserver testing (RHBZ 1941080, Kevin Buettner). 2021-03-19 15:25:12 -07:00
Keith Seitz
c7fa157806 Disable libctf on RHEL (RHBZ 1935517, Keith Seitz) 2021-03-18 15:12:01 -07:00
Kevin Buettner
5e056f9db9 Update libipt to version 2.0.4. 2021-03-11 10:15:26 -07:00
Kevin Buettner
cd8eacd152 Backport patches which fix frame_id_p assertion failure (RHBZ 1909902,
Pedro Alves).
2021-03-05 18:18:40 -07:00
Jan Kratochvil
6c6f63f3a8 Drop gdb-vla-intel-fortran-vla-strings.patch as it was still regressing the
testsuite.
2021-03-05 13:04:56 +01:00
Jan Kratochvil
0ba7f47499 Fix gdb-vla-intel-fortran-vla-strings.patch to no longer modify cached
inferior types.
2021-03-04 20:45:01 +01:00
Jan Kratochvil
de24db0eb7 Align gdb-vla-intel-fortran-vla-strings.patch more to upstream,
particularly whitespaces in Fortran types printing.
2021-03-04 20:43:11 +01:00
Jan Kratochvil
443e2a0c34 Reapply 10.1-8 after it has been accidentally reverted by 10.1-9. 2021-03-04 20:36:01 +01:00
Kevin Buettner
f923d71406 Fix aarch64 build problem (RHBZ 1932645, Kevin Buettner). 2021-02-24 14:25:14 -07:00
Jan Kratochvil
a1361a0b59 Fix gdb-vla-intel-fortran-vla-strings.patch for compatiblity with GraalVM. 2021-02-19 22:37:40 +01:00
Kevin Buettner
23564f9afb Fix gnulib related build problem (RHBZ 1930528, Kevin Buettner). 2021-02-18 23:16:16 -07:00
Kevin Buettner
ce991fb7c0 Fix libstdc++ assert when performing tab completion; build must be made
with -D_GLIBCXX_DEBUG flag in order to trigger assert (RHBZ 1912985,
  Kevin Buettner).
2021-02-17 18:28:52 -07:00
Keith Seitz
ff1b575a1d Disable Guile support for RHEL9+. 2021-02-11 12:21:44 -08:00
Stephen Gallagher
9cdc7613c9
Build gdb-minimal for ELN
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2021-01-26 10:57:06 -05:00
Fedora Release Engineering
048587f69b - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 06:27:43 +00:00
Kevin Buettner
0d98e10811 Add -Wno-stringop-overread to CFLAGS to work around gcc
bug (RH BZ 1912913)
2021-01-23 00:31:03 -05:00
Keith Seitz
04fc1c001a Disable xxhash support for RHEL. 2021-01-12 13:38:24 -08:00
Tom Stellard
4f6865e66b Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-05 00:50:30 +00:00
Kevin Buettner
61d59b7323 Fix off-by-one error in ada_fold_name. (RHBZ 1905996, Kevin Buettner) 2020-12-09 16:25:05 -07:00
Kevin Buettner
a8884a5be0 Bump release number to avoid lower NVR (for rawhide) than that of F33.
(RHBZ 1894912)
2020-12-07 16:03:37 -07:00
Kevin Buettner
ed8730b4d9 Rebase to FSF GDB 10.1.
Bump 'snapgnulib' date.
Drop gdb-rhbz1818011-bfd-gcc10-error.patch.
Drop gdb-rhbz1822715-fix-python-deprecation.patch.
Drop gdb-rhbz1829702-fix-python39.patch.
Drop gdb-rhbz1838777-debuginfod.patch.
Drop gdb-rhbz1844458-use-fputX_unfiltered.patch.
Drop gdb-rhbz1869484-deleted-working-directory.
Adjust build-id related patches.
Ajust VLA patches.
2020-11-05 14:17:24 -07:00
Keith Seitz
d7b61266b7 Sync w/Fedora 33 -- add missing patch:
gdb-rhbz1869484-deleted-working-directory
2020-11-02 12:38:45 -08:00
Keith Seitz
3ab415fc4a Fix "missing debuginfo" messages
Resolves: RHBZ 1887025
2020-11-02 11:05:13 -08:00
Keith Seitz
6aff62077b Disable LTO until upstream sorts out ODR problems. 2020-08-10 14:54:31 -07:00
Keith Seitz
ab7962ace7 Update libipt to v2.0.2. 2020-08-04 10:45:45 -07:00
Fedora Release Engineering
3c0f61139e - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 01:07:52 +00:00
Fedora Release Engineering
578aa401ab - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 18:22:27 +00:00
Tom Stellard
12a215835b Use make macros
https://fedoraproject.org/wiki/Changes/UseMakeBuildInstallMacro
2020-07-22 00:54:13 +00:00
Jeff Law
50ea6a9154 - Fix broken configure tests compromised by LTO
- Add BuildRequires: autoconf
2020-07-21 00:15:20 -06:00
Troy Dawson
f9a00bf2a5 Minor conditional tweak for ELN
Signed-off-by: Troy Dawson tdawson@redhat.com
2020-07-08 16:27:20 +00:00
Keith Seitz
db493ec1a2 Add debuginfod support. 2020-06-17 10:35:49 -07:00
Keith Seitz
b2003eae67 Rebase to FSF GDB 9.2 and fix a bunch of issues. 2020-06-09 07:54:16 -07:00
Keith Seitz
28b99d9981 Fix python build and re-enable it.
(RH BZ 1829702, Kevin Buettner and Keith Seitz)
2020-06-05 15:45:45 -07:00
Miro Hrončok
a6ec4e0365 Disable Python support to workaround problems with Python 3.9 (RHBZ 1829702) 2020-05-21 23:27:31 +02:00
Kevin Buettner
c54196c27b Fix build breakage of gdb/python/python.c due to use of deprecated
Python function (RHBZ 1822715, Kevin Buettner)
2020-04-16 05:49:13 -07:00