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

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