42
CHAPTER2 Dependence Functions
2.1.7 STUB FunctionThis section describes the STUB function which executes commands automatically
when the breakpoint hit occurs.
■Outline of STUB Function
The STUB function is supported so that a series of commands in the command list can automatically be
executed when a specified breakpoint is hit. The use of this function enables spot processing, such as
simple I/O simulation, external interrupt generation, and memory reprogramming, without changing the
main program. This function is effective only when the simulator debugger is used.
■How to set
The STUB function can be set by the following commands.
- Dialog
1. Breakpoint Set Dialog - [Code] tab
2. Breakpoint Set Dialog - [Data] tab
- Command
1.SET BREAK
2.SET DATABREAK
execution starts
Breakpoint is hit
Break (STUB) process ing
execution ends
Program execution
Is there a breakpoint
command list?
Re-execute (is no-break
specified)?
Execution
restarts
YES
YES
NO
NO
Process a breakpoint command lit
(execute commands).
Execution stops