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

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