 |
|
 |
RENESAS TOOL NEWS on July 16, 2004: RSO-E7-040716D
A Note on Using the E7 Emulator Software
--On Single-Step Execution of "for" Statements--
|
Please take note of the following problem in using the E7 emulator software:
- On single-step execution of "for" statements
- Versions Concerned
V.2.0.01, V.2.0.02, V.2.1.00, and V.2.3.01
- Description
Consider that a "for" statement in the C source level is converted to
the assembly level, and in the "for" statement exist such C source
lines that the information on the top line of a loop body is not
output to the *.x30 load module file in the assembly level.
If those C source lines are executed in step-in or step-over mode
in the High-performance Embedded Workshop, the execution does not terminate, so that the High-performance Embedded Workshop cannot
be managed further.
NOTE:
This problem arises only when any of the R8C/Tiny series MCUs is emulated.
Example 1: A portion of the MIX display in the C Source window of the debugger
---------------------------------------------------------------------
x = 0;
for(i=0; ;i++); <== If this line step-executed,
the problem arises.
0000E024 MOV.W #0H,-2H[FB] ; Line information of
"for" statement outputted.
0000E027 ADD.W #1H,-2H[FB] ; No line information
0000E02A JMP.B 0E027H ; Jump to address 0E027h
---------------------------------------------------------------------
Example 2: A portion of the MIX display in the C Source window of the debugger
---------------------------------------------------------------------
y = 0;
z = 1; <== If this line step-executed,
the problem arises.
0000E01B MOV.W #1H,-2H[FB] ; Line information of
the "z = 1;" statement
for(;;);
0000E01E JMP.B 0E01EH ; No line information;
looping in this address
---------------------------------------------------------------------
- Workaround
In the C source level, don't execute the C source lines concerned in step-in or step-over mode.
- Schedule of Fixing the Problem
We plan to fix this problem in our next release of the product.
|
 |