This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]