Flutter Engine
The Flutter Engine
third_party
dart-lang
sdk
tools
run_with_coredumps_enabled.py
Go to the documentation of this file.
1
#!/usr/bin/env python3
2
# Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file
3
# for details. All rights reserved. Use of this source code is governed by a
4
# BSD-style license that can be found in the LICENSE file.
5
6
from
contextlib
import
ExitStack
7
import
subprocess
8
import
sys
9
10
import
utils
11
12
13
def
Main
():
14
args = sys.argv[1:]
15
16
with
ExitStack()
as
stack:
17
for
ctx
in
utils.CoreDumpArchiver
(args):
18
stack.enter_context(ctx)
19
exit_code = subprocess.call(args)
20
21
utils.DiagnoseExitCode
(exit_code, args)
22
return
exit_code
23
24
25
if
__name__ ==
'__main__'
:
26
sys.exit(
Main
())
run_with_coredumps_enabled.Main
def Main()
Definition:
run_with_coredumps_enabled.py:13
utils.CoreDumpArchiver
def CoreDumpArchiver(args)
Definition:
utils.py:973
utils.DiagnoseExitCode
def DiagnoseExitCode(exit_code, command)
Definition:
utils.py:492
Generated on Sun Jun 23 2024 21:55:52 for Flutter Engine by
1.9.4