
42
CHAPTER 2 DEPENDENCE FUNCTIONS
2.1.8 STUB FunctionThis section describes the STUB function which executes commands automatically when
the breakpoint hit occurs.
■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.
■Setting Method
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) processing
execution ends
Is there a command list
in breakpoint?
Re-execute (is NOBREAK
specified)?
Yes
Yes
No
No
Process a command list in
breakpoint (execute commands).
Execution stops
Execution restarts