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

Unified Diff: platform_tools/android/bin/android_gdb_exe

Issue 865943007: Cleanup the android scripts. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: actually saving the file Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: platform_tools/android/bin/android_gdb_exe
diff --git a/platform_tools/android/bin/android_gdb_exe b/platform_tools/android/bin/android_gdb_exe
deleted file mode 100755
index 42299949123abfbcd417147856bcba19c175a562..0000000000000000000000000000000000000000
--- a/platform_tools/android/bin/android_gdb_exe
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/bash
-#
-# android_gdb: Pushes gdbserver. Connects and enters debugging environment.
-
-SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-source $SCRIPT_DIR/android_setup.sh
-
-# setup the gdbserver
-export BUILDTYPE # from android_setup.sh
-$SCRIPT_DIR/android_gdbserver -d ${DEVICE_ID} ${APP_ARGS[@]}
-
-# quit if gdbserver setup failed
-if [[ "$?" != "0" ]]; then
- echo "ERROR: gdbserver failed to setup properly."
- exit 1
-fi
-
-# Wait for gdbserver
-sleep 2
-
-# variables that must match those in gdb_server
-GDB_TMP_DIR=$(pwd)/android_gdb_tmp
-APP_NAME=${APP_ARGS[0]}
-PORT=5039
-
-# Set up gdb commands
-GDBSETUP=$GDB_TMP_DIR/gdb.setup
-{
- 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}"
-
- # Load libskia_android.so here.
- echo "sharedLibrary skia_android"
-} > $GDBSETUP
-
-
-# Launch gdb client
-echo "Entering gdb client shell"
-GDB_COMMAND=$(command ls "$ANDROID_TOOLCHAIN"/*-gdb | head -n1)
-"$GDB_COMMAND" -x $GDBSETUP
-
-# Clean up
-rm -rf $GDB_TMP_DIR

Powered by Google App Engine
This is Rietveld 408576698