When I debug my application with DS-5, the debug indicator doesn't point to correct instructions sometimes or jumps back. Some variables show unavailable, or show value later after one or two instructions.
No, I very much suspect that it is not!
It is not a bug in anything at all; it is perfectly normal behaviour for any debugger when working with any correctly optimised code!
The problem is not in the tools, but in the user's understanding (or lack thereof)
How do I turn off code optimization for debugging?
If you are using gcc, then -O0 will turn off optimizations. Here is a full list of gcc optimization options:
gcc.gnu.org/.../Optimize-Options.html
thanks, I see great improvement, but data struct variables are not updated often.