title: How to find base address of Android target processor using GDB
body: <p>I'm currently playing around with GDB and want to debug a native processor in Android, specifically /system/bin/lmkd.</p>
  
  <p>But I'm having trouble on how to stop GDB once that processor is invoked.</p>
  
  <p>This is what I've tried so far:</p>
  
  <p><strong>Android-side:</strong></p>
  
  <pre><code>./gdbserver tcp:5039 /system/bin/lmkd
  </code></pre>
  
  <p><strong>Client-side:</strong></p>
  
  <pre><code>gdb
  
  target remote localhost:5039
  </code></pre>
  
  <p>From here, I typed in <code>info shared</code>, so I could get the base address of the native processor, set the breakpoint, continue, invoke the processor, then it would stop.</p>
  
  <p>But <code>info shared</code> only shows address for shared object files.</p>
  
  <p>Any recommendation on how to set breakpoint on the processor that I don't know the address to?</p>