From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22733 invoked by alias); 26 Jan 2005 15:03:06 -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 22701 invoked from network); 26 Jan 2005 15:03:01 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 26 Jan 2005 15:03:01 -0000 Received: from drow by nevyn.them.org with local (Exim 4.43 #1 (Debian)) id 1Ctoh6-0004Pe-R5; Wed, 26 Jan 2005 10:02:56 -0500 Date: Wed, 26 Jan 2005 15:03:00 -0000 From: Daniel Jacobowitz To: Toby White Cc: gdb@sources.redhat.com Subject: Re: No symbol "var" in current context Message-ID: <20050126150256.GA16939@nevyn.them.org> Mail-Followup-To: Toby White , gdb@sources.redhat.com References: <41F7AE4A.3010000@cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41F7AE4A.3010000@cam.ac.uk> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2005-01/txt/msg00130.txt.bz2 On Wed, Jan 26, 2005 at 02:50:50PM +0000, Toby White wrote: > I understand that there is no symbol "var" in current context. However: > is there a way to ask gdb "well, which symbols are in current context, > then?" > > Background - I'm using gdb with various Fortran compilers which have > useless debuggers (in this case, NAG, whose own debugger won't even read > corefiles) and these compilers use weird and wonderful name-mangling > systems. I suspect in several cases I'm getting the above error messages > not because the variable has been optimized away, but just because I'm > not clever enough to work out exactly how it's been name-mangled. Try "info locals". -- Daniel Jacobowitz