summaryrefslogtreecommitdiffstats
path: root/chrome/tools
diff options
context:
space:
mode:
authornirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-16 00:09:55 +0000
committernirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-16 00:09:55 +0000
commit83e50b108dc8c178f916d912bf87de101a673860 (patch)
tree54a1b8ad332a86205986f5d90e7c719d6fb20978 /chrome/tools
parent4453f4dfb236c1e7f997ed020670b377d5aaa88f (diff)
downloadchromium_src-83e50b108dc8c178f916d912bf87de101a673860.zip
chromium_src-83e50b108dc8c178f916d912bf87de101a673860.tar.gz
chromium_src-83e50b108dc8c178f916d912bf87de101a673860.tar.bz2
Add convenience flags for processing chrome dumps on chromeos.
Sample usage for chromeos chrome dmps: python process_dumps_linux.py --processor-dir=. --symbol-dir=debug/breakpad/chrome/A9EE56E4F8A61BB38CA990B65A53E28E0 --symbol-filename=chrome.sym --dump-file=chromium-renderer-minidump-786fe1677009746c.dmp BUG= TEST= Review URL: http://codereview.chromium.org/6873024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81841 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/tools')
-rwxr-xr-xchrome/tools/process_dumps_linux.py28
1 files changed, 17 insertions, 11 deletions
diff --git a/chrome/tools/process_dumps_linux.py b/chrome/tools/process_dumps_linux.py
index 728c640..5c29f43 100755
--- a/chrome/tools/process_dumps_linux.py
+++ b/chrome/tools/process_dumps_linux.py
@@ -1,5 +1,5 @@
#!/usr/bin/python
-# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Copyright (c) 2011 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -200,17 +200,20 @@ def main_linux(options, args):
print 'Cannot find minidump_stackwalk.'
return 1
- if options.architecture:
- bits = options.architecture
+ if options.symbol_filename:
+ symbol_file = options.symbol_filename
else:
- bits = struct.calcsize('P') * 8
- if bits == 32:
- symbol_file = 'chrome.breakpad.ia32'
- elif bits == 64:
- symbol_file = 'chrome.breakpad.x64'
- else:
- print 'Unknown architecture'
- return 1
+ if options.architecture:
+ bits = options.architecture
+ else:
+ bits = struct.calcsize('P') * 8
+ if bits == 32:
+ symbol_file = 'chrome.breakpad.ia32'
+ elif bits == 64:
+ symbol_file = 'chrome.breakpad.x64'
+ else:
+ print 'Unknown architecture'
+ return 1
symbol_dir = options.symbol_dir
if not options.symbol_dir:
@@ -276,6 +279,9 @@ if '__main__' == __name__:
'specified. Default is the Chromium crash directory.')
parser.add_option('', '--symbol-dir', default='',
help='The directory with the symbols file. [Required]')
+ parser.add_option('', '--symbol-filename', default='',
+ help='The name of the symbols file to use. '
+ 'This argument overrides --architecture.')
parser.add_option('', '--architecture', type='int', default=None,
help='Override automatic x86/x86-64 detection. '
'Valid values are 32 and 64')