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

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