From a9375afe328f7d180c1dcc5fa23ab9be2e014784 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 28 Mar 2013 17:25:47 +0000 Subject: [PATCH] * typeprint.c (_initialize_typeprint): Improve type help text. --- gdb/ChangeLog | 2 ++ gdb/typeprint.c | 7 ++++--- 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 + * 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\ -- 2.7.4