Tatsuhisa Yamaguchi | 0990fa4 | 2019-08-29 18:23:32 +0900 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
2 | # -*- coding: utf-8 -*- | ||||
3 | # Copyright 2019 The Chromium OS Authors. All rights reserved. | ||||
4 | # Use of this source code is governed by a BSD-style license that can be | ||||
5 | # found in the LICENSE file. | ||||
6 | |||||
7 | """Python wrapper for dump_syms. | ||||
8 | |||||
9 | path/to/dump_syms.py input output | ||||
10 | """ | ||||
11 | |||||
12 | import subprocess | ||||
13 | import sys | ||||
14 | |||||
15 | with open(sys.argv[2], "w") as outfile: | ||||
16 | subprocess.check_call(["dump_syms", sys.argv[1]], stdout=outfile) |