public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] [gdb/testsuite] Fix layout next/prev/regs help message
@ 2020-02-24 11:31 Tom de Vries
  0 siblings, 0 replies; only message in thread
From: Tom de Vries @ 2020-02-24 11:31 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c9af65210c36aa0b5362b8ce2814ca8a5b09af92

commit c9af65210c36aa0b5362b8ce2814ca8a5b09af92
Author: Tom de Vries <tdevries@suse.de>
Date:   Mon Feb 24 12:30:48 2020 +0100

    [gdb/testsuite] Fix layout next/prev/regs help message
    
    With test-case gdb.gdb/unittest.exp, I run into:
    ...
    (gdb) maintenance selftest^M
       ...
    Running selftest help_doc_invariants.^M
    help doc broken invariant: command 'layout next' help doc first line is \
      not terminated with a '.' character^M
    help doc broken invariant: command 'layout prev' help doc first line is \
      not terminated with a '.' character^M
    help doc broken invariant: command 'layout regs' help doc first line is \
      not terminated with a '.' character^M
    Self test failed: self-test failed at help-doc-selftests.c:95^M
    ...
    
    Fix this by adding the missing '.' character.
    
    Build and reg-tested on x86_64-linux.
    
    gdb/ChangeLog:
    
    2020-02-24  Tom de Vries  <tdevries@suse.de>
    
    	* tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
    	commands layout next/prev/regs.

Diff:
---
 gdb/ChangeLog        | 5 +++++
 gdb/tui/tui-layout.c | 6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0a070dc..90c895a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2020-02-24  Tom de Vries  <tdevries@suse.de>
+
+	* tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
+	commands layout next/prev/regs.
+
 2020-02-22  Tom Tromey  <tom@tromey.com>
 
 	* dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index b2c47c0..9014889 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -1044,13 +1044,13 @@ Usage: layout prev | next | LAYOUT-NAME"),
 		  &layout_list, "layout ", 0, &cmdlist);
 
   add_cmd ("next", class_tui, tui_next_layout_command,
-	   _("Apply the next TUI layout"),
+	   _("Apply the next TUI layout."),
 	   &layout_list);
   add_cmd ("prev", class_tui, tui_prev_layout_command,
-	   _("Apply the previous TUI layout"),
+	   _("Apply the previous TUI layout."),
 	   &layout_list);
   add_cmd ("regs", class_tui, tui_regs_layout_command,
-	   _("Apply the TUI register layout"),
+	   _("Apply the TUI register layout."),
 	   &layout_list);
 
   add_cmd ("new-layout", class_tui, tui_new_layout_command,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-02-24 11:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-24 11:31 [binutils-gdb] [gdb/testsuite] Fix layout next/prev/regs help message Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).