This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: 2.5.1 bug with local variables ??
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Der Herr Hofrat <der dot herr at mail dot hofr dot at>
- Cc: gdb at sources dot redhat dot com
- Date: Sat, 31 Aug 2002 10:41:33 -0400
- Subject: Re: 2.5.1 bug with local variables ??
- References: <200208311211.g7VCBNk16923@hofr.at>
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