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

Side by Side Diff: platform_tools/android/bin/android_gdb_exe

Issue 256413006: Fix android_gdbserver script to work with changes from a137675. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: AnotherPatchSet Created 6 years, 8 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
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # 2 #
3 # android_gdb: Pushes gdbserver. Connects and enters debugging environment. 3 # android_gdb: Pushes gdbserver. Connects and enters debugging environment.
4 4
5 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 5 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
6 source $SCRIPT_DIR/android_setup.sh 6 source $SCRIPT_DIR/android_setup.sh
7 7
8 # setup the gdbserver 8 # setup the gdbserver
9 export BUILDTYPE # from android_setup.sh
djsollen 2014/04/25 17:42:54 what did this line do exactly?
hal.canary 2014/04/25 18:38:20 So android_gdbserver sees this variable as set by
9 $SCRIPT_DIR/android_gdbserver -d ${DEVICE_ID} ${APP_ARGS[@]} 10 $SCRIPT_DIR/android_gdbserver -d ${DEVICE_ID} ${APP_ARGS[@]}
10 11
11 # quit if gdbserver setup failed 12 # quit if gdbserver setup failed
12 if [[ "$?" != "0" ]]; then 13 if [[ "$?" != "0" ]]; then
13 echo "ERROR: gdbserver failed to setup properly." 14 echo "ERROR: gdbserver failed to setup properly."
14 exit 1 15 exit 1
15 fi 16 fi
16 17
17 # Wait for gdbserver 18 # Wait for gdbserver
18 sleep 2 19 sleep 2
(...skipping 10 matching lines...) Expand all
29 echo "set solib-absolute-prefix $GDB_TMP_DIR" >> $GDBSETUP 30 echo "set solib-absolute-prefix $GDB_TMP_DIR" >> $GDBSETUP
30 echo "set solib-search-path $GDB_TMP_DIR" >> $GDBSETUP 31 echo "set solib-search-path $GDB_TMP_DIR" >> $GDBSETUP
31 32
32 # The apps shared library symbols are not loaded by default so we load them here 33 # The apps shared library symbols are not loaded by default so we load them here
33 echo "break launch_app" >> $GDBSETUP 34 echo "break launch_app" >> $GDBSETUP
34 echo "continue" >> $GDBSETUP 35 echo "continue" >> $GDBSETUP
35 echo "sharedLibrary $APP_NAME" >> $GDBSETUP 36 echo "sharedLibrary $APP_NAME" >> $GDBSETUP
36 37
37 # Launch gdb client 38 # Launch gdb client
38 echo "Entering gdb client shell" 39 echo "Entering gdb client shell"
39 if [ "$ANDROID_ARCH" == "x86" ] 40 GDB_COMMAND=$(command ls "$ANDROID_TOOLCHAIN"/*-gdb | head -n1)
40 then 41 "$GDB_COMMAND" -x $GDBSETUP
41 $ANDROID_TOOLCHAIN/i686-linux-android-gdb -x $GDBSETUP
42 else
43 $ANDROID_TOOLCHAIN/arm-linux-androideabi-gdb -x $GDBSETUP
44 fi
45 42
46 # Clean up 43 # Clean up
47 rm -rf $GDB_TMP_DIR 44 rm -rf $GDB_TMP_DIR
OLDNEW
« no previous file with comments | « platform_tools/android/bin/android_gdb_apk ('k') | platform_tools/android/bin/android_gdbserver » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698