Other Parts Discussed in Thread: EK-TM4C129EXL
Tool/software: Code Composer Studio
Hello,
J am using CCS Version: 6.1.2.00015 with the Sitara processor.
I re-write my code to improve it in C++ language, If I debug it, impossible to watch the content of a class.
My code:
1: childClass.cpp
class ChildClass
{
public:
ChildClass();
virtual ~ChildClass();
unsigned short value0;
unsigned short value1;
};
2: MasterClass.cpp (contains a childClass):
class MasterClass
{
public:
MasterClass();
virtual ~MasterClass();
unsigned short masterValue;
ChildClass m_child;
};
3: CppCall.cpp (main class, contain global masterClass):
MasterClass* m_pMaster; // global MasterClass* generate by a new (heap)
MasterClass m_pMasterPlat; // global Masterclass generate in the .bss segment (pInit zone)
void MainCall(unsigned short nAlStatus)
{
if (m_pMaster == NULL)
m_pMaster = new MasterClass(); // allocate it in the heap zone
m_pMaster->masterValue = 5;
m_pMasterPlat.masterValue = 10;
return 0; // breakpoint HERE
}
4:The watch résult after the breakPoint:
It's ok for the MasterClass generate in the .bss zone:
It's bad for the MasterClass generate by the new:
The Expressions Window:
Is there any options to enable the acces to this variables ?
In another post I find this reply: "If the full symbolic debug is turned on and the optimizer is off", so, in what sections these parameters are precisely located ?
Jm






