| Index: ppapi/native_client/irt_debuglink.py
|
| diff --git a/ppapi/native_client/irt_debuglink.py b/ppapi/native_client/irt_debuglink.py
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..a68b67be17682dfd9e2f02cc6d5f65a1fe4a1c02
|
| --- /dev/null
|
| +++ b/ppapi/native_client/irt_debuglink.py
|
| @@ -0,0 +1,21 @@
|
| +#!/usr/bin/env python
|
| +# Copyright (c) 2015 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +"""Run objcopy --add-gnu-debuglink for the NaCl IRT.
|
| +"""
|
| +
|
| +import subprocess
|
| +import sys
|
| +
|
| +
|
| +def Main(args):
|
| + objcopy, debug_file, stripped_file, output_file = args
|
| + return subprocess.call([
|
| + objcopy, '--add-gnu-debuglink', debug_file, stripped_file, output_file
|
| + ])
|
| +
|
| +
|
| +if __name__ == '__main__':
|
| + sys.exit(Main(sys.argv[1:]))
|
|
|