From 1dcd1d370a448bb69b901b79c06a1aa927c58683 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Wed, 27 Jul 2011 17:41:18 +0000 Subject: 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. --- gdb/typeprint.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gdb/typeprint.c') 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\".")); } -- cgit v1.2.1