aboutsummaryrefslogtreecommitdiff
path: root/ndk-gdb
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-09-20 17:52:00 -0700
committerAndrew Hsieh <andrewhsieh@google.com>2012-09-21 15:32:05 -0700
commit2c1bb7ca4db1efd528e2ae7beac53b1b04cdb154 (patch)
tree85f075f4918bff20bd2a31c922b5f9b2cdbd7bc1 /ndk-gdb
parent97c323109f486038f65728019b74e8482ae5ce90 (diff)
downloadndk-2c1bb7ca4db1efd528e2ae7beac53b1b04cdb154.tar.gz
Bail out when NDK installation path contains space
Check to ensure NDK isn't installed in path containing space. Many NDK scripts aren't ready to handle path with space yet. Change-Id: I1a76a9ff7bb84fd9a5c27f73e17b753c858070e7
Diffstat (limited to 'ndk-gdb')
-rwxr-xr-xndk-gdb13
1 files changed, 12 insertions, 1 deletions
diff --git a/ndk-gdb b/ndk-gdb
index f7a0c396c..d307f24c0 100755
--- a/ndk-gdb
+++ b/ndk-gdb
@@ -24,7 +24,18 @@
# need to launch ndk-gdb from your application project directory
# after doing ndk-build && ant install && <start-application-on-device>
#
-. `dirname $0`/build/core/ndk-common.sh
+PROGDIR=`dirname $0`
+PROGDIR=`cd $PROGDIR && pwd`
+
+# Check if absolute NDK path contain space
+#
+case $PROGDIR in
+ *\ *) echo "ERROR: NDK path cannot contain space"
+ exit 1
+ ;;
+esac
+
+. $PROGDIR/build/core/ndk-common.sh
force_32bit_binaries