aboutsummaryrefslogtreecommitdiff
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
parent41245087227a1b3b1434cfd0799d3db95c6bffb8 (diff)
downloadfsf-binutils-gdb-a9375afe328f7d180c1dcc5fa23ab9be2e014784.zip
fsf-binutils-gdb-a9375afe328f7d180c1dcc5fa23ab9be2e014784.tar.gz
fsf-binutils-gdb-a9375afe328f7d180c1dcc5fa23ab9be2e014784.tar.bz2
* typeprint.c (_initialize_typeprint): Improve type help text.
-rw-r--r--gdb/ChangeLog2
-rw-r--r--gdb/typeprint.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cfdb643..71e6170 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index 2d5a6af..4e70593 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\