info variables (gdb mode only)

Print names and types of all global variables.

Syntax

info variables [REGEXP]

Parameters

REGEXP
A regular expression.

Description

This command prints the names and types of all global and static variables matching REGEXP. If you do not inlcude the REGEXP parameter, this command prints all the names and types of all global and static variables.

Example

In the following example, the debugger prints the names and types of all global and static variables in the debuggee that match the regular expression [Aa]a*2.

(idb)  info variables [Aa]a*2
All variables matching regular expression "[Aa]a*2":
 
File x_info_symbols.cxx:
int Aa2a;
int aaa2;
(idb) 

Submit feedback on this help topic

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