8 stub function, Stub function – FUJITSU SOFTUNE F2 MC-16 User Manual

Page 56

Advertising
background image

42

CHAPTER 2 DEPENDENCE FUNCTIONS

2.1.8

STUB Function

This 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

Prog

ra

m

exe

c

u

tion

Advertising