Blame SOURCES/gdb-rhbz2024875-fix-unittest-failure.patch

a1b30c
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
a1b30c
From: =?UTF-8?q?Alexandra=20H=C3=A1jkov=C3=A1?= <ahajkova@redhat.com>
a1b30c
Date: Tue, 11 Jan 2022 12:22:29 +0100
a1b30c
Subject: gdb-rhbz2024875-fix-unittest-failure.patch
a1b30c
a1b30c
;;Backport upstream commit from Tom Tromey
a1b30c
;;2a8f1f47446 Fix unittest.exp failure due to 'set debuginfod' addition
a1b30c
a1b30c
Fix unittest.exp failure due to 'set debuginfod' addition
a1b30c
a1b30c
The 'set debuginfod' change caused a regression in unittest.exp:
a1b30c
a1b30c
    Running selftest help_doc_invariants.
a1b30c
    help doc broken invariant: command 'info set debuginfod' help doc first line is not terminated with a '.' character
a1b30c
    help doc broken invariant: command 'set debuginfod' help doc first line is not terminated with a '.' character
a1b30c
    help doc broken invariant: command 'show debuginfod' help doc first line is not terminated with a '.' character
a1b30c
    Self test failed: self-test failed at ../../binutils-gdb/gdb/unittests/command-def-selftests.c:100
a1b30c
a1b30c
This patch fixes the problem.  I'm checking it in.
a1b30c
a1b30c
diff --git a/gdb/debuginfod-support.c b/gdb/debuginfod-support.c
a1b30c
--- a/gdb/debuginfod-support.c
a1b30c
+++ b/gdb/debuginfod-support.c
a1b30c
@@ -390,11 +390,11 @@ _initialize_debuginfod ()
a1b30c
 {
a1b30c
   /* set/show debuginfod */
a1b30c
   add_basic_prefix_cmd ("debuginfod", class_run,
a1b30c
-                        _("Set debuginfod options"),
a1b30c
+                        _("Set debuginfod options."),
a1b30c
                         &set_debuginfod_prefix_list, 0, &setlist);
a1b30c
 
a1b30c
   add_show_prefix_cmd ("debuginfod", class_run,
a1b30c
-                       _("Show debuginfod options"),
a1b30c
+                       _("Show debuginfod option."),
a1b30c
                        &show_debuginfod_prefix_list, 0, &showlist);
a1b30c
 
a1b30c
   /* set debuginfod on */