I am trying to debug some data that is held within a reference on the stack. However, I am not able to see the content of it in ozone. In my production project I get "<outofscope>" in the location. In the minimal example shown below I get the correct address, size and type; however I don't get any values displayed:
OS: Windows 10 1909
Compiler: ARMCC 6.6.3 with -O0
Target: LPC1768
Ozone Version: 3.22e
The example code:
C: Main.cpp
//disable heap
__asm(".global __use_no_heap\n\t");
//disable argv handling with ARMCC6 with -O0
__asm(".global __ARM_use_no_argv\n\t");
struct Foo
{
int MyInt;
bool MyBool;
Foo() : MyInt(0), MyBool(false) {}
};
class Bar
{
public:
void doSomething()
{
auto& currentData = myContainer[0];
currentData.MyBool = !currentData.MyBool;
currentData.MyInt++;
}
private:
Foo myContainer[2];
};
extern "C" int main(void)
{
Bar bar;
while(true)
{
bar.doSomething();
}
return 0;
}
Display More