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

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