diff --git a/_gdb.spec.Patch.include b/_gdb.spec.Patch.include index 01ac9c6..e9ebec3 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 debuginfod 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..012cc5a --- /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?= +Date: Sun, 31 Oct 2021 11:34:06 -0600 +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 +@@ -389,11 +389,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 options."), + &show_debuginfod_prefix_list, 0, &showlist); + + /* set debuginfod on */ diff --git a/gdb.spec b/gdb.spec index 19046a8..1badcd0 100644 --- a/gdb.spec +++ b/gdb.spec @@ -1143,11 +1143,15 @@ fi %endif %changelog -* Fri Jan 5 2022 Alexandra Hájková - 11.1-6 +* Wed Jan 5 2022 Alexandra Hájková - 11.1-6 +- Backport upstream patch "Fix unittest.exp failure due to 'set debuginfod' addition" + (RHBZ 2024875, Tom Tromey). + +* Wed Jan 5 2022 Alexandra Hájková - 11.1-6 - Backport upstream patch "gdb: add set/show commands for managing debuginfod" (RHBZ 2024875, Aaron Merey). -* Fri Jan 5 2022 Alexandra Hájková - 11.1-6 +* Wed Jan 5 2022 Alexandra Hájková - 11.1-6 - Backport upstream patch "gdb.texinfo: Expand documentation for debuginfod" (RHBZ 2024875, Aaron Merey).