summaryrefslogtreecommitdiff
path: root/gdb/typeprint.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-03-28 17:25:47 +0000
committerDoug Evans <dje@google.com>2013-03-28 17:25:47 +0000
commita9375afe328f7d180c1dcc5fa23ab9be2e014784 (patch)
tree0a14762aa2442cb00532b149ee72e99f35fb7e8e /gdb/typeprint.c
parent41245087227a1b3b1434cfd0799d3db95c6bffb8 (diff)
* typeprint.c (_initialize_typeprint): Improve type help text.
Diffstat (limited to 'gdb/typeprint.c')
-rw-r--r--gdb/typeprint.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index 2d5a6af4db..4e70593fec 100644
--- a/gdb/typeprint.c
+++ b/gdb/typeprint.c
@@ -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\