#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Copyright 2019 The ChromiumOS Authors | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
"""Python wrapper for dump_syms. | |
path/to/dump_syms.py input output | |
""" | |
import subprocess | |
import sys | |
with open(sys.argv[2], "w") as outfile: | |
subprocess.check_call(["dump_syms", sys.argv[1]], stdout=outfile) |