2.5.1 bug with local variables ??

Daniel Jacobowitz drow@mvista.com
Sat Aug 31 07:40:00 GMT 2002


On Sat, Aug 31, 2002 at 02:11:23PM +0200, Der Herr Hofrat wrote:
> 
> Hi !
> 
>  In the below gdb.log there are no local variables in fun2 (as reported by
>  info local) but p /x i2 still reports a value of 0x3f (see end of gdb.log) 
>  this happens to be the value from i1 in fun1 - should this not show up as 
> 
> (gdb) info local
> No locals.
> (gdb) p /x i2
> $2 = <value optimized out> 
> 
>  (relevant compil flags -O2 -gdwarf -g3 -ggdb3) 

Could you try something other than -gdwarf - -gdwarf-2 maybe?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gdb mailing list