From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8760 invoked by alias); 20 Feb 2009 18:06:40 -0000 Received: (qmail 8750 invoked by uid 22791); 20 Feb 2009 18:06:39 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 20 Feb 2009 18:06:33 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 72BC1107FA; Fri, 20 Feb 2009 18:06:30 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 5E6DF105BB; Fri, 20 Feb 2009 18:06:30 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1LaZld-0002FC-Re; Fri, 20 Feb 2009 13:06:29 -0500 Date: Fri, 20 Feb 2009 18:06:00 -0000 From: Daniel Jacobowitz To: Peter Wainwright Cc: gdb@sourceware.org Subject: Re: Cannot see local variables in C++ constructors Message-ID: <20090220180629.GA8606@caradoc.them.org> Mail-Followup-To: Peter Wainwright , gdb@sourceware.org References: <1235152815.8484.4.camel@ceiriog.eclipse.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1235152815.8484.4.camel@ceiriog.eclipse.co.uk> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00137.txt.bz2 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