From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4344 invoked by alias); 1 Jun 2007 08:37:53 -0000 Received: (qmail 4334 invoked by uid 22791); 1 Jun 2007 08:37:52 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 01 Jun 2007 08:37:50 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Hu2de-0004By-Ji for gdb@sources.redhat.com; Fri, 01 Jun 2007 10:37:38 +0200 Received: from 73-198.umostel.ru ([82.179.73.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Jun 2007 10:37:38 +0200 Received: from ghost by 73-198.umostel.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 01 Jun 2007 10:37:38 +0200 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: tracing variables - is it ok? Date: Fri, 01 Jun 2007 08:37:00 -0000 Message-ID: References: <465FD1AD.9040909@op.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.2 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00002.txt.bz2 Bogdan Slusarczyk wrote: > Hi everybody, suppose such code: > > void testB( int a ) { //a == 20 > int k = a; > } > void testA( int a ) { //a == 10 > int k = a; > testB( 20 ); > } > void main() { > testA( 10 ); > } > > Inside testA I did '-var-create - @ a' and inside testB '-var-update', > but gdb (6.3, 6.6) says that nothing changes and returns a==10 from > testA. This seems weird. Can you also print 'a' right after creating varobj, and right after -var-update, to make sure it's the problem with variable objects, and not with something else. Please do this test with gdb 6.6, or better yet, with CVS version. Thanks, Volodya