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

Unified Diff: platform_tools/android/bin/android_gdb_apk

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 side-by-side diff with in-line comments
Download patch
Index: platform_tools/android/bin/android_gdb_apk
diff --git a/platform_tools/android/bin/android_gdb_apk b/platform_tools/android/bin/android_gdb_apk
index a1783cc48ef424c96d4bac432ee9e7959c19ef73..5d8a394e687368809de2cc5c87fc25d8bd6e0a57 100755
--- a/platform_tools/android/bin/android_gdb_apk
+++ b/platform_tools/android/bin/android_gdb_apk
@@ -52,12 +52,8 @@ echo "set solib-search-path $GDB_TMP_DIR" >> $GDBSETUP
# Launch gdb client
echo "Entering gdb client shell"
-if [ "$ANDROID_ARCH" == "x86" ]
-then
- $ANDROID_TOOLCHAIN/i686-linux-android-gdb -x $GDBSETUP
-else
- $ANDROID_TOOLCHAIN/arm-linux-androideabi-gdb -x $GDBSETUP
-fi
+GDB_COMMAND=$(command ls "$ANDROID_TOOLCHAIN"/*-gdb | head -n1)
+"$GDB_COMMAND" -x $GDBSETUP
# Clean up
rm -rf $GDB_TMP_DIR
« no previous file with comments | « no previous file | platform_tools/android/bin/android_gdb_exe » ('j') | platform_tools/android/bin/android_gdb_exe » ('J')

Powered by Google App Engine
This is Rietveld 408576698