Bug 1622701 - Eliminate use of `fix_stack_using_bpsyms.py` in `utils.py`. r=gsvelto

Differential Revision: https://phabricator.services.mozilla.com/D66918

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nicholas Nethercote 2020-03-17 02:59:29 +00:00
Родитель f3e3a0107d
Коммит 5219cd1204
1 изменённых файлов: 6 добавлений и 7 удалений

Просмотреть файл

@ -247,15 +247,14 @@ def get_stack_fixer_function(utilityPath, symbolsPath):
return module
if symbolsPath and os.path.exists(symbolsPath):
# Run each line through a function in fix_stack_using_bpsyms.py (uses breakpad
# symbol files).
# This method is preferred for Tinderbox builds, since native
# symbols may have been stripped.
stack_fixer_module = import_stack_fixer_module(
'fix_stack_using_bpsyms')
# Run each line through fix_stacks.py, using breakpad symbol files.
# This method is preferred for automation, since native symbols may
# have been stripped.
stack_fixer_module = import_stack_fixer_module('fix_stacks')
def stack_fixer_function(line):
return stack_fixer_module.fixSymbols(line, symbolsPath)
return stack_fixer_module.fixSymbols(
line, slowWarning=True, breakpadSymsDir=symbolsPath)
elif mozinfo.isLinux or mozinfo.isMac or mozinfo.isWin:
# Run each line through fix_stacks.py. This method is preferred for