From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10610 invoked by alias); 29 Nov 2006 02:55:11 -0000 Received: (qmail 10595 invoked by uid 22791); 29 Nov 2006 02:55:10 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 29 Nov 2006 02:55:01 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1GpFb7-00031t-6d; Tue, 28 Nov 2006 21:54:57 -0500 Date: Wed, 29 Nov 2006 02:55:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: gdb-patches@sources.redhat.com Subject: Re: Variable objects laziness Message-ID: <20061129025457.GA11339@nevyn.them.org> Mail-Followup-To: Nick Roberts , gdb-patches@sources.redhat.com References: <17772.60058.228181.835591@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17772.60058.228181.835591@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00365.txt.bz2 On Wed, Nov 29, 2006 at 03:04:10PM +1300, Nick Roberts wrote: > Also -var-update only reports a change when the address changes and not the > value. Variable objects were broken before but in a different way (-var-assign > worked but -var-update always reported that the reference value had changed). Just so we're all on the same page, could you post a compilable test case? I don't need a dejagnu-ified one, just some C++. > I think a further call to coerce_array is needed and the output to -var-update > should look like: > > > -var-update --all-values var1 > ^done,changelist=[{name="var1",value="4",in_scope="true",type_chan ged="false"}] > > i.e the address shouldn't appear in the value field. Is that what it did before? I guess it's not surprising. -- Daniel Jacobowitz CodeSourcery