Stack: Add ability to override symbols dir
Add --syms option to set the symbols directory used for lookup.
Test: m
Test: manual
Change-Id: Ibe0c93c68cafe017341e54e8f14ea9d775ae13bd
diff --git a/scripts/stack b/scripts/stack
index 3c447b7..63600e3 100755
--- a/scripts/stack
+++ b/scripts/stack
@@ -25,6 +25,7 @@
def main():
parser = argparse.ArgumentParser(description='Parse and symbolize crashes')
parser.add_argument('--arch', help='the target architecture')
+ parser.add_argument('--syms', '--symdir', help='the symbols directory')
parser.add_argument('file',
metavar='FILE',
default='-',
@@ -37,6 +38,8 @@
if args.arch:
symbol.ARCH = args.arch
+ if args.syms:
+ symbol.SYMBOLS_DIR = args.syms
if args.file == '-':
print "Reading native crash info from stdin"
f = sys.stdin