title: Android: debug shared library
body: <p>I'd like to debug android NDK application, more precisely - I want to check what arguments (<s>r4 - r8</s> r1 - r4 registers) are passed to function from shared library in apk.</p>
  
  <p>What I have tried:</p>
  
  <ul>
  <li>I've run gdbserver :1234 --attach  on the device</li>
  <li>I've run arm-linux-androideabi-gdb from ndk package by Google on the PC</li>
  <li>I've set solib-search-path and written target remote :1234</li>
  </ul>
  
  <p>So far, so good. Now I try to set breakpoint (<code>break &lt;function name&gt;</code>) (function name from 
  objdump), but I get repond: <code>Cannot access memory at address &lt;...&gt;</code>. <code>info shared</code> says the library is loaded, Does it mean I can't set breakpoint there? Or am I doing something wrong?</p>