title: ndk-gdb unable to find gdb.setup
body: <p>I am trying to use ndk-gdb to debug my native android project. When I run the command ndk-gdb I get the error </p>
  
  <pre><code> Could not find gdb.setup under ./libs/
  </code></pre>
  
  <p>Explanation</p>
  
  <ul>
  <li>Running MacOSX, ndk r10e; Using ndk sample San Angeles</li>
  <li>Followed steps here to setup native debugging <a href="https://developer.android.com/ndk/guides/ndk-gdb.html" rel="nofollow">https://developer.android.com/ndk/guides/ndk-gdb.html</a></li>
  <li>Basically I set android:debuggable="true", APP_OPTIM := debug and built native using ndk-build NDK_DEBUG=1 (these 3 setting may be superfluous, but just in case)</li>
  <li>Used ant debug, adb install to install; Ran app and app runs fine</li>
  <li><p>Running ndk-gdb --verbose produces</p>
  
  <p><code>ndk-gdb --verbose</code></p>
  
  <p>Android NDK installation path: </p>
  
  <pre><code>  /Users/hanantha/Documents/Dev/android-ndk-r10e
  </code></pre>
  
  <p>Using default adb command: </p>
  
  <pre><code> /Users/hanantha/Documents/Dev/android-sdk-macosx/platform-tools/adb
  </code></pre>
  
  <p>ADB version found: Android Debug Bridge version 1.0.32</p>
  
  <pre><code> Revision eac51f2bb6a8-android
  </code></pre>
  
  <p>Using ADB flags: </p>
  
  <p>Using JDB command: </p>
  
  <pre><code>/usr/bin/jdb
  </code></pre>
  
  <p>Using auto-detected project path: .</p>
  
  <p>Found package name: <code>com.example.SanAngeles</code></p>
  
  <p>ABIs targetted by application: arm64-v8a armeabi armeabi-v7a armeabi-v7a mips mips64 x86 x86_64</p>
  
  <p>Device API Level: 19</p>
  
  <p>Device CPU ABIs: x86 </p>
  
  <p>Compatible device ABI: </p>
  
  <p>Using gdb setup init: </p>
  
  <pre><code> ./libs/armeabi/gdb.setup
  </code></pre>
  
  <p>Using toolchain prefix: </p>
  
  <pre><code> /Users/hanantha/Documents/Dev/android-ndk-r10e/toolchains/x86-4.8/prebuilt/darwin-x86_64/bin/i686-linux-android-
  </code></pre>
  
  <p>Using app out directory: ./obj/local/armeabi</p>
  
  <p>Found debuggable flag: <code>true</code></p>
  
  <p>ERROR: </p>
  
  <pre><code>    Could not find gdb.setup under ./libs/
     This usually means you modified your AndroidManifest.xml to set
     the android:debuggable flag to 'true' but did not rebuild the
     native binaries. Please call 'ndk-build' to do so,
     *then* re-install to the device!
  </code></pre></li>
  </ul>