Commit Graph

1219 Commits

Author SHA1 Message Date
Kevin Buettner
a27201b2a0 Remove gdb-6.5-missed-trap-on-step-test.patch 2023-12-04 14:55:15 -07:00
Kevin Buettner
83b6c4608d Fix bogus date complaint
Wed Oct 11 2022 -> Wed Oct 11 2023.
2023-11-28 12:59:52 -07:00
Andrew Burgess
c26c6b70cb Back-port upstream commits to fix non-consistent gdb-index creation
Backport upstream commits 1f0fab7ff86, aa19bc1d259, acc117b57f7,
aff250145af, and 3644f41dc80.  These commits reduce the size of the
generated gdb-index file, and also ensure that the gdb-index and
dwarf-5 index are generated consistently even as the number of worker
threads that GDB uses changes (RHBZ 2232086).

The first and third of these patches are refactoring, but are required
by the other patches in this series.

The second patch fixes a bug that causes the gdb-index files to
be (sometimes) bigger than needed.

The fourth and fifth patches ensure that the gdb-index and dwarf-5
index (respectively) are generated the same (for the same input
binary), regardless of how many worker threads that GDB uses.
2023-11-28 15:20:27 +00:00
Alexandra Hájková
52a4dabc57 Remove gdb-6.5-ia64-libunwind-leak-test.patch.
The patch doesn't include any actual fixes, the architecture
is end of life and the kernel is planning to drop IA64 support.
2023-10-19 16:09:06 +02:00
Guinevere Larsen
87ade3a000 Remove gdb-rhbz1186476-internal-error-unqualified-name-re-set-test.patch
The test was upstreamed back in 2010, but the final file has a different
name, so this was never removed:
https://sourceware.org/legacy-ml/gdb-patches/2010-06/msg00046.html
2023-10-11 16:25:55 +02:00
Kevin Buettner
f4fc320c3e Backport upstream commit for overly large gdb-index files
Backport upstream commit which prevents internal error when
generating an overly large gdb-index file.  (RHBZ 1773651, Kevin
Buettner.)
2023-10-02 16:42:52 -07:00
Alexandra Hájková
fec73092bb Backport upstream commit d28fbc7197b which fixes RHBZ 2233965 (
CVE-2022-48065).
2023-10-01 11:38:40 +02:00
Kevin Buettner
aca26db9ee Delete gdb-6.5-sharedlibrary-path.patch, which was upstreamed in
commit 3ec033fab4a.
2023-09-28 19:13:18 -07:00
Keith Seitz
52db67646d Remove gdb-rhbz1553104-s390x-arch12-test.patch
This patch adds an s390x/arch12 binary file to disassemble, checking
for the appearance of two arch12 insns. Remove this patch in favor
of binutil's version, which is much more complete with much more
coverage.
2023-09-19 09:24:27 -07:00
Alexandra Hájková
fb8a11ffe0 Bump release to 13.2-9. 2023-09-18 14:44:24 +02:00
Alexandra Hájková
a5080fa18b Backport upstream commit 8f2c64de86b which fixes RHBZ 2233961,
CVE-2022-48064, (Alan Modra).
2023-09-17 13:59:16 +02:00
Keith Seitz
ba3a754341 Fix %changelog dates 2023-09-15 10:54:10 -07:00
Keith Seitz
8a61e71975 Migrate to SPDX license expression 2023-09-15 09:25:16 -07:00
Andrew Burgess
22e4ee48ba Bump release. 2023-09-15 16:04:46 +01:00
Andrew Burgess
ed8eee7ab5 Backport upstream fix for RHBZ 2237392
Backport upstream commit 54392c4df604f20 to fix an incorrect
obstack allocation that wold lead to memory corruption (RHBZ 2237392).
2023-09-14 22:22:33 +01:00
Andrew Burgess
60fc6a1e0f Backport upstream fix for RHBZ 2237515
Backport upstream commit f96328accde1e63 to fix a potential double
free issue in the debuginfod code (RHBZ 2237515).
2023-09-13 15:31:17 +01:00
Guinevere Larsen
9a4f6d6e4c remove gdb-6.7-testsuite-stable-results.patch
That patch only changed gdb.base/fileio.{c|exp} tests, supposedly to
make them work better when running the test as root. However, that test
only increased the number of fails by 20
2023-08-09 09:31:00 +02:00
Kevin Buettner
7e349a389b Bump release. 2023-08-07 10:40:43 -07:00
Andrew Burgess
899498bb21 Backport upstream fix for RHBZ 2196395
Backport upstream commit f3eee5861743d635 to fix a crash triggered
when debuginfod makes use of particular openssl settings.
2023-08-03 09:29:19 +01:00
Fedora Release Engineering
a38bd61a55 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-19 20:54:50 +00:00
Python Maint
a5a4c9b4bc Rebuilt for Python 3.12 2023-07-07 22:44:43 +02:00
Andrew Burgess
dd38aa36ce Remove gdb-test-pid0-core.patch
The patch gdb-test-pid0-core.patch only contains a test.  A similar
test has been merged upstream in commit 8bcead69665, so I propose that
we drop this patch from Fedora, the test will be picked up next time
we rebase.
2023-07-04 14:29:08 +01:00
Mark Wielaard
2b402b25f4 Adjust gdb-add-index.patch to be silent about which gdb
Every invocation of gdb-add-index will print which possible
gdb command will be used. This is because the which command
always prints the name of the command found. Redirect both
stdout and stderr to /dev/null to suppress this when the
output isn't needed.
2023-07-01 18:31:16 +02:00
Kevin Buettner
d5dc87ea90 Suppress repeated warnings when loading a core file
Backport upstream changes which prevent repeated warnings from being
printed when loading a core file  (RHBZ 2160211, Lancelot SIX).
2023-06-30 15:20:10 -07:00
Python Maint
57b0ecded6 Rebuilt for Python 3.12 2023-06-28 19:04:31 +02:00
Alexandra Hájková
61b2b883ca Fix sources file. 2023-06-28 10:56:34 +02:00
Alexandra Hájková
b85c01223e Rebase to FSF GDB 13.2. 2023-06-25 16:05:18 +02:00
Python Maint
67cb8a0e81 Rebuilt for Python 3.12 2023-06-13 23:26:41 +02:00
Tomáš Hrnčiar
68fb4ae79f Hotpach rpm 4.19 soname version 2023-06-13 15:48:52 +02:00
Python Maint
dacd4f346f Bootstrap for Python 3.12 2023-06-13 15:18:09 +02:00
Kevin Buettner
f8c2813adc Merge #85 libipt no longer requires initialization 2023-06-08 23:36:15 +00:00
Keith Seitz
e0c46fa352 Remove gdb-testsuite-readline63-sigint-revert.patch
This patch was removed with the 10.2 rebase (commit 8594aea),
but appears to have been accidentally reintroduced with the 11.1 rebase
(commit 1f618b9).
2023-06-08 15:34:51 -07:00
Keith Seitz
dc392f53a2 libipt no longer requires initialization
Since commit d701c95bb9f6db652ada625023bf8bdf54750365, this initialization
patch has not been needed:

  commit d701c95bb9f6db652ada625023bf8bdf54750365
  Author: Markus Metzger <markus.t.metzger@intel.com>
  Date:   Mon Jan 30 17:30:44 2017 +0100

    libipt, init: remove library constructor

    Now that the instruction length decoder no longer needs initialization, we can
    remove the library's constructor.

    Change-Id: Ibaa43be9a8af6e4e4f3a78fd9c84b3589cf33e99
    Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>

