[COMMITTED] libdw: Add DW_LANG_Haskell.

Mark Wielaard mjw at redhat.com
Tue Aug 25 14:12:19 UTC 2015


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


More information about the elfutils-devel mailing list