From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18242 invoked by alias); 14 Dec 2006 06:03:07 -0000 Received: (qmail 18230 invoked by uid 22791); 14 Dec 2006 06:03:05 -0000 X-Spam-Check-By: sourceware.org Received: from zigzag.lvk.cs.msu.su (HELO zigzag.lvk.cs.msu.su) (158.250.17.23) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 14 Dec 2006 06:02:58 +0000 Received: from Debian-exim by zigzag.lvk.cs.msu.su with spam-scanned (Exim 4.50) id 1GujgC-0003rf-Mr for gdb-patches@sources.redhat.com; Thu, 14 Dec 2006 09:02:53 +0300 Received: from localhost ([127.0.0.1] helo=ip6-localhost) by zigzag.lvk.cs.msu.su with esmtp (Exim 4.50) id 1Gujg6-0003rU-38; Thu, 14 Dec 2006 09:02:46 +0300 From: Vladimir Prus Subject: Re: [PATCH] Fix variable objects for references to pointers To: Nick Roberts , gdb-patches@sources.redhat.com Date: Thu, 14 Dec 2006 06:03:00 -0000 References: <17792.55489.274138.854508@kahikatea.snap.net.nz> User-Agent: KNode/0.10.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8Bit Message-Id: 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-12/txt/msg00188.txt.bz2 Nick Roberts wrote: > This is a RFA for the patch below to fix variable objects for references > to pointers as previously discussed.  I've moved the changes into > get_type_deref, as suggested by Vladimir, so that they appear in one > rather than four places. > > Currently get_type_deref dereferences once for a reference or a pointer. > All this patch does is dereference twice in the case of a references to a > pointer. Is there are testcase for this? - Volodya