I've verified that RHEL7 IPT still works.
2023-06-08 13:07:39 -07:00
Andrew Burgess
5f67b86ed1 Remove gdb-lineno-makeup-test.patch
An equivalent test has been merged upstream in this commit:

  commit ef56b006501ba52b128d4e5f36657ddbf56d22bc
  Date:   Wed May 17 15:14:15 2023 +0100

      gdb/testsuite: test for a function with no line table

As this is only a test there seems little point in backporting this
commit to Fedora -- we'll pick it up next time we rebase.  For now I
suggest that we drop this patch.
2023-05-20 10:24:29 +01:00
Andrew Burgess
f71aced2fd Remove gdb-ccache-workaround.patch
This patch adds a work around for an issue with older versions of
ccache -- the line number for macros defined at the compiler command
line was '1' instead of '0'.

Not only is this ccache issue fixed with newer versions of ccache, but
upstream GDB now disables ccache during testing, see commit:

  commit 49b4de64242d4ae035e0e2197837278e33c187fc
  Date:   Thu Sep 15 14:04:20 2016 +0200

      testsuite: Disable ccache

As a result this work around is no longer needed, and this patch can
be dropped.
2023-05-16 16:38:15 +01:00
Andrew Burgess
2a935aa29b Remove gdb-ppc-power7-test.patch
The test added by this patch claims to be a power7 test, however, it
actually appears to test instructions from power7, power8, and power9.

