From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29690 invoked by alias); 15 Sep 2008 17:00:36 -0000 Received: (qmail 29682 invoked by uid 22791); 15 Sep 2008 17:00:35 -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; Mon, 15 Sep 2008 16:59:56 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 3C16410CED; Mon, 15 Sep 2008 16:59:54 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 0587210CEB; Mon, 15 Sep 2008 16:59:53 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1KfHQW-00048P-Ag; Mon, 15 Sep 2008 12:59:52 -0400 Date: Mon, 15 Sep 2008 17:00:00 -0000 From: Daniel Jacobowitz To: Peng Yu Cc: gdb@sourceware.org Subject: Re: no symbol in current context problem Message-ID: <20080915165952.GA15877@caradoc.them.org> Mail-Followup-To: Peng Yu , gdb@sourceware.org References: <366c6f340809150954p5e560b0dm590aaa976dfbc00e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <366c6f340809150954p5e560b0dm590aaa976dfbc00e@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-09/txt/msg00089.txt.bz2 On Mon, Sep 15, 2008 at 11:54:51AM -0500, Peng Yu wrote: > Hi, > > I have the following program. When I step in to test's constructor, I > would be able to print the variable three. It says > (gdb) n > 7 T three = 3; > (gdb) n > 8 std::cout << three << std::endl; > (gdb) p three > No symbol "three" in current context. > > I know that this is a bug has been reported before. But I'm wondering > if it is already fixed in the newest version of gdb. I believe it's a bug in GCC, not in GDB - try searching the GCC bugzilla. -- Daniel Jacobowitz CodeSourcery