Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(772)

Side by Side Diff: components/crash/content/tools/generate_breakpad_symbols.py

Issue 2167703002: DEPS update: Breakpad 51db53eec729, LSS 3f6478ac95ed, NaCl 412a6e2bb153 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update generate_breakpad_symbols.py for Breakpad 220c852dc209 Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """A tool to generate symbols for a binary suitable for breakpad. 6 """A tool to generate symbols for a binary suitable for breakpad.
7 7
8 Currently, the tool only supports Linux, Android, and Mac. Support for other 8 Currently, the tool only supports Linux, Android, and Mac. Support for other
9 platforms is planned. 9 platforms is planned.
10 """ 10 """
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 run_once = True 168 run_once = True
169 while run_once: 169 while run_once:
170 run_once = False 170 run_once = False
171 171
172 if not dump_syms: 172 if not dump_syms:
173 should_dump_syms = False 173 should_dump_syms = False
174 reason = "Could not locate dump_syms executable." 174 reason = "Could not locate dump_syms executable."
175 break 175 break
176 176
177 binary_info = GetBinaryInfoFromHeaderInfo( 177 binary_info = GetBinaryInfoFromHeaderInfo(
178 GetCommandOutput([dump_syms, '-i', binary])) 178 GetCommandOutput([dump_syms, '-i', binary]).splitlines()[0])
179 if not binary_info: 179 if not binary_info:
180 should_dump_syms = False 180 should_dump_syms = False
181 reason = "Could not obtain binary information." 181 reason = "Could not obtain binary information."
182 break 182 break
183 183
184 # See if the output file already exists. 184 # See if the output file already exists.
185 output_path = os.path.join(options.symbols_dir, binary_info.name, 185 output_path = os.path.join(options.symbols_dir, binary_info.name,
186 binary_info.hash, binary_info.name + '.sym') 186 binary_info.hash, binary_info.name + '.sym')
187 if os.path.isfile(output_path): 187 if os.path.isfile(output_path):
188 should_dump_syms = False 188 should_dump_syms = False
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 binaries |= new_deps 288 binaries |= new_deps
289 queue.extend(list(new_deps)) 289 queue.extend(list(new_deps))
290 290
291 GenerateSymbols(options, binaries) 291 GenerateSymbols(options, binaries)
292 292
293 return 0 293 return 0
294 294
295 295
296 if '__main__' == __name__: 296 if '__main__' == __name__:
297 sys.exit(main()) 297 sys.exit(main())
OLDNEW
« no previous file with comments | « DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698