Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: build/android/gdb_apk

Issue 12091033: Relanding "Add apk for running content_browsertests" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/buildbot/bb_device_steps.py ('k') | build/android/gdb_content_shell » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 android application. Similar to ndk-gdb. 7 # Attach gdb to a running android application. Similar to ndk-gdb.
8 # Run with --annotate=3 if running under emacs (M-x gdb). 8 # Run with --annotate=3 if running under emacs (M-x gdb).
9 # 9 #
10 # By default it is used to debug content shell, if it is used to 10 # By default it is used to debug content shell, if it is used to
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 if [ $# -ge ${OPTIND} ]; then 89 if [ $# -ge ${OPTIND} ]; then
90 eval echo "Unexpected command line argument: \${${OPTIND}}" 90 eval echo "Unexpected command line argument: \${${OPTIND}}"
91 usage 91 usage
92 exit 1 92 exit 1
93 fi 93 fi
94 } 94 }
95 95
96 rooted_phone=0 96 rooted_phone=0
97 97
98 root=$(dirname $0)/../.. 98 root=$(dirname $0)/../..
99 package_name=org.chromium.content_shell 99 package_name=org.chromium.content_shell_apk
100 shared_lib_dir=$root/out/${BUILDTYPE:-Debug}/lib.target 100 shared_lib_dir=$root/out/${BUILDTYPE:-Debug}/lib.target
101 gdb_args='' 101 gdb_args=''
102 102
103 #process options 103 #process options
104 process_options "$@" 104 process_options "$@"
105 echo "Debug package $package_name" 105 echo "Debug package $package_name"
106 echo "Assume native shared library is under $shared_lib_dir" 106 echo "Assume native shared library is under $shared_lib_dir"
107 107
108 data_dir=/data/data/$package_name 108 data_dir=/data/data/$package_name
109 gdb_server_on_device=$data_dir/lib/gdbserver 109 gdb_server_on_device=$data_dir/lib/gdbserver
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 if [[ ! -f ${gdb} ]] ; then 162 if [[ ! -f ${gdb} ]] ; then
163 echo "Wow no gdb in env var ANDROID_TOOLCHAIN which is $ANDROID_TOOLCHAIN" 163 echo "Wow no gdb in env var ANDROID_TOOLCHAIN which is $ANDROID_TOOLCHAIN"
164 exit 4 164 exit 4
165 else 165 else
166 echo Using $gdb 166 echo Using $gdb
167 fi 167 fi
168 168
169 # ${gdb} -x $cmdfile $* $app_process 169 # ${gdb} -x $cmdfile $* $app_process
170 ${gdb} -x $cmdfile $gdb_args 170 ${gdb} -x $cmdfile $gdb_args
171 rm $cmdfile 171 rm $cmdfile
OLDNEW
« no previous file with comments | « build/android/buildbot/bb_device_steps.py ('k') | build/android/gdb_content_shell » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698