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

Unified Diff: third_party/android_platform/development/scripts/stack

Issue 1006603002: Fix stack tool for library in apk crashes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
Index: third_party/android_platform/development/scripts/stack
diff --git a/third_party/android_platform/development/scripts/stack b/third_party/android_platform/development/scripts/stack
index 31b9d590da524ca611885695def5e8e4c573780f..c5a56c61e031fd1ba226ea958e3ce20cc9d9fba1 100755
--- a/third_party/android_platform/development/scripts/stack
+++ b/third_party/android_platform/development/scripts/stack
@@ -18,6 +18,7 @@
import getopt
import glob
+import logging
import os
import sys
@@ -57,6 +58,9 @@ def PrintUsage():
print " --arch=arm|arm64|x64|x86|mips"
print " the target architecture"
print
+ print " --verbose"
+ print " enable extra logging, particularly for debugging failed symbolization"
+ print
print " FILE should contain a stack trace in it somewhere"
print " the tool will find that and re-print it with"
print " source files and line numbers. If you don't"
@@ -108,15 +112,16 @@ def UnzipSymbols(symbolfile, symdir=None):
return (symdir, symdir)
-def main():
+def main(argv):
try:
- options, arguments = getopt.getopt(sys.argv[1:], "",
+ options, arguments = getopt.getopt(argv, "",
["more-info",
"less-info",
"chrome-symbols-dir=",
"symbols-dir=",
"symbols-zip=",
"arch=",
+ "verbose",
"help"])
except getopt.GetoptError, unused_error:
PrintUsage()
@@ -138,6 +143,8 @@ def main():
more_info = True
elif option == "--less-info":
more_info = False
+ elif option == "--verbose":
+ logging.basicConfig(level=logging.DEBUG)
if len(arguments) > 1:
PrintUsage()
@@ -167,6 +174,6 @@ def main():
os.system(cmd)
if __name__ == "__main__":
- main()
+ sys.exit(main(sys.argv[1:]))
# vi: ts=2 sw=2
« no previous file with comments | « third_party/android_platform/README.chromium ('k') | third_party/android_platform/development/scripts/stack_core.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698