title: GDBSERVER exits on start-up
body: <p>I am trying to debug a mixed code on Android (Java/C/C++).  My target device is Vizio 1008.  The code runs on the emulator and I can debug it from Eclipse using GDB.  However, I cannot do this on the real device.</p>
  
  <p>After days of struggling with this I localized the problem:</p>
  
  <p>When GDBSERVER starts on the device (successfully), it immediately quits with the message:
  "Unknown register d0 requested".  Therefore, no debugging session is possible.  I also tried DS-5 debugger from ARM.  GDBSERVER stays connected, but exits on the connection attempt from the remote debugger.  I tried GDBSERVER debug output, but it does not provide any useful info.</p>
  
  <p>Even more strange, I tried any version of GDBSERVER I could get, and all of them behave like this.  However, I found GDBSERVER from one of old versions of Google NDK (3 or 4 versions back).  And this version WORKS!!!  But, the debugger (on the host) dies very soon (segmentation fault), even I know that program is OK.</p>
  
  <p>I looked at GDBSERVER source code, and, as it looks like, this error relates to the startup sequence, when GDBSERVER inspects the hardware.  Probably, it relates to floating point co-processor, but I am not sure, as this error message is pretty generic.</p>
  
  <p>If it matters, I am devloping on Windows using Google NDK.  The code is 99% C/C++ with Java shell and a few functions implemented in Java (threaded HTTP calls).  Again, the application works on the device and can be debugged (both Java and C/C++) on the emulator.  I also can debug Java portion on the device.</p>
  
  <p>Does anybogy know what it could be? And how to fix that?  Is it Vizio?</p>
  
  <p>Thank you in advance.</p>