This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [Ada/DWARF] printing array of variant records
- From: Joel Brobecker <brobecker at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 5 May 2015 10:50:10 -0700
- Subject: Re: [Ada/DWARF] printing array of variant records
- Authentication-results: sourceware.org; auth=none
- References: <1429631064-4196-1-git-send-email-brobecker at adacore dot com>
> 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