From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25184 invoked by alias); 22 Feb 2005 20:53:34 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 25173 invoked from network); 22 Feb 2005 20:53:29 -0000 Received: from unknown (HELO legolas.inter.net.il) (192.114.186.24) by sourceware.org with SMTP; 22 Feb 2005 20:53:29 -0000 Received: from zaretski (tony01-5-201.inter.net.il [80.230.5.201]) by legolas.inter.net.il (MOS 3.5.6-GR) with ESMTP id DUS88944 (AUTH halo1); Tue, 22 Feb 2005 22:52:48 +0200 (IST) Date: Tue, 22 Feb 2005 20:56:00 -0000 From: "Eli Zaretskii" To: Paul Hilfinger Message-ID: <01c51920$Blat.v2.4$6faec620@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 CC: 999alfred@comcast.net, gdb@sources.redhat.com In-reply-to: <200502222015.j1MKFB1q017797@tully.CS.Berkeley.EDU> (message from Paul Hilfinger on Tue, 22 Feb 2005 12:15:11 -0800) Subject: Re: Still problems with gdb and nested functions. Reply-to: Eli Zaretskii References: <200502222015.j1MKFB1q017797@tully.CS.Berkeley.EDU> X-SW-Source: 2005-02/txt/msg00142.txt.bz2 > cc: gdb@sources.redhat.com > Date: Tue, 22 Feb 2005 12:15:11 -0800 > From: Paul Hilfinger > > > No symbol "k" in current context. > > I presume you have confirmed that k is actually there (since it is set > only from a constant, it could be folded away even without fancy > optimization). AFAIK, GCC never optimizes _anything_ under -O0, not even redundant register reloads. Anyway, the disassembly I posted shows that k does in fact exist and is stored on the stack, as expected.