From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31316 invoked by alias); 20 Feb 2009 18:00:26 -0000 Received: (qmail 31293 invoked by uid 22791); 20 Feb 2009 18:00:25 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: sourceware.org Received: from smtpout.karoo.kcom.com (HELO smtpout.karoo.kcom.com) (212.50.160.34) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 20 Feb 2009 18:00:20 +0000 Received: from unknown (HELO ceiriog.eclipse.co.uk) ([91.84.184.140]) by smtpout.karoo.kcom.com with ESMTP; 20 Feb 2009 18:00:17 +0000 Received: from prw by ceiriog.eclipse.co.uk with local (Exim 4.69) (envelope-from ) id 1LaZfc-0002J4-Ai for gdb@sourceware.org; Fri, 20 Feb 2009 18:00:16 +0000 Subject: Cannot see local variables in C++ constructors From: Peter Wainwright To: gdb@sourceware.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 20 Feb 2009 18:00:00 -0000 Message-Id: <1235152815.8484.4.camel@ceiriog.eclipse.co.uk> Mime-Version: 1.0 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/msg00136.txt.bz2 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