Bug 914293 - ensure check_debug_ranges.py can cope with a nonexistant DW_AT_ranges; r=glandium

This commit is contained in:
Nathan Froyd 2013-09-10 11:53:21 -04:00
parent 0efe71334d
commit f97e03a2d4
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ def get_range_for(compilation_unit, debug_info):
if 'DW_TAG_compile_unit' in nfo:
search_cu = True
elif 'DW_TAG_' in nfo or not nfo.strip():
if name == compilation_unit:
if name == compilation_unit and ranges != '':
return int(ranges, 16)
name = ranges = ''
search_cu = False

View File

@ -19,7 +19,7 @@ def get_range_for(compilation_unit, debug_info):
if 'DW_TAG_compile_unit' in nfo:
search_cu = True
elif 'DW_TAG_' in nfo or not nfo.strip():
if name == compilation_unit:
if name == compilation_unit and ranges != '':
return int(ranges, 16)
name = ranges = ''
search_cu = False