I am using GDB in Kdevelop while trying to debug a C++ program compiled with g++.
Many times variables are optimized out by the compiler. However I am using the -O0 option to not optimize the code and have full debugging power. Are there other reasons why some variables are optimized out or switches maybe in Kdevelop???
p.s I have seen the other posts on the -O switch in experts exchange