From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4653 invoked by alias); 24 May 2006 10:53:19 -0000 Received: (qmail 4642 invoked by uid 22791); 24 May 2006 10:53:18 -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, 24 May 2006 10:53:15 +0000 Received: from kahikatea.snap.net.nz (p319-tnt1.snap.net.nz [202.124.111.65]) by viper.snap.net.nz (Postfix) with ESMTP id C796A756AA1; Wed, 24 May 2006 21:58:42 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id C7DD61D3550; Wed, 24 May 2006 21:58:12 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17524.11825.529735.125245@kahikatea.snap.net.nz> Date: Thu, 25 May 2006 00:21:00 -0000 To: Daniel Jacobowitz , Vladimir Prus , gdb-patches@sources.redhat.com Subject: Re: [PATCH] -var-update In-Reply-To: <17519.63746.390090.274345@kahikatea.snap.net.nz> References: <17518.39336.538984.261434@kahikatea.snap.net.nz> <20060520144015.GA32035@nevyn.them.org> <17519.38740.887319.134411@kahikatea.snap.net.nz> <20060521021243.GB9432@nevyn.them.org> <17519.63746.390090.274345@kahikatea.snap.net.nz> X-Mailer: VM 7.19 under Emacs 22.0.50.13 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/msg00455.txt.bz2 > > Try calling coerce_ref in here: > > > > if (gdb_evaluate_expression (var->root->exp, &var->value)) > > { > > /* no error */ > > > > /* HERE */ > > > > release_value (var->value); > > if (value_lazy (var->value)) > > gdb_value_fetch_lazy (var->value); > > } > > else > > var->value = evaluate_type (var->root->exp); > > I've tried to follow this suggestion in the patch below,... Actually I don't think this can be quite right because if I have: int i; int& ri = i; and I do: -var-create - * ri I get: ^done,name="var1",numchild="0",type="int" when I really should have: ^done,name="var1",numchild="0",type="int &" -- Nick http://www.inet.net.nz/~nickrob