Skip .debug sections when generating memory use report

This commit is contained in:
valeros
2019-10-22 21:52:55 +03:00
parent 56ac577b0a
commit 374379ba03

View File

@ -96,7 +96,7 @@ def _is_valid_symbol(symbol_name, symbol_type, symbol_address):
def _collect_sections_info(elffile):
sections = {}
for section in elffile.iter_sections():
if section.is_null():
if section.is_null() or section.name.startswith(".debug"):
continue
section_type = section["sh_type"]