* typeprint.c (_initialize_typeprint): Improve type help text.

This commit is contained in:
Doug Evans 2013-03-28 17:25:47 +00:00
parent 4124508722
commit a9375afe32
2 changed files with 6 additions and 3 deletions

View 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.

View 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\