This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] [PUSHED/OBVIOUS] ensure help set print type gives the correct help.


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

commit 4051d2d65a73f02cfd2baebf8803fe2880dbd76c
Author: Philippe Waroquiers <philippe.waroquiers@skynet.be>
Date:   Sat Oct 20 23:00:52 2018 +0200

    [PUSHED/OBVIOUS] ensure help set print type gives the correct help.
    
    Without this patch:
      (gdb) help set print type
      Generic command for setting how types print.
    
      List of show print type subcommands:
    
      show print type methods -- Set printing of methods defined in classes
      ...
    
    With this patch:
      (gdb) h set print type
      Generic command for setting how types print.
    
      List of set print type subcommands:
    
      set print type methods -- Set printing of methods defined in classes
      ...

Diff:
---
 gdb/ChangeLog   | 5 +++++
 gdb/typeprint.c | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c703922..d3653d7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2018-10-19  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+	* typeprint.c (_initialize_typeprint): Fix wrong prefixname arg
+	in add_prefix_cmd of set print type.
+
 2018-10-19  Tom Tromey  <tom@tromey.com>
 
 	PR tui/18388:
diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index 7a0b762..393d825 100644
--- a/gdb/typeprint.c
+++ b/gdb/typeprint.c
@@ -847,7 +847,7 @@ Only one level of typedefs is unrolled.  See also \"ptype\"."));
 		  &showprinttypelist, "show print type ", 0, &showprintlist);
   add_prefix_cmd ("type", no_class, set_print_type,
 		  _("Generic command for setting how types print."),
-		  &setprinttypelist, "show print type ", 0, &setprintlist);
+		  &setprinttypelist, "set print type ", 0, &setprintlist);
 
   add_setshow_boolean_cmd ("methods", no_class, &print_methods,
 			   _("\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]