This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [COMMITTED] libdw: Add DW_LANG_Haskell.
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 25 Aug 2015 16:12:19 +0200
- Subject: Re: [COMMITTED] libdw: Add DW_LANG_Haskell.
On Tue, 2015-08-25 at 15:15 +0200, Mark Wielaard wrote:
> See http://www.dwarfstd.org/ShowIssue.php?issue=120218.1
> GHC emits this language code (0x18).
>
> Also updated https://fedorahosted.org/elfutils/wiki/DwarfExtensions
O, there was actually a question to go with this commit. Which I forgot
to add...
Does GHC emit DW_TAG_subrange_type (for arrays for example) and if so
does it always emit a DW_AT_lower_bound or does it assume this is known
to the DWARF consumer (most languages start indexes at zero or one).
See DWARFv4 7.12 Source Languages. dwarf_aggregate_size () uses this
knowledge for example in libdw to calculate the actual size of DIEs
representing arrays.
And are there any additional Haskell extensions for DWARF?
Thanks,
Mark