All the instructions tested by this patch are already tested by
upstream tests:

  gdb.arch/powerpc-power7.exp
  gdb.arch/powerpc-power8.exp
  gdb.arch/powerpc-power9.exp

As such this patch is redundant and can be removed.
2023-05-16 15:23:14 +01:00
Alexandra Hájková
7046f4cf6f Remove gdb-rhel5.9-testcase-xlf-var-inside-mod.patch
The patch adds gdb.fortran/xlf-variable.exp test,
the test can only be run on PPC64 machines which
are not supported anymore.
2023-05-06 18:28:28 +02:00
Kevin Buettner
6c805458b5 Restore changes which fix C89-isms in gdb-6.6-buildid-locate-rpm.patch
These changes, originally added to Fedora GDB by Keith Seitz, and
described in the Nov 30 2022 Changelog eentry, were inadvertently lost
during the GDB 13.1 rebase.  Only downstream/local changes were lost -
the remainder of the changes were in the upstream GDB 13.1 sources.
2023-05-04 13:40:32 -07:00
Andrew Burgess
e19c0f8fb7 Rewrite (and rename) gdb-libexec-add-index.patch
It has been observed that the changes added by
gdb-libexec-add-index.patch will result in GDB testing hanging when
the tests are being run using an in-tree GDB; that is when using 'make
check'.  One test that is known to fail is gdb.base/with-mf.exp,
though any test that calls the gdb-add-index.sh script will also hang.

The problem is that when the gdb-add-index.sh script is run, the GDB
testsuite passes the GDB command to use within the GDB environment
variable.  For in-tree testing this will be something like:

  GDB="/path/to/gdb -data-directory /path/to/data-directory"

Notice that the environment variable contains both an executable and
an argument.

Our changes to gdb-add-index.sh add this:

  GDB2=/usr/libexec/gdb
  if test -x $GDB2 && ! which $GDB &>/dev/null; then
      GDB=$GDB2
  fi

The problem then is that '-data-directory' is treated as a set of
options to 'which'.  Many of these options are not known to 'which',
but the '-i' option is known.  The documentation of '-i' says:

    --read-alias, -i
        Read aliases from stdin, reporting matching ones on
        stdout. This is useful in combination with using an alias for
        which itself. For example
        alias which=´alias | which -i´.

And here's the problem; this option causes 'which' to read from
stdin.  As the GDB testsuite doesn't send any additional input on
stdin then the which command will never complete, and the test will
hang.

The solution I think is to avoid calling 'which' like this on a user
supplied GDB environment variable.

The changes in the gdb-libexec-add-index.patch were really about what
the _default_ GDB executable should be.  The upstream version of this
script does this:

  GDB=${GDB:=gdb}

That is, the default is just 'gdb'.  However, for RH this is not good
enough.  We want to handle two additional cases, first, when only the
gdb-minimal package is installed, in which case the default should be
/usr/bin/gdb.minimal.  Then we also want to handle the case where the
user doesn't have 'gdb' itself in their $PATH, but does have the 'gdb'
executable installed in /usr/libexec/gdb.

