summaryrefslogtreecommitdiff
path: root/gdb/typeprint.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-07-27 17:41:18 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-07-27 17:41:18 +0000
commit1dcd1d370a448bb69b901b79c06a1aa927c58683 (patch)
tree64fa331b59c7a1d9d6686c808d5df46b6f5c6261 /gdb/typeprint.c
parent49c026948157691b949769c8c3365d18cf74b319 (diff)
downloadgdb-1dcd1d370a448bb69b901b79c06a1aa927c58683.tar.gz
gdb/
* typeprint.c (_initialize_typeprint): Extend the help of "whatis" and "ptype" by their typedefs difference. gdb/testsuite/ * gdb.base/help.exp (help whatis): Update the expected string.
Diffstat (limited to 'gdb/typeprint.c')
-rw-r--r--gdb/typeprint.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index 03e633241c3..cf4158da9c0 100644
--- a/gdb/typeprint.c
+++ b/gdb/typeprint.c
@@ -316,8 +316,10 @@ _initialize_typeprint (void)
Print definition of type TYPE.\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\
-The selected stack frame's lexical context is used to look up the name."));
+The selected stack frame's lexical context is used to look up the name.\n\
+Contrary to \"whatis\", \"ptype\" always unrolls any typedefs."));
add_com ("whatis", class_vars, whatis_command,
- _("Print data type of expression EXP."));
+ _("Print data type of expression EXP.\n\
+Only one level of typedefs is unrolled. See also \"ptype\"."));
}