Print the type of a variable.
whatis expr
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. |
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.
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
Copyright © 2001-2011, Intel Corporation. All rights reserved.