| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 # TODO(yzshen): Once the dep manager is ready, remove this file and use the one | 5 # TODO(yzshen): Once the dep manager is ready, remove this file and use the one |
| 6 # from src/mojo/tools directly. | 6 # from src/mojo/tools directly. |
| 7 | 7 |
| 8 | 8 |
| 9 import atexit | 9 import atexit |
| 10 import logging | 10 import logging |
| 11 import os | 11 import os |
| 12 import signal | 12 import signal |
| 13 import subprocess | 13 import subprocess |
| 14 import sys | 14 import sys |
| 15 import threading | 15 import threading |
| 16 import time | 16 import time |
| 17 | 17 |
| 18 from .paths import Paths | 18 from .paths import Paths |
| 19 | 19 |
| 20 from devil import base_error |
| 21 from devil.android import apk_helper |
| 22 from devil.android import device_errors |
| 23 from devil.android import device_utils |
| 20 from pylib import constants | 24 from pylib import constants |
| 21 from pylib.device import device_errors | |
| 22 from pylib.device import device_utils | |
| 23 from pylib.utils import base_error | |
| 24 from pylib.utils import apk_helper | |
| 25 | 25 |
| 26 | 26 |
| 27 # Tags used by the mojo shell application logs. | 27 # Tags used by the mojo shell application logs. |
| 28 LOGCAT_TAGS = [ | 28 LOGCAT_TAGS = [ |
| 29 'AndroidHandler', | 29 'AndroidHandler', |
| 30 'MojoFileHelper', | 30 'MojoFileHelper', |
| 31 'MojoMain', | 31 'MojoMain', |
| 32 'MojoShellActivity', | 32 'MojoShellActivity', |
| 33 'MojoShellApplication', | 33 'MojoShellApplication', |
| 34 'chromium', | 34 'chromium', |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 'gdb is in the directory %s\\n' | 279 'gdb is in the directory %s\\n' |
| 280 'The following functions have been defined:\\n' | 280 'The following functions have been defined:\\n' |
| 281 'reload-symbols: forces reloading symbols. If after a crash you\\n' | 281 'reload-symbols: forces reloading symbols. If after a crash you\\n' |
| 282 'still do not see symbols you likely need to create a link in\\n' | 282 'still do not see symbols you likely need to create a link in\\n' |
| 283 'the directory you are in.\\n' | 283 'the directory you are in.\\n' |
| 284 'info-symbols: shows status of current shared libraries.\\n' | 284 'info-symbols: shows status of current shared libraries.\\n' |
| 285 'NOTE: you may need to type reload-symbols again after a ' | 285 'NOTE: you may need to type reload-symbols again after a ' |
| 286 'crash.\\n\\n' % (tmp_dir, build_dir, tmp_dir)) | 286 'crash.\\n\\n' % (tmp_dir, build_dir, tmp_dir)) |
| 287 with open(gdb_init_path, 'w') as f: | 287 with open(gdb_init_path, 'w') as f: |
| 288 f.write(gdbinit) | 288 f.write(gdbinit) |
| OLD | NEW |