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

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

Issue 398733002: Make gdb work for 64-bit Skia (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | platform_tools/android/bin/android_gdbserver » ('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 # 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 9 export BUILDTYPE # from android_setup.sh
10 $SCRIPT_DIR/android_gdbserver -d ${DEVICE_ID} ${APP_ARGS[@]} 10 $SCRIPT_DIR/android_gdbserver -d ${DEVICE_ID} ${APP_ARGS[@]}
(...skipping 11 matching lines...) Expand all
22 GDB_TMP_DIR=$(pwd)/android_gdb_tmp 22 GDB_TMP_DIR=$(pwd)/android_gdb_tmp
23 APP_NAME=${APP_ARGS[0]} 23 APP_NAME=${APP_ARGS[0]}
24 PORT=5039 24 PORT=5039
25 25
26 # Set up gdb commands 26 # Set up gdb commands
27 GDBSETUP=$GDB_TMP_DIR/gdb.setup 27 GDBSETUP=$GDB_TMP_DIR/gdb.setup
28 { 28 {
29 echo "file ${GDB_TMP_DIR}/skia_launcher" 29 echo "file ${GDB_TMP_DIR}/skia_launcher"
30 echo "target remote :${PORT}" 30 echo "target remote :${PORT}"
31 echo "set solib-absolute-prefix ${GDB_TMP_DIR}" 31 echo "set solib-absolute-prefix ${GDB_TMP_DIR}"
32 echo "set solib-search-path ${GDB_TMP_DIR} 32 echo "set solib-search-path ${GDB_TMP_DIR}"
33 33
34 # The apps shared library symbols are not loaded by default so we 34 # The apps shared library symbols are not loaded by default so we
35 # load them here." 35 # load them here.
36 echo "break launch_app" 36 echo "break launch_app"
37 echo "continue" 37 echo "continue"
38 echo "sharedLibrary ${APP_NAME}" 38 echo "sharedLibrary ${APP_NAME}"
39
40 # Load libskia_android.so here.
41 echo "sharedLibrary skia_android"
39 } > $GDBSETUP 42 } > $GDBSETUP
40 43
41 44
42 # Launch gdb client 45 # Launch gdb client
43 echo "Entering gdb client shell" 46 echo "Entering gdb client shell"
44 GDB_COMMAND=$(command ls "$ANDROID_TOOLCHAIN"/*-gdb | head -n1) 47 GDB_COMMAND=$(command ls "$ANDROID_TOOLCHAIN"/*-gdb | head -n1)
45 "$GDB_COMMAND" -x $GDBSETUP 48 "$GDB_COMMAND" -x $GDBSETUP
46 49
47 # Clean up 50 # Clean up
48 rm -rf $GDB_TMP_DIR 51 rm -rf $GDB_TMP_DIR
OLDNEW
« no previous file with comments | « no previous file | platform_tools/android/bin/android_gdbserver » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698