Added ndk-gdb{.py|-py|-py.cmd}

Pythonic replacements for the ndk-gdb shell script.

Attempts to emulate the old behaviour, including verbose mode and
logging and also the general layout of the shell script.

Added a new command line option, --tui/-t to launch
gdb in text user interface mode, if the gdb is built
with support for this.

Change-Id: Ic02feb18d70fe449bf54a531ffb973513dc82783
diff --git a/ndk-gdb-py b/ndk-gdb-py
new file mode 100755
index 0000000..f2a4d94
--- /dev/null
+++ b/ndk-gdb-py
@@ -0,0 +1,17 @@
+#!/bin/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
+
+# -u means unbuffered standard io.
+$PROGDIR/prebuilt/$HOST_TAG/bin/python -u $PROGDIR/ndk-gdb.py "$@"