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

Unified Diff: upload_debug_syms.py

Issue 2812012: Add symbol uploader (Closed) Base URL: ssh://git@chromiumos-git//crosutils.git
Patch Set: Respond to review Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | upload_symbols » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: upload_debug_syms.py
diff --git a/upload_debug_syms.py b/upload_debug_syms.py
deleted file mode 100755
index 76aed6a4a6be00db5baf27e3b901bdf4740e9610..0000000000000000000000000000000000000000
--- a/upload_debug_syms.py
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/python
-
-''' Utility to upload debug symbols to the Google Breakpad Server '''
-
-import os
-import subprocess
-import sys
-
-# Common Global Variables
-DEBUG_BASE_PATH='/build'
-DEBUG_SUBPATH='/usr/lib/debug'
-DEBUG_EXT='.sym'
-BP_UPLOAD=('../third_party/google-breakpad/'
-'files/src/tools/linux/symupload/symupload')
-
-def CheckBinaryExists():
- if os.path.exists(BP_UPLOAD):
- return True
- return False
-
-def FindDebugFiles():
-
- curdir = os.curdir
- if not os.path.exists("/etc/debian_chroot"):
- DEBUG_BASE_PATH= sys.argv[0] + '/../../chroot/build'
-
- files = []
- for dirpath, dirnames, filenames in os.walk(DEBUG_BASE_PATH):
- filenames[:] = [os.path.join(dirpath, fname)
- for fname in filenames if fname.endswith(DEBUG_EXT)]
- files.extend(filenames)
- return files
-
-def Upload(filenames=[]):
-
- for filename in filenames:
- print 'executing..' + BP_UPLOAD + ' ' + filename
- retval = subprocess.call([BPUPLOAD, filename])
- print retval
- print 'done.'
-
-def Main():
- if not CheckBinaryExists():
- print "Could not find Breakpad Upload Binary at : %s " % BP_UPLOAD
- return
-
- filenames = FindDebugFiles()
- Upload(filenames)
-
-if __name__ == '__main__':
- Main()
« no previous file with comments | « no previous file | upload_symbols » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698