From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 49782 invoked by alias); 5 May 2015 17:50:14 -0000 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 Received: (qmail 49772 invoked by uid 89); 5 May 2015 17:50:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 05 May 2015 17:50:13 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 05CE0285AB for ; Tue, 5 May 2015 13:50:11 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ZBDhhYj72AI3 for ; Tue, 5 May 2015 13:50:10 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id CA8DCD3CE8 for ; Tue, 5 May 2015 13:50:10 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id EBFF340EAD; Tue, 5 May 2015 10:50:10 -0700 (PDT) Date: Tue, 05 May 2015 17:50:00 -0000 From: Joel Brobecker To: gdb-patches@sourceware.org Subject: Re: [Ada/DWARF] printing array of variant records Message-ID: <20150505175010.GB5186@adacore.com> References: <1429631064-4196-1-git-send-email-brobecker@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1429631064-4196-1-git-send-email-brobecker@adacore.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2015-05/txt/msg00074.txt.bz2 > This patch series aims at enhancing GDB when printing arrays of > records whose contents and size is dynamic, in the case where > we're relying purely on standard DWARF info (no GNAT encodings). > > The patch series has been tested on x86_64-linux using the FSF > testsuite, as well as a number of other platforms (Solaris, Windows, > crosses) using AdaCore's testsuite. > > Most patches are small fixes and enhancements. Patch #2 (Add valaddr > support in dynamic property resolution) is interesting, thought, > as it is one answer to a question I asked at the very beginning > when we started reviewing patches introducing the concept of dynamic > type resolution: what if the data is not stored in inferior memory? > As it turns out, this patch series encounters one such case, because > we're dealing with data that is not necessarily byte-aligned. And > AdaCore also encountered another situation, with a function returning > a reference to a dynamic object, with that reference being returned > by register; hence no address either. Patch #2 enhances our framework > by using the contents-and-address idea. > > If there are no objections, I'd like to commit the patch series > sometime early next week. FYI: I've retested the patch series on x86_64-linux, and just pushed it. -- Joel