diff options
author | 2014-04-29 19:09:58 +0000 | |
---|---|---|
committer | 2014-04-29 19:09:58 +0000 | |
commit | 21a6d13a2bf1045607eb9fb6bf1da580f5d0ec4b (patch) | |
tree | e4f80876b4e133b1a0f3b9fe8162033e09245f26 /platform_tools/android/bin/android_gdb_exe | |
parent | 19a21894ead074d4c01c6b1c11400338c04bf9a2 (diff) |
Improve Android scripts:
* android_gdbserver:
- Don't complain if $GDB_TMP_DIR already exists
- Since $GDB_TMP_DIR/gdb.setup might already exist, overwrite the file.
* android_run_skia:
- Move resource files onto the device.
- Change to tmp directory before executing program.
* android_make, android_setup:
- stop assuming PWD is skia source directory.
NOTRY=true
R=djsollen@google.com, scroggo@google.com
Author: halcanary@google.com
Review URL: https://codereview.chromium.org/254923003
git-svn-id: http://skia.googlecode.com/svn/trunk@14442 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'platform_tools/android/bin/android_gdb_exe')
-rwxr-xr-x | platform_tools/android/bin/android_gdb_exe | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/platform_tools/android/bin/android_gdb_exe b/platform_tools/android/bin/android_gdb_exe index 920a16b38a..64be9bbd38 100755 --- a/platform_tools/android/bin/android_gdb_exe +++ b/platform_tools/android/bin/android_gdb_exe @@ -25,15 +25,19 @@ PORT=5039 # Set up gdb commands GDBSETUP=$GDB_TMP_DIR/gdb.setup -echo "file $GDB_TMP_DIR/skia_launcher" >> $GDBSETUP -echo "target remote :$PORT" >> $GDBSETUP -echo "set solib-absolute-prefix $GDB_TMP_DIR" >> $GDBSETUP -echo "set solib-search-path $GDB_TMP_DIR" >> $GDBSETUP - -# The apps shared library symbols are not loaded by default so we load them here -echo "break launch_app" >> $GDBSETUP -echo "continue" >> $GDBSETUP -echo "sharedLibrary $APP_NAME" >> $GDBSETUP +{ + echo "file ${GDB_TMP_DIR}/skia_launcher" + echo "target remote :${PORT}" + echo "set solib-absolute-prefix ${GDB_TMP_DIR}" + echo "set solib-search-path ${GDB_TMP_DIR} + + # The apps shared library symbols are not loaded by default so we + # load them here." + echo "break launch_app" + echo "continue" + echo "sharedLibrary ${APP_NAME}" +} > $GDBSETUP + # Launch gdb client echo "Entering gdb client shell" |