OLD | NEW |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 # | 6 # |
7 # Attach gdb to a running content shell. Redirect to the shell gdb_apk | 7 # Attach gdb to a running content shell. Redirect to the shell gdb_apk |
8 | 8 |
9 ROOT=$(cd "$(dirname $0)"; pwd) | 9 ROOT=$(cd "$(dirname $0)"; pwd) |
10 | 10 echo "WARNING: This script is deprecated, consider using adb_gdb_content_shell i nstead!" |
bulach
2012/10/17 14:20:04
nit: >80cols
digit1
2012/10/18 13:02:59
Done.
| |
11 if [ $# -gt 0 ]; then | 11 if [ $# -gt 0 ]; then |
12 exec ${ROOT}/gdb_apk -r -g "$*" | 12 exec ${ROOT}/gdb_apk -r -g "$*" |
13 else | 13 else |
14 exec ${ROOT}/gdb_apk -r -p org.chromium.content_shell | 14 exec ${ROOT}/gdb_apk -r -p org.chromium.content_shell |
15 fi | 15 fi |
OLD | NEW |