Fix ndk-gdb when APP_ABI contains "all"
"all" in APP_ABI should be expanded into all available ABIs
Related issue:
http://code.google.com/p/android/issues/detail?id=35392
Change-Id: I0e9f5a5483c4487f501707f44df66b5bf15cebea
diff --git a/ndk-gdb b/ndk-gdb
index 94642ce..3b924e9 100755
--- a/ndk-gdb
+++ b/ndk-gdb
@@ -462,6 +462,9 @@
fi
APP_ABIS=`get_build_var APP_ABI`
+ALL_ABIS=`get_build_var NDK_ALL_ABIS`
+# replace "all" with all available ABIs
+APP_ABIS=${APP_ABIS//all/$ALL_ABIS}
log "ABIs targetted by application: $APP_ABIS"
# Check the ADB command, and that we can connect to the device/emulator