debug-dump=info should print null DIEs to conform to the new readelf.
diff --git a/scripts/readelf.py b/scripts/readelf.py
index b9b07a3..33fa957 100755
--- a/scripts/readelf.py
+++ b/scripts/readelf.py
@@ -577,14 +577,14 @@
#
die_depth = 0
for die in cu.iter_DIEs():
- if die.is_null():
- die_depth -= 1
- continue
- self._emitline(' <%s><%x>: Abbrev Number: %s (%s)' % (
+ self._emitline(' <%s><%x>: Abbrev Number: %s%s' % (
die_depth,
die.offset,
die.abbrev_code,
- die.tag))
+ (' (%s)' % die.tag) if not die.is_null() else ''))
+ if die.is_null():
+ die_depth -= 1
+ continue
for attr in itervalues(die.attributes):
name = attr.name