Subject: Re: gdb/i386 problem
To: Patrick Welche <prlw1@newn.cam.ac.uk>
From: Brian C. Grayson <bgrayson@marvin.ece.utexas.edu>
List: netbsd-help
Date: 03/07/1999 17:33:30
On Sun, Mar 07, 1999 at 10:44:22PM +0000, Patrick Welche wrote:
> 
> (gdb) print lambda
> No symbol "lambda" in current context.
> (gdb) s
> 173           if(trial_lambda<0.1*lambda)
> 
> I think this means something is up with gdb 4.17 from i386-current, but I am
> obviously far from certain, and don't really know what to do next. (lambda
> is a double, and the first line of the function we're in at this stage says
> lambda=1). Any thoughts?

  Did you compile with optimization turned off (-O0, IIRC)?  If
not, it could be that gcc optimized lambda away or similar
manipulations such that no symbol for lambda was emitted.

  You can also run "nm" on your executable to see if the lambda
symbol is in it.

  HTH.

  Brian