Chapter 3: Loading and Executing Programs
Saving and Loading the CPU State
Saving and Loading the CPU State
State files are used to save the current CPU state (memory image, register
values, and program symbols) of a debug session. Though state files can only
be created from within a debugger/simulator session, you can use them to
restore a CPU state in either a debugger/simulator or debugger/emulator
session.
This section shows you how to:
•
•
To save the current CPU state
• Using the command line, enter:
Debugger Execution Save_State
Enter the name of the file in which the CPU state should be saved, and press
the < Return> key.
The current memory contents and register values are saved to the specified
file. If a file name is not specified, the default file name db68k.sav is used.
Examples
To save the current memory contents and register values in file "session1.sav":
Debugger Execution Save_State session1
104
Save the current CPU state.
Load a saved CPU state.