title: DS-5 CE Android Debug tool setup: "Replacing NDK's gdbserver"
body: <p>I would like to debug a combined Java/C++ app which is occasionally crashing inside the C++. I am using Eclipse Kepler on a Windows-7-64 PC.</p>
  
  <p>After reading <a href="https://stackoverflow.com/questions/17705109/how-to-debug-c-c-code-ndk-in-eclipse">this SO</a> question I decided to try out the DS-5 CE Android Debug tool. So I went to the <a href="http://ds.arm.com/developer-resources/tutorials/android-native-app-debug-tutorial/" rel="nofollow noreferrer">instructions</a> page. I installed the things requested in the "prerequisites" section, and then came across these words:</p>
  
  <p><strong>To use the DS-5 Debugger to debug native code, update the version of gdbserver in the Android NDK ...\toolchains...\prebuilt directory with the version of gdbserver provided by DS-5. You can locate this file by selecting Help → ARM Extras... from the main menu. Ensure that you rename it to gdbserver.</strong></p>
  
  <p>Now I'm completely confused. I'm not sure what it means to replace the gdbserver. Is gdbserver a single file? multiple files? a directory? If I search for "toolchains" and "prebuilt", I see that there are multiple directories on my system that fit the bill. I have c:\android-ndk-r9c\toolchains\xxx\prebuilt\ where xxx could be a variety of things like llvm-3.3 or renderscript or x86-4.6 or x86-4.8. Which one are they talking about? If I select Help → ARM Extras... then a window pops up showing me a directory called "arm" which contains three subdirectories, one of which is "gdbserver".</p>
  
  <p>I presume I new need to copy some files from one location to another... but exactly which files, and what locations, is a mystery to me.</p>