메인 콘텐츠로 건너뛰기
Knowledgebase
Home
Renesas Korea

Why is pointer value not correct as displayed in window?

Latest Updated:11/21/2008

Question:

The this pointer value is not correctly displayed in the watch window.

Answer:

The timing of the this pointer value is displayed in the watch window is as follows.

Example)

 	_func: 	STM.L 	(ER2-ER3),@-SP 	- (1)
		・・・ 		- (2)
		MOV.L 	ER0,ER3 	- (3)
		・・・

(1) The time of enter the function
the this pointer is 0xXXXXXXXX(ER0)

(2) The time of just after above
the this pointer is 0xXXXXYYYY(ER3)

(3) The time of storing the this pointer to ER3 in instruction execution "MOV.L ER0,ER3"
the this pointer is 0xXXXXXXXX(ER3)

From the time of enter the function - (1) to the time of storing the this pointer to ER3 - (3), the this pointer value is not displayed correctly.

Please check the this pointer value after (3) which displays correct on the watch window.

There is no problems as a generated code.

When you use a version of before than H8SX,H8S,H8 C/C++ Compiler Package V.6.02 Release 01, there is the case that the this pointer value is not displayed correctly for other reasons. Please use H8SX,H8S,H8 C/C++ Compiler Package V.6.02 Release 01.

Suitable Products
C/C++ Compiler Package for SuperH Family
C/C++ Compiler Package for H8SX, H8S, H8 Family