Supported on windows
Supported on linux
Supported on embedded
Supported on android

info types command

Dislays the list of types defined in the currently loaded modules

Syntax

info types
info types [Regex]

Parameters

Regex
If specified, the info types command will list the types matching the regex. If omitted, the command wil list all types in all loaded modules (main program and shared libraries).

Remarks

Note that the symbols will only contain the types that are used by the program. The types that are declared but not referenced by any code will not be included.

Examples

We will demonstrate the use of the info types command using a basic C++ program:

class TestClass
{
public:
    class NestedClass
    {
    public:
        int DummyField;
    };
};

typedef int UnusedType, UsedType;

int main(int argc, char **argv)
{
    UsedType xxx;
    TestClass::NestedClass yyy;
    return 0;
}

Note that the UnusedType typedef is excluded from the output of the info types command because it was not referenced anywhere in the code:

(gdb) info types
All defined types:

File test.cpp:
TestClass;
TestClass::NestedClass;
typedef int UsedType;
typedef char;
typedef int;

Compatibility with VisualGDB

You can execute the info types command under VisualGDB using the GDB Session window in Visual Studio.

See also