title: Debugging native code of HelloJni
body: <p>I have been trying for days to debug into the c code of the sample hello-jni, with no success. I have installed all the requirements and followed many blog posts (repeating the process each time) to try to get this working. </p>
  
  <p>I am using </p>
  
  <ul>
  <li>Windows 7 64bit</li>
  <li>Eclipse Juno with CDT 8.0.2</li>
  <li>Android NDK r8b</li>
  <li>Android SDK 20.0.3</li>
  <li>the latest cygwin with make, gcc-core and gcc-g++ installed (altho I <strong>think</strong> NDK r8b doesn't need this?)</li>
  </ul>
  
  <p>I have followed this
  <a href="http://developer.android.com/tools/sdk/ndk/index.html" rel="nofollow noreferrer">http://developer.android.com/tools/sdk/ndk/index.html</a>
  to set up and build the apk. It builds and installs fine and I can debug java code if launched as an Android Application</p>
  
  <p>I followed this article about the NDK plugin
  <a href="http://tools.android.com/recent/usingthendkplugin" rel="nofollow noreferrer">http://tools.android.com/recent/usingthendkplugin</a>
  but when launching as an Android Native Application with a breakpoint in the c code, the app launches and runs as normal with no breakpoint being hit and no error messages!</p>
  
  <p>Any help would be greatly appreciated.
  Thanks!</p>
  
  <p>EDIT:</p>
  
  <p>Here's some errors that appear in the console for half a second before being cleared</p>
  
  <p>warning: while parsing target library list (at line 2): No segment defined for /system/bin/linker</p>
  
  <p>warning: Could not load shared library symbols for 52 libraries, e.g. /system/bin/linker.</p>
  
  <p>Use the "info sharedlibrary" command to see the complete listing.</p>
  
  <p>Do you need "set solib-search-path" or "set sysroot"?</p>
  
  <p>warning: Unable to find dynamic linker breakpoint function.</p>
  
  <p>GDB will be unable to debug shared library initializers
  and track explicitly loaded dynamic code.</p>
  
  <p>Quit (expect signal SIGINT when the program is resumed)</p>