From f810a8830b7e221ff5f20e6b966b0e6c505bb831 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Fri, 27 Dec 2013 06:12:52 -0800 Subject: [PATCH] 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. --- elftools/dwarf/enums.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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, -- 2.30.2