This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: No symbol "var" in current context


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]