
E8a Emulator User's Manual 5. Debugging
R20UT0541EJ0601 Rev.6.01 Page 67 of 124
Aug 25, 2011
5.3 Stopping Your Program
This section describes how you can halt execution of your application's code. This section describes how to stop the
program by setting an address match breakpoints at specific locations in your code.
5.3.1 Address Match Breakpoints
When you are trying to debug your program you will want to be able to stop the program running when it reaches a specific point
or points in your code. You can do this by setting the address match breakpoint on the line or instruction at which you want the
execution to stop. The following instructions will show you how to quickly set and clear address match breakpoint.
To set a PC breakpoint in the [Source] window
1.
Make sure that the [Disassembly] or [Source] window is open at the place you want to set a PC breakpoint.
2. Double-click in the event column at the line which you want the program to stop.
3 You will see a blue circle appear in the column to indicate that an address match breakpoint has been set.
Now when you run your program and it reaches the address at which you set the address match breakpoint, execution halts with
the message "BREAK CONDITION" displayed in the [Debug] sheet of the [Output] window, and the [Source] or [Disassembly]
window is updated with the address match breakpoint line marked with an arrow in the gutter.
Note: When a break occurs, the program stops just before it is about to execute the line or instruction at which you set an
address match breakpoint. If you choose Go or Step after stopping at the address match breakpoint, then the line
marked with an arrow will be the next instruction to be executed.
About address match breakpoints, see also section
5.4.13, Setting Break Conditions.
Comentarios a estos manuales