From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7250 invoked by alias); 17 May 2006 01:43:14 -0000 Received: (qmail 7242 invoked by uid 22791); 17 May 2006 01:43:14 -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, 17 May 2006 01:43:12 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FgB49-0005Sf-Ka; Tue, 16 May 2006 21:43:09 -0400 Date: Wed, 17 May 2006 03:39:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: gdb-patches@sources.redhat.com, Vladimir Prus Subject: Re: [PATCH] -var-update [was Re: Variable objects: references formatting] Message-ID: <20060517014309.GA20934@nevyn.them.org> Mail-Followup-To: Nick Roberts , gdb-patches@sources.redhat.com, Vladimir Prus 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> <17515.52645.132594.285414@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17515.52645.132594.285414@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes 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/msg00373.txt.bz2 On Thu, May 18, 2006 at 01:28:05PM +1200, Nick Roberts wrote: > 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). The contents are a _different_ value, that's the point - one without a reference type. coerce_ref converts the reference to its value. I do not quite understand why coerce_array is used; I suspect the contents of an array are checked via the children instead of the parent. coerce_array happens to also call coerce_ref. -- Daniel Jacobowitz CodeSourcery