Fix unittest.exp failure due to 'set debuginfod' addition
authorTom Tromey <tom@tromey.com>
Sun, 31 Oct 2021 17:34:06 +0000 (11:34 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 31 Oct 2021 17:34:06 +0000 (11:34 -0600)
The 'set debuginfod' change caused a regression in unittest.exp:

    Running selftest help_doc_invariants.
    help doc broken invariant: command 'info set debuginfod' help doc first line is not terminated with a '.' character
    help doc broken invariant: command 'set debuginfod' help doc first line is not terminated with a '.' character
    help doc broken invariant: command 'show debuginfod' help doc first line is not terminated with a '.' character
    Self test failed: self-test failed at ../../binutils-gdb/gdb/unittests/command-def-selftests.c:100

This patch fixes the problem.  I'm checking it in.

gdb/debuginfod-support.c

index 097977cd45cddaea6c3d9fc3acde585b8f64bb43..a1269772b2e288c26c392156903a6f0ea187fdec 100644 (file)
@@ -406,8 +406,8 @@ _initialize_debuginfod ()
 {
   /* set/show debuginfod */
   add_setshow_prefix_cmd ("debuginfod", class_run,
-                         _("Set debuginfod options"),
-                         _("Show debuginfod options"),
+                         _("Set debuginfod options."),
+                         _("Show debuginfod options."),
                          &set_debuginfod_prefix_list,
                          &show_debuginfod_prefix_list,
                          &setlist, &showlist);