From: Eli Bendersky Date: Fri, 27 Dec 2013 14:12:52 +0000 (-0800) Subject: Fix failing tests on Python 3.3 by removing duplicats in dwarf/enums X-Git-Tag: v0.22~23 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f810a8830b7e221ff5f20e6b966b0e6c505bb831;p=pyelftools.git Fix failing tests on Python 3.3 by removing duplicats in dwarf/enums Retain only the _param versions of the names because these are used by readelf. The DWARF standard calls them _parameter. --- diff --git a/elftools/dwarf/enums.py b/elftools/dwarf/enums.py index 6508764..2167c68 100644 --- a/elftools/dwarf/enums.py +++ b/elftools/dwarf/enums.py @@ -52,10 +52,12 @@ ENUM_DW_TAG = dict( DW_TAG_namelist_items = 0x2c, DW_TAG_packed_type = 0x2d, DW_TAG_subprogram = 0x2e, - DW_TAG_template_type_parameter = 0x2f, + + # The DWARF standard defines these as _parameter, not _param, but we + # maintain compatibility with readelf. DW_TAG_template_type_param = 0x2f, - DW_TAG_template_value_parameter = 0x30, DW_TAG_template_value_param = 0x30, + DW_TAG_thrown_type = 0x31, DW_TAG_try_block = 0x32, DW_TAG_variant_part = 0x33,