Hi,
The ELF file and the screenshot in the attached zip demonstrate the problem. Class Foo has member variable _a, but it is not shown by the debugger when stopping at main(). Even though the ELF file contains the debugging info about this variable (as can be seen by objdump --dwarf Test.out command).
The code was compiled for AM335x chip with GCC 4.8.1, no optimizations, strict DWARFv3 debugging info flags (the exact flags can also be seen in the objdump dwarf listing).
It should be said, that the problem, though frequently happening in my project, is quite sensitive and difficult for intentional reproduction. For example uniting the code of files Foo.cpp and Test.cpp disappears the bug. So making example reproducing the problem without any real source code of my project was quite difficult.
I would appreciate your assistance.
Best,
Vasili