
E8a Emulator Section 9 Applicable Tool Chain and Third-party Products
Section 9 Applicable Tool Chain and Third-party Products
With the M16C/62P and M16C/6N Group E8a emulator, you can debug modules created by the inhouse tool chain and
third-party tools listed in Table 9.1 below.
Table 9.1 Applicable Tool Chain and Third-party Tools
Tool chain M3T-NC30WA V.5.20 Release 01 or later
Third-party tools
TASKING M16C C/C++/EC++ Compiler V.2.3r1 or later
IAR EWM16C V.2.12 or later
Notes on debugging the load modules created in ELF/DWARF2 format:
If the load module was created in ELF/DWARF2 format using TASKING M16C C/C++/EC++ compiler V3.0r1, the
precautionary note described below must be observed when displaying member variables of the base class in the watch
window.
Precautionary Note:
If any class object with a base class is defined, the following problems may occur:
Case 1: Member variables of the base class cannot be referenced directly from the class object (*1).
Case 2: If the PC value resides in any member function of a derived class, member variables of the base class cannot
be referenced directly (*4).
Solution:
If member variables of the base class need to be referenced in the watch window, follow either method described
below:
Case 1: Use indirect references from the class object to refer to member variables of the base class (*2) (*3).
Case 2: Use indirect references from “this” pointer to refer to member variables of the base class (*5) (*6).
<Example code>
/////////////////////////////////////////////////////////
*.h
class BaseClass
{
public:
int m_iBase;
public:
BaseClass() {
m_iBase = 0;
}
void BaseFunc(void);
};
class DerivedClass : public BaseClass
{
public:
int m_iDerive;
public:
DerivedClass() {
m_iDerive = 0;
}
void DerivedFunc(void);
};
REJ10J1640-0400
Rev.4.00 Page 30 of 31
Apr 30, 2010
Commentaires sur ces manuels