From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2693 invoked by alias); 14 Nov 2008 20:41:29 -0000 Received: (qmail 2581 invoked by uid 22791); 14 Nov 2008 20:41:28 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Nov 2008 20:40:29 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id F036A10C10; Fri, 14 Nov 2008 20:40:26 +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 E0D7A10999; Fri, 14 Nov 2008 20:40:26 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1L15Ss-0003VB-Ga; Fri, 14 Nov 2008 15:40:26 -0500 Date: Fri, 14 Nov 2008 20:41:00 -0000 From: Daniel Jacobowitz To: Koffee Lue Cc: gdb Subject: Re: Bug? GDB can't display c++ c'tor local variable. Message-ID: <20081114204026.GA13429@caradoc.them.org> Mail-Followup-To: Koffee Lue , gdb References: <8440576b0811141231u55336182p8e16563889f4143e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8440576b0811141231u55336182p8e16563889f4143e@mail.gmail.com> 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: 2008-11/txt/msg00118.txt.bz2 On Fri, Nov 14, 2008 at 03:31:11PM -0500, Koffee Lue wrote: > Hi, > > I found that GDB can't display local variables in a c++ constructor. > > Please see the testing code below. When I stepped into the c'tor, and > typed ''info lo'', gdb responded "No locals.", however `tmp' is a > local with type int. > > I searched on the web and somebody said it's a bug of gcc rather than > gdb. But that's for gcc 3.x years ago. (see: > http://gcc.gnu.org/ml/gcc-bugs/2007-08/msg00727.html) It was only just fixed. It's GCC PR debug/27574. -- Daniel Jacobowitz CodeSourcery