Fix failing tests on Python 3.3 by removing duplicats in dwarf/enums
authorEli Bendersky <eliben@gmail.com>
Fri, 27 Dec 2013 14:12:52 +0000 (06:12 -0800)
committerEli Bendersky <eliben@gmail.com>
Fri, 27 Dec 2013 14:12:52 +0000 (06:12 -0800)
Retain only the _param versions of the names because these are used by readelf.
The DWARF standard calls them _parameter.

elftools/dwarf/enums.py

index 65087645761dfce184b18f9e07d0cff306614c3d..2167c6800b8b148b516542df675673f35021bba9 100644 (file)
@@ -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,