
Section 8 Applicable Tool Chain and Partner Tools
With the M16C/62P and M16C/6N Groups E8 emulator, you can debug a module created by the inhouse tool chain and
third-party products listed in Table 8.1 below.
Table 8.1 Applicable Tool Chain and Partner Tools
Tool chain M3T-NC30WA V.5.20 Release 01 or later
Partner tools TASKING M16C C/C++/EC++ Compiler V.2.3r1 or later
IAR EWM16C V.2.12 or later
[Precautions 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
precaution described below must be observed when displaying member variables of the base class in the watch window.
<Precaution>
If any class object that has a base class is defined, the following problems may occur:
Case 1: Member variables of the base class cannot directly be referenced 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
directly be referenced (*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 program statement>
/////////////////////////////////////////////////////////
*.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);
};
29
Comentarios a estos manuales