Hardware Reference
In-Depth Information
Figure 3.38 CodeWarrior debugger screen after executing the first three instructions
The instruction to which the program counter is pointing at is darkened as shown in
Figure 3.41. Executing this command will also bring the instruction pointed to by the program
counter to the first line in the assembly window.
Set Breakpoint
To set a breakpoint at an instruction in the Source window, take the following actions:
1. Place the mouse cursor at the instruction in the source window.
2. Press the right mouse button to bring up the debugger command menu.
3. Select the Set Breakpoint command.
After these, a right-pointing red arrow will appear to the left of the instruction at the break-
point as shown in Figure 3.41. A breakpoint can be disabled. A disabled breakpoint will not
cause the program to stop. A disabled breakpoint can be re-enabled.
Show Location
Sometimes the user wants to find out the address of an instruction or a memory location
that contains data; she or he can use this command to move that location to the first line in
 
Search WWH ::




Custom Search