QT debugger displays variables value as <optimized out typedef> & <not accessible>
I am using Qt Creator 3.0.1, based on Qt 5.2.1 (GCC 4.8.2, 64 bit) installed in Ubuntu 14.04LTS. When I debug my qt application, where few variables are volatile pointers, debugger shows the value as <optimized out typedef> & <not accessible>. I have to use volatile pointer because the driver which I was using returns volatile pointer. I was also trying to use the memory window, but no luck. Memory window shows the data as all zeros. Is there any way that i could get rid of this issue? please help me.