8 viewing program execution history [trace, Viewing program execution history [trace – FUJITSU CM71-00329-7E User Manual

Page 199

Advertising
background image

189

CHAPTER2 Dependence Functions

2.4.8

Viewing Program Execution History [Trace]

This section describes the trace function.

What is Trace

The function that records the program execution history is called "trace".

Trace data contains the following information, which is available for the analysis of the program execution

history.

History in which programs were executed: Only addresses before and after branch

Data accessed during program execution:

Only the specified attributes

Trace Functions

The emulator debugger (MB2100-01) has the following trace functions.

Trace trigger:

Stops acquiring trace data when the trace trigger hits.

Trace filter:

Acquires only the data with the specified attribute.

Forced start:

Forcibly starts acquiring trace data without stopping the execution of a user program
while trace data acquisition is stopped due to the hitting of the trace trigger.

Forced stop:

Forcibly ends acquiring trace data without stopping the execution of a user program
during acquisition of trace data.

Acquiring Trace Data

The trace data acquisition is started and ended at the following times.

The acquisition is started when:

- a user program has been executed; or

- the [Start] menu has been selected when a user program has been executed.

The acquisition is ended when:

- a user program has been stopped;

- the trace trigger has hit; or

- the [Abort] menu has been selected during trace data acquisition.

Trace Buffer

A place to store recorded data is called a "trace buffer".

Each unit of data stored in the trace buffer is called a "frame".

The trace buffer can contain up to 1,024 frames.

The trace buffer has a ring-like structure. If the trace buffer becomes full, it is automatically overwritten

from the beginning.

Advertising