]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[PUSHED/OBVIOUS] ensure help set print type gives the correct help.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 20 Oct 2018 21:00:52 +0000 (23:00 +0200)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 20 Oct 2018 21:00:52 +0000 (23:00 +0200)
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
  ...

gdb/ChangeLog
gdb/typeprint.c

index c703922b1d90af63d001bdf6bb3858ae5b401e90..d3653d78cd09cd1d730779654e96e7053ee68a51 100644 (file)
@@ -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:
index 7a0b7627ed4519e211731a12e5428f8837427642..393d825fe5d95c4686ae6db6ff9ab6a38a5b9eb6 100644 (file)
@@ -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,
                           _("\