Connect Nexus One to Mac running Snow Leopard. Run \"debug\" from Eclipse. Shows the execution of
/usr/local/android-ndk-r5b/ndk-build NDK_DEBUG=1
Another workaround is to push libs/armeabi/gdbserver to /data/data/your.pkg/lib on a rooted device.
The AndroidManifest.xml file had Windows carriage control (\r\n) which was messing up the ndk-gdb script. To fix this, I edited the file in vi and did a "set filetype=unix".
"set filetype=unix"