зеркало из https://github.com/mozilla/gecko-dev.git
Bug 914293 - ensure check_debug_ranges.py can cope with a nonexistant DW_AT_ranges; r=glandium
This commit is contained in:
Родитель
a9bd3f7f7f
Коммит
677dac8036
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче