mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-03 22:02:12 +00:00
Fix indents on asan_symbolize.py's argument parsing code. No behavior change.
llvm-svn: 227327
This commit is contained in:
parent
406f640a68
commit
64a74bf1cf
@ -444,20 +444,23 @@ class SymbolizationLoop(object):
|
|||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter,
|
parser = argparse.ArgumentParser(
|
||||||
description='ASan symbolization script',
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||||
epilog='''Example of use:
|
description='ASan symbolization script',
|
||||||
asan_symbolize.py -c "$HOME/opt/cross/bin/arm-linux-gnueabi-" -s "$HOME/SymbolFiles" < asan.log''')
|
epilog='Example of use:\n'
|
||||||
|
'asan_symbolize.py -c "$HOME/opt/cross/bin/arm-linux-gnueabi-" '
|
||||||
|
'-s "$HOME/SymbolFiles" < asan.log')
|
||||||
parser.add_argument('path_to_cut', nargs='*',
|
parser.add_argument('path_to_cut', nargs='*',
|
||||||
help='pattern to be cut from the result file path ')
|
help='pattern to be cut from the result file path ')
|
||||||
parser.add_argument('-d','--demangle', action='store_true',
|
parser.add_argument('-d','--demangle', action='store_true',
|
||||||
help='demangle function names')
|
help='demangle function names')
|
||||||
parser.add_argument('-s', metavar='SYSROOT',
|
parser.add_argument('-s', metavar='SYSROOT',
|
||||||
help='set path to sysroot for sanitized binaries')
|
help='set path to sysroot for sanitized binaries')
|
||||||
parser.add_argument('-c', metavar='CROSS_COMPILE',
|
parser.add_argument('-c', metavar='CROSS_COMPILE',
|
||||||
help='set prefix for binutils')
|
help='set prefix for binutils')
|
||||||
parser.add_argument('-l','--logfile', default=sys.stdin, type=argparse.FileType('r'),
|
parser.add_argument('-l','--logfile', default=sys.stdin,
|
||||||
help='set log file name to parse, default is stdin')
|
type=argparse.FileType('r'),
|
||||||
|
help='set log file name to parse, default is stdin')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
if args.path_to_cut:
|
if args.path_to_cut:
|
||||||
fix_filename_patterns = args.path_to_cut
|
fix_filename_patterns = args.path_to_cut
|
||||||
|
Loading…
x
Reference in New Issue
Block a user