ptype (gdb mode only)

Print the type declaration of the specified type, or the last value in history.

Syntax

ptype [name]

Parameters

name

Type for which you want the type declaration to be printed.

Description

This command prints a detailed description of a type, or the type of the last value in the command history.

This command is similar to whatis, but whatis prints just the name of the type.

Example

The following example applies if the command history contains the type String, but not the type bitfield.

(idb) 
					 ptype
type = String

(idb) 
					 ptype bitfield
type = void ()

See Also


Submit feedback on this help topic