This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Cannot see local variables in C++ constructors
- From: Daniel Jacobowitz <drow at false dot org>
- To: Peter Wainwright <peter dot wainwright at ieee dot org>
- Cc: gdb at sourceware dot org
- Date: Fri, 20 Feb 2009 13:06:29 -0500
- Subject: Re: Cannot see local variables in C++ constructors
- References: <1235152815.8484.4.camel@ceiriog.eclipse.co.uk>
On Fri, Feb 20, 2009 at 06:00:15PM +0000, Peter Wainwright wrote:
> 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?
It's probably http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27574
--
Daniel Jacobowitz
CodeSourcery