You can set and unset environment variables for processes you will create in the future, to set up an environment different from the environment of the debugger, and of the shell that invoked the debugger. After setting these environment variables, they apply to all subsequent new processes you debug.
The environment commands have no effect on the environment of any currently running process. The environment commands do not change or show the environment variables of the debugger or of the current process. They only affect the environment variables that will be used when a new process is created.
To print all the environment variables that are currently set, or any specific one, use one of the following commands:
show environment (gdb mode only)
export (idb mode only)
printenv (idb mode only)
setenv (idb mode only)
To add or change an environment variable, use one of the following commands:
set environment (gdb mode only)
export (idb mode only)
setenv (idb mode only)
To remove an environment variable, use one of the following commands:
unset environment (gdb mode only)
unsetenv (idb mode only)
There is no command to simply return to the initial state the environment variables had when the debugger started. You must use set and remove environment variables appropriately.
Copyright © 2001-2011, Intel Corporation. All rights reserved.