This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Cannot see local variables in C++ constructors
- From: Peter Wainwright <peter dot wainwright at ieee dot org>
- To: gdb at sourceware dot org
- Date: Fri, 20 Feb 2009 18:00:15 +0000
- Subject: Cannot see local variables in C++ constructors
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