whatis

Print the type of a variable.

Syntax

whatis expr

Parameters

expr

The expression whose type you want to print. The expression can be a normal language expression or the name of a type, function, or other language entity.

Description

This command prints the type of a variable.

You can print information about the basic nature of an expression. The debugger shows you information about the entity rather than evaluating it. However, it will evaluate any contained expressions, such as pointers, needed to determine the entity to which you are referring.

Example

The following example uses the whatis command to determine the storage representation for the data member _classification:

(idb) whatis sun->_classification
const enum StellarClass Star::_classification 
(idb) whatis StellarClass  
enum StellarClass {O, B, A, F, G, K, M, R, N, S} 
(idb) print sun->_classification  
G 

Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.