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 |