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
This commit is contained in:
@@ -25,6 +25,7 @@ import symbol
|
||||
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 @@ def main():
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user