title: error reading variable: Could not find the frame base
body: <p>I am using Clion IDe, with gcc/g++ &amp; gdb for debugger.</p>
  
  <p>In the CMakeList.txt, I have the following compiler options set.
  <code>
  set(CMAKE_CXX_FLAGS -std=c++11 -fopenmp -fPIC -O0 -gdwarf-2 -finline-functions)
  </code></p>
  
  <p>I can view the variable values in main() but not any other classes. It shows the error for all methods called from the main directly or nested : </p>
  
  <p><code>&lt;error reading variable: Could not find the frame base for xxxxclass::xxxMethod&gt;
  </code>
  Any pointer would be helpful.</p>