From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3888 invoked by alias); 17 May 2006 01:28:30 -0000 Received: (qmail 3879 invoked by uid 22791); 17 May 2006 01:28:29 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 17 May 2006 01:28:25 +0000 Received: from kahikatea.snap.net.nz (p202-124-112-146.snap.net.nz [202.124.112.146]) by viper.snap.net.nz (Postfix) with ESMTP id BB5057572EC; Wed, 17 May 2006 13:28:23 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 919A51D3550; Thu, 18 May 2006 13:28:07 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17515.52645.132594.285414@kahikatea.snap.net.nz> Date: Wed, 17 May 2006 01:43:00 -0000 To: Daniel Jacobowitz Cc: gdb-patches@sources.redhat.com, Vladimir Prus Subject: Re: [PATCH] -var-update [was Re: Variable objects: references formatting] In-Reply-To: <20060517004527.GA19347@nevyn.them.org> References: <17497.14121.225320.477428@farnswood.snap.net.nz> <200605041100.09748.ghost@cs.msu.su> <17497.43822.261192.673547@farnswood.snap.net.nz> <200605041610.16153.ghost@cs.msu.su> <17503.15435.371371.707494@farnswood.snap.net.nz> <20060515164605.GF28924@nevyn.them.org> <17514.26047.918241.942848@farnswood.snap.net.nz> <20060517004527.GA19347@nevyn.them.org> X-Mailer: VM 7.19 under Emacs 22.0.50.12 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-05/txt/msg00372.txt.bz2 > > > Every time my_value_equal is called its first argument comes from a > > > varobj's ->value. It seems to me that if we want to properly know > > > whether the varobj has changed, we'd better have read its value into > > > GDB. > > > > Could it not doing that because GDB's value mechanism isn't working > > properly for references? > > The value mechanism is working fine; it's varobj that does not support > references. Well GDB appears to interpret the address as being the value, its actual value doesn't seem to be stored in the value structure (or if it is, I can't find it). When the actual value gets printed it seems to come out of smething like print_address_demangle. -- Nick http://www.inet.net.nz/~nickrob