title: How to debug native code using gdbserver
body: <p>I have followed the instructions for debugging native code found here:
  <a href="http://www.eweek.com/c/a/Linux-and-Open-Source/How-to-Set-Up-Android-Platform-Development-and-Debugging/" rel="nofollow">http://www.eweek.com/c/a/Linux-and-Open-Source/How-to-Set-Up-Android-Platform-Development-and-Debugging/</a></p>
  
  <p>To do this, you have to launch gdbserver from an adb shell. I have copied gdbserver to the target filesystem, but can't make it executable (chmod gives permissions errors or 'bad mode' errors).</p>
  
  <p>Do I need to root my device to start gdbserver? (How??)
  Do I need to copy gdbserver manually?
  Is there an easier way to do this? This is turning into a black hole of productivity. All I want to do is debug my jni code...</p>
  
  <p>TIA for any help.</p>