projects
/
pyelftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ef7d1c
)
Fix failing tests on Python 3.3 by removing duplicats in dwarf/enums
author
Eli Bendersky
<eliben@gmail.com>
Fri, 27 Dec 2013 14:12:52 +0000
(06:12 -0800)
committer
Eli 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
patch
|
blob
|
history
diff --git
a/elftools/dwarf/enums.py
b/elftools/dwarf/enums.py
index 65087645761dfce184b18f9e07d0cff306614c3d..2167c6800b8b148b516542df675673f35021bba9 100644
(file)
--- 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,