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: 2.5.1 bug with local variables ??


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


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