You can save information about a debugging session and subsequently restore it.
When you save a session, the debugger saves the following information.
Source directory paths
Substitute source directory paths
Shared library substitution paths
Environment variables that you changed for a debug session
Debugger variables
Debuggee arguments
Breakpoints and watchpoints
In addition to enabling you to manually save a session, the debugger implicitly uses the following elements of the previous session's settings when you open the same debuggee without restarting the debugger:
code breakpoints
data breakpoints
environment variables
This is true whether you open the debuggee with the GUI or the file (gdb mode only) command. You can even use a recompiled debuggee, as long as its name and path are the same.
The debugger does not implicitly use these settings when you detach and reattach to the debuggee process, because it doesn’t recognize whether the process is the same debuggee.
Copyright © 2001-2011, Intel Corporation. All rights reserved.