]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[gdb/tdep] Fix doc string of kvm pcb/proc command
authorTom de Vries <tdevries@suse.de>
Sat, 5 Jul 2025 11:29:53 +0000 (13:29 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 5 Jul 2025 11:29:53 +0000 (13:29 +0200)
On x86_64-freebsd, I ran into:
...
$ gdb -q -batch -ex "maint selftest help_doc_invariants"
Running selftest help_doc_invariants.
help doc broken invariant: command 'kvm pcb' help doc first line is not \
  terminated with a '.' character
Self test failed: self-test failed at command-def-selftests.c:120

Failures:
  help_doc_invariants

Ran 1 unit tests, 1 failed
...

Fix this by adding the missing terminating dot.

Likewise for the kvm proc command.

Tested on x86_64-freebsd.

gdb/bsd-kvm.c

index 5158fb6d02ed53b6d4c7789fd6696c5c8dc10d58..baffa76146ffc1806d4a3f8ca91534c556e2047d 100644 (file)
@@ -388,11 +388,11 @@ Generic command for manipulating the kernel memory interface."),
 
 #ifndef HAVE_STRUCT_THREAD_TD_PCB
   add_cmd ("proc", class_obscure, bsd_kvm_proc_cmd,
-          _("Set current context from proc address"), &bsd_kvm_cmdlist);
+          _("Set current context from proc address."), &bsd_kvm_cmdlist);
 #endif
   add_cmd ("pcb", class_obscure, bsd_kvm_pcb_cmd,
           /* i18n: PCB == "Process Control Block".  */
-          _("Set current context from pcb address"), &bsd_kvm_cmdlist);
+          _("Set current context from pcb address."), &bsd_kvm_cmdlist);
 
   /* Some notes on the ptid usage on this target.