From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9396 invoked by alias); 22 Sep 2011 23:42:22 -0000 Received: (qmail 9381 invoked by uid 22791); 22 Sep 2011 23:42:20 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Sep 2011 23:42:07 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1R6su6-0004uy-Ay from pedro_alves@mentor.com ; Thu, 22 Sep 2011 16:42:06 -0700 Received: from scottsdale.localnet ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 23 Sep 2011 00:42:04 +0100 From: Pedro Alves To: Jan Kratochvil Subject: Re: [patch 11/12] entryval#2: @entry values even for references Date: Fri, 23 Sep 2011 06:02:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.7.0; x86_64; ; ) Cc: gdb-patches@sourceware.org References: <20110913195046.GL12849@host1.jankratochvil.net> <201109211632.44816.pedro@codesourcery.com> <20110922214753.GA26184@host1.jankratochvil.net> In-Reply-To: <20110922214753.GA26184@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201109230042.03104.pedro@codesourcery.com> 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: 2011-09/txt/msg00420.txt.bz2 Just a quick reply, can't reply in full now: On Thursday 22 September 2011 22:47:53, Jan Kratochvil wrote: > (b) Even if I create such DWARF attribute by hand the expression `s@entry.b' > for parameter `S &s' of type `class S { char a, b; };' never reaches this > point of code because: That's not the case that descends into subfields of an object with embedded_offset != 0. It's when printing the _whole struct_, and gdb goes and prints a at embedded_offset 0 of s, and then b at embedded_offset==offsetof(typeof(s), b) of s. Try "p s@entry" ? -- Pedro Alves