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

Side by Side Diff: chrome/tools/process_dumps_linux.py

Issue 3236007: Linux Reliability Bot: set the correct name for 64-bit Breakpad symbol files.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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/python 1 #!/usr/bin/python
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2009 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 collect crash signatures for Chrome builds on Linux.""" 6 """A tool to collect crash signatures for Chrome builds on Linux."""
7 7
8 import fnmatch 8 import fnmatch
9 import optparse 9 import optparse
10 import os 10 import os
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 print 'Cannot find minidump_stackwalk.' 200 print 'Cannot find minidump_stackwalk.'
201 return 1 201 return 1
202 202
203 if options.architecture: 203 if options.architecture:
204 bits = options.architecture 204 bits = options.architecture
205 else: 205 else:
206 bits = struct.calcsize('P') * 8 206 bits = struct.calcsize('P') * 8
207 if bits == 32: 207 if bits == 32:
208 symbol_file = 'chrome.breakpad.ia32' 208 symbol_file = 'chrome.breakpad.ia32'
209 elif bits == 64: 209 elif bits == 64:
210 symbol_file = 'chrome.breakpad.ia64' 210 symbol_file = 'chrome.breakpad.x64'
211 else: 211 else:
212 print 'Unknown architecture' 212 print 'Unknown architecture'
213 return 1 213 return 1
214 214
215 symbol_dir = options.symbol_dir 215 symbol_dir = options.symbol_dir
216 if not options.symbol_dir: 216 if not options.symbol_dir:
217 symbol_dir = os.curdir 217 symbol_dir = os.curdir
218 symbol_dir = os.path.abspath(os.path.expanduser(symbol_dir)) 218 symbol_dir = os.path.abspath(os.path.expanduser(symbol_dir))
219 symbol_file = os.path.join(symbol_dir, symbol_file) 219 symbol_file = os.path.join(symbol_dir, symbol_file)
220 if not os.path.exists(symbol_file): 220 if not os.path.exists(symbol_file):
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 parser.add_option('', '--architecture', type='int', default=None, 279 parser.add_option('', '--architecture', type='int', default=None,
280 help='Override automatic x86/x86-64 detection. ' 280 help='Override automatic x86/x86-64 detection. '
281 'Valid values are 32 and 64') 281 'Valid values are 32 and 64')
282 282
283 (options, args) = parser.parse_args() 283 (options, args) = parser.parse_args()
284 284
285 if sys.platform == 'linux2': 285 if sys.platform == 'linux2':
286 sys.exit(main_linux(options, args)) 286 sys.exit(main_linux(options, args))
287 else: 287 else:
288 sys.exit(1) 288 sys.exit(1)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698