This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] libdw: Add support for DWARF5 DW_FORM_data16.
- From: Mark Wielaard <mark at klomp dot org>
- To: elfutils-devel at sourceware dot org
- Date: Wed, 21 Feb 2018 17:23:03 +0100
- Subject: Re: [PATCH] libdw: Add support for DWARF5 DW_FORM_data16.
- Authentication-results: sourceware.org; auth=none
- References: <1518209921-30243-1-git-send-email-mark@klomp.org>
On Fri, 2018-02-09 at 21:58 +0100, Mark Wielaard wrote:
> The DWARF5 spec says DW_FORM_data16 is constant class (128bit value).
> But we treat it as if it is block class. So to use a attribute that is
> encoded as DW_FORM_data16 use dwarf_formblock, not dwarf_form[us]data.
>
> We cannot use dwarf_form[us]data since they return a Dwarf_Word/Sword,
> which are only 64bits.
>
> This does mean we don't try to convert the value but just return it as
> a block of 16 raw bytes.
Pushed to master.