public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/gdb] gdb-17.2-rebase-f44: Backport upstream patch "Fix unittest.exp failure
Date: Sun, 28 Jun 2026 00:00:30 GMT [thread overview]
Message-ID: <178260483045.1.614236996591863358.rpms-gdb-adc0bf8d9d3b@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/gdb
Branch : gdb-17.2-rebase-f44
Commit : adc0bf8d9d3bf535a775016d2305ae737ebccc81
Author : Alexandra Hájková <ahajkova@redhat.com>
Date : 2022-01-11T12:32:00+01:00
Stats : +47/-0 in 5 file(s)
URL : https://src.fedoraproject.org/rpms/gdb/c/adc0bf8d9d3bf535a775016d2305ae737ebccc81?branch=gdb-17.2-rebase-f44
Log:
Backport upstream patch "Fix unittest.exp failure
due to 'set debuginfod' addition" (RHBZ 2024875, Tom Tromey).
---
diff --git a/_gdb.spec.Patch.include b/_gdb.spec.Patch.include
index 73fb942..219c84e 100644
--- a/_gdb.spec.Patch.include
+++ b/_gdb.spec.Patch.include
@@ -342,3 +342,7 @@ Patch082: gdb-rhbz2024875-expand-documentation-for-debuginfod.patch
#7811fa5995f gdb: add set/show commands for managing debuginfo
Patch083: gdb-rhbz2024875-set_show-for-managing-debuginfod.patch
+#Backport upstream commit from Tom Tromey
+#2a8f1f47446 Fix unittest.exp failure due to 'set debuginfod' addition
+Patch084: gdb-rhbz2024875-fix-unittest-failure.patch
+
diff --git a/_gdb.spec.patch.include b/_gdb.spec.patch.include
index b330e26..433d6be 100644
--- a/_gdb.spec.patch.include
+++ b/_gdb.spec.patch.include
@@ -81,3 +81,4 @@
%patch081 -p1
%patch082 -p1
%patch083 -p1
+%patch084 -p1
diff --git a/_patch_order b/_patch_order
index c5c891c..47559a9 100644
--- a/_patch_order
+++ b/_patch_order
@@ -81,3 +81,4 @@ gdb-rhbz2022177-dprintf-1.patch
gdb-rhbz2022177-dprintf-2.patch
gdb-rhbz2024875-expand-documentation-for-debuginfod.patch
gdb-rhbz2024875-set_show-for-managing-debuginfod.patch
+gdb-rhbz2024875-fix-unittest-failure.patch
diff --git a/gdb-rhbz2024875-fix-unittest-failure.patch b/gdb-rhbz2024875-fix-unittest-failure.patch
new file mode 100644
index 0000000..66f21d6
--- /dev/null
+++ b/gdb-rhbz2024875-fix-unittest-failure.patch
@@ -0,0 +1,37 @@
+From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Alexandra=20H=C3=A1jkov=C3=A1?= <ahajkova@redhat.com>
+Date: Tue, 11 Jan 2022 12:22:29 +0100
+Subject: gdb-rhbz2024875-fix-unittest-failure.patch
+
+;;Backport upstream commit from Tom Tromey
+;;2a8f1f47446 Fix unittest.exp failure due to 'set debuginfod' addition
+
+Fix unittest.exp failure due to 'set debuginfod' addition
+
+The 'set debuginfod' change caused a regression in unittest.exp:
+
+ Running selftest help_doc_invariants.
+ help doc broken invariant: command 'info set debuginfod' help doc first line is not terminated with a '.' character
+ help doc broken invariant: command 'set debuginfod' help doc first line is not terminated with a '.' character
+ help doc broken invariant: command 'show debuginfod' help doc first line is not terminated with a '.' character
+ Self test failed: self-test failed at ../../binutils-gdb/gdb/unittests/command-def-selftests.c:100
+
+This patch fixes the problem. I'm checking it in.
+
+diff --git a/gdb/debuginfod-support.c b/gdb/debuginfod-support.c
+--- a/gdb/debuginfod-support.c
++++ b/gdb/debuginfod-support.c
+@@ -390,11 +390,11 @@ _initialize_debuginfod ()
+ {
+ /* set/show debuginfod */
+ add_basic_prefix_cmd ("debuginfod", class_run,
+- _("Set debuginfod options"),
++ _("Set debuginfod options."),
+ &set_debuginfod_prefix_list, 0, &setlist);
+
+ add_show_prefix_cmd ("debuginfod", class_run,
+- _("Show debuginfod options"),
++ _("Show debuginfod option."),
+ &show_debuginfod_prefix_list, 0, &showlist);
+
+ /* set debuginfod on */
diff --git a/gdb.spec b/gdb.spec
index 8547789..24ec141 100644
--- a/gdb.spec
+++ b/gdb.spec
@@ -1144,6 +1144,10 @@ fi
%endif
%changelog
+* Tue Jan 11 2021 Alexandra Hájková - 11.1-8
+- Backport upstream patch "Fix unittest.exp failure due to 'set debuginfod' addition"
+ (RHBZ 2024875, Tom Tromey).
+
* Mon Jan 10 2021 Alexandra Hájková - 11.1-8
- Add -Wno-unused-function to --enable-gdb-build-warnings to prevent the build failure:
"../../gdb/c-exp.y:3455:1: error: 'void c_print_token(FILE*, int, YYSTYPE)'
reply other threads:[~2026-06-28 0:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178260483045.1.614236996591863358.rpms-gdb-adc0bf8d9d3b@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox