Added Dwarfv5 CU headers (#442)
[pyelftools.git] / scripts / dwarfdump.py
index e593f1c63f82387b9b5ca1aea9c4bf41542027a0..162af88c76c256bf7e377b6da1d9c3e79b3895b6 100644 (file)
@@ -362,8 +362,7 @@ class ReadElf(object):
         self._emitline(".debug_info contents:")
         for cu in self._dwarfinfo.iter_CUs():
             if cu.header.version >= 5:
-                ut = next(k for (k,v) in ENUM_DW_UT.items() if v == cu.header.unit_type)
-                unit_type_str = " unit_type = %s," % ut
+                unit_type_str = " unit_type = %s," % cu.header.unit_type
             else:
                 unit_type_str = ''