Debugger variables are pseudovariables that exist within the debugger instead of within your program. They have the following uses:
Support some limited programming capabilities within the debugger command language
Allow you to examine and change various debugger options
Allow you to find out exactly what various debugger commands did
Debugger variables fall into one of the following categories:
User-defined variables |
You create these and can set them to a value of any type. |
Preference variables |
You modify these to change debugger behavior. You can only set a preference variable to a value that is valid for that particular variable. |
Display/state variables |
These variables display the parts of the current debugger state. You cannot modify them. |
You can delete and redefine the predefined debugger variables in the same way you define your own variables.
If you delete a predefined debugger variable, the debugger uses the default value for that variable.
The following commands deal specifically with debugger variables:
set [variable]
unset
help "variable"
The debugger variable name should not exist anywhere in your program, or you may confuse yourself about which of the occurrences you are actually dealing with. The predefined debugger variables all start with a dollar sign ($), to help avoid this confusion. It is strongly recommended that you follow the same practice. In a future release, all user-defined debugger variables will be required to start with a dollar sign.
If a debugger variable exists that shares a name with a program variable, and you print an expression involving that name, which of the two variables the debugger finds is undefined.
Copyright © 2001-2011, Intel Corporation. All rights reserved.