Re: [opensuse] Re: Odd behavior when printing a local variable in gdb



On Thursday 20 August 2009 00:35:51 Philipp Thomas wrote:
On Wed, 19 Aug 2009 14:52:18 +0200, you wrote:
Actually there seems to be a bug in gcc4.3 compiler not allowing to print
local variables from C++ constructors

To rule out that the compiler has simply optimized out the variable
compile the code with -O0 which will disable all optimizations. If the
variable is still invisible to gdb you should file a bug for gcc (see
the opensuse wiki for how to report gcc bugs).

Philipp

This bug has already been signaled to the gcc team and it seems to be
corrected in g++4.4

Bogdan
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx