From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7538 invoked by alias); 31 Aug 2002 14:40:32 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7531 invoked from network); 31 Aug 2002 14:40:31 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 31 Aug 2002 14:40:31 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17lAMQ-0000g0-00; Sat, 31 Aug 2002 10:40:30 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17l9RN-0001eY-00; Sat, 31 Aug 2002 10:41:33 -0400 Date: Sat, 31 Aug 2002 07:40:00 -0000 From: Daniel Jacobowitz To: Der Herr Hofrat Cc: gdb@sources.redhat.com Subject: Re: 2.5.1 bug with local variables ?? Message-ID: <20020831144133.GA6148@nevyn.them.org> Mail-Followup-To: Der Herr Hofrat , gdb@sources.redhat.com References: <200208311211.g7VCBNk16923@hofr.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200208311211.g7VCBNk16923@hofr.at> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-08/txt/msg00414.txt.bz2 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 = > > (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