Skip to content
Permalink
Browse files
Fix BreakpadSymbols.
  • Loading branch information
dvander committed Aug 19, 2020
1 parent 2eea779 commit 43a30176c05625e66529367297fb2a5b4fa8f589
Showing 1 changed file with 11 additions and 6 deletions.
@@ -7,21 +7,26 @@ UPLOAD_SCRIPT = os.path.join(builder.sourcePath, 'support', 'buildbot', 'upload_

cxx_tasks = MMS.binaries
for cxx_task in cxx_tasks:
if builder.target.platform in ['windows']:
if cxx_task.target.platform in ['windows']:
debug_entry = cxx_task.debug
else:
debug_entry = cxx_task.binary

debug_file = os.path.join(builder.buildPath, debug_entry.path)
if builder.target.platform == 'linux':
if cxx_task.target.platform == 'linux':
argv = ['dump_syms', debug_file, os.path.dirname(debug_file)]
elif builder.target.platform == 'mac':
elif cxx_task.target.platform == 'mac':
argv = ['dump_syms', debug_file + '.dSYM']
elif builder.target.platform == 'windows':
elif cxx_task.target.platform == 'windows':
argv = ['dump_syms.exe', debug_file]

base_file = os.path.split(os.path.dirname(debug_file))[1]
symbol_file = base_file + '.breakpad'
plat_dir = os.path.dirname(debug_file)
bin_dir = os.path.split(plat_dir)[0]

symbol_file = '{}-{}-{}.breakpad'.format(
os.path.split(bin_dir)[1],
cxx_task.target.platform,
cxx_task.target.arch)

argv = [sys.executable, UPLOAD_SCRIPT, symbol_file] + argv
builder.AddCommand(

0 comments on commit 43a3017

Please sign in to comment.