* typeprint.c (_initialize_typeprint): Improve type help text.
authorDoug Evans <dje@google.com>
Thu, 28 Mar 2013 17:25:47 +0000 (17:25 +0000)
committerDoug Evans <dje@google.com>
Thu, 28 Mar 2013 17:25:47 +0000 (17:25 +0000)
gdb/ChangeLog
gdb/typeprint.c

index cfdb643..71e6170 100644 (file)
@@ -1,5 +1,7 @@
 2013-03-28  Doug Evans  <dje@google.com>
 
+       * typeprint.c (_initialize_typeprint): Improve type help text.
+
        * python/python.c (finish_python_initialization): Provide suggestion
        for how to tell gdb to find its python files.
 
index 2d5a6af..4e70593 100644 (file)
@@ -684,9 +684,10 @@ _initialize_typeprint (void)
 
   c = add_com ("ptype", class_vars, ptype_command, _("\
 Print definition of type TYPE.\n\
-Usage: ptype[/FLAGS] TYPE-NAME | EXPRESSION\n\
-Argument may be a type name defined by typedef, or \"struct STRUCT-TAG\"\n\
-or \"class CLASS-NAME\" or \"union UNION-TAG\" or \"enum ENUM-TAG\".\n\
+Usage: ptype[/FLAGS] TYPE | EXPRESSION\n\
+Argument may be any type (for example a type name defined by typedef,\n\
+or \"struct STRUCT-TAG\" or \"class CLASS-NAME\" or \"union UNION-TAG\"\n\
+or \"enum ENUM-TAG\") or an expression.\n\
 The selected stack frame's lexical context is used to look up the name.\n\
 Contrary to \"whatis\", \"ptype\" always unrolls any typedefs.\n\
 \n\