info types (gdb mode only)

Print a description of types in the program.

Syntax

info types [REGEXP]

Parameters

REGEXP

A regular expression pattern to match.

Description

This command prints a description of types in your program.

If you specify REGEXP, the debugger prints a description of types whose names match the regular expression.

If you do not specify REGEXP, the debugger prints a description of all types.

The debugger matches each complete type name as though it is a complete line. For example, info type foo prints information on all types in the debuggee whose names include the string foo. However, info type ^foo$ prints information only for types whose complete name is foo.

This command is similar to ptype, but differs in that it does not print a detailed description.

Example

In the following example, the debugger prints a description of any types in the debuggee that match the regular expression w.

(idb) 
					  info type w  
All types matching regular expression "w":
 
File /site/test/src/x_info_symbols.cxx:
typedef int _Atomic_word;
typedef wchar_t wchar_t;
typedef wchar_t wchar_t;
typedef unsigned long wctype_t;
typedef unsigned int wint_t;
(idb) 
					 

See Also


Submit feedback on this help topic