Cannot see local variables in C++ constructors

Peter Wainwright peter.wainwright@ieee.org
Fri Feb 20 18:00:00 GMT 2009


I'm using gdb 6.8 with C++ code compiled by g++ 4.2.4 on Ubuntu 8.04.

I cannot print the value of local variables inside constructors (e.g. I
get 'No symbol "wire" in current context').  The code is compiled with
-g and NO optimization.

This symptom seems similar to
http://sourceware.org/bugzilla/show_bug.cgi?id=8246

But that's a really ancient bug (2003!): has anyone else seen this kind
of trouble recently?


Peter Wainwright



More information about the Gdb mailing list