ptype

Print definition of type TYPE.

ptype TYPE

  • TYPE – May be a type name defined by typedef, or “struct STRUCT-TAG” or “class CLASS-NAME” or “union UNION-TAG” or “enum ENUM-TAG”.

The selected stack frame’s lexical context is used to look up the name. Contrary to “whatis”, “ptype” always unrolls any typedefs.

Examples:

  • ptype myVar
  • ptype class MyClass