The code as it currently stands also has a problem where, if
gdb.minimal is installed on the machine this will _always_ be used in
preference to the user supplied GDB value (assuming the code worked at
all) this means that when doing in-tree testing we wouldn't actually
be using the in-tree GDB to build the index, which isn't ideal.

So in this commit I propose that we rework our gdb-add-index.sh
changes.  Now, we only use the RH special values in the case that
there is no GDB environment variable set.  I believe this handles all
the required use cases:

  1. When doing in-tree testing GDB environment variable will be set,
  and this will always be used as is, with no special processing,

  2. When gdb-add-index.sh is used and GDB environment variable is not
  set then we will use the first of the following as the default:

    (a) /usr/bin/gdb.minimal if this file exists and is executable,
    (b) The first gdb executable that can be found in the $PATH,
    (c) /usr/libexec/gdb if this file exists and is executable.

While I was changing this patch anyway I've removed the libexec part
of the patch name -- this no longer seemed relevant, I suspect this
related to an older version of this patch.
2023-05-04 15:11:19 +01:00
Kevin Buettner
f68e769d70 Backport upstream fix for RHBZ 2192105
Specifically, "Pass const frame_info_ptr reference for
skip_[language_]trampoline". (Mark Wielaard, RHBZ 2192105, build/30413)
2023-05-03 13:32:42 -07:00
Andrew Burgess
7cd90204c9 Remove gdb-opcodes-clflushopt-test.patch
Remove gdb-opcodes-clflushopt-test.patch.  This patch tests that GDB
can disassemble the clflushopt instruction correctly.  Such
disassembly is a feature of libopcode and is covered by the gas
tests i386/x86-64-clflushopt.s and i386/clflushopt.s.  Lets remove
this test from GDB and just rely on the gas tests instead.
2023-05-02 19:15:44 +01:00
Kevin Buettner
b1e9fbcc29 Remove gdb-6.7-charsign-test.patch
This patch originally contained some changes to GDB which were
rejected by upstream maintainers.  All that remained was a testcase
which had a number of failures due to the rest of the work not being
present in GDB.
2023-04-29 19:34:05 -07:00
Bruno Larsen
231ea6585a Remove gdb-6.5-bz109921-DW_AT_decl_file-test.patch
This patch only had a test for basic DWARF-2 support, and the test was
already covered by other tests, such as gdb.linespec/linespec.exp
2023-04-25 14:14:49 +02:00
Bruno Larsen
d18c2a5bd9 Remove gdb-6.5-last-address-space-byte-test.patch
This patch exercised an edge case for 32-bit systems in
target_xfer_memory, a function that has been removed in 2006.
The test that patch added has been irrelevant for some time.
2023-04-24 15:48:54 +02:00
Alexandra Hájková
9dbae0620d Remove gdb-6.3-bz140532-ppc-unwinding-test.patch.
It adds powerpc-bcl-prologue.exp test which seems
to be a subset of upstream powerpc-prologue.exp
2023-04-13 12:22:36 +02:00
Keith Seitz
ff60ea4e26 Backport fix for binutils/29988 2023-04-11 10:32:14 -07:00
Keith Seitz
33590be3ac Backport "Fix crash in inside_main_func"
Resolves: rhbz#2183595
2023-03-31 13:14:15 -07:00
Keith Seitz
8293a5eab7 Use %patch -PNNN
The use of "%patchNNN" to apply patches is deprecated. "%patch -PNNN"
is recommended for maximum compatibility with older versions of `rpm'.

Regenerated all patches and associated files.
2023-03-31 09:53:54 -07:00
Kevin Buettner
45618ff785 Update description and Summary in gdb.spec 2023-03-30 10:01:25 -07:00
Alexandra Hájková
5b461b9481 Update gdb-6.6-buildid-locate.patch to fix RHBZ 2181221. 2023-03-30 16:20:10 +02:00