title: Can't step into shared library, symbols not loaded
body: <p>I have an app that I have developed using QT Creator. The project builds and references a couple shared libraries that are in the build tree. When I try to debug my project using the remote debugger, I can't step into or break on any of the library code. </p>
  
  <p>I have tried fixing it by setting <code>LD_LIBRARY_PATH</code>, using <code>set-solib-search-path</code>, etc.</p>
  
  <p>More detailed info:</p>
  
  <ul>
  <li>Host machine is a VM running Ubuntu 16.04</li>
  <li>Target machine is a BeagleBone Black running Jessie</li>
  <li>Everything is compiled as debug (with the -g flag)</li>
  <li>My executable is in <code>/home/debian</code></li>
  <li>My library files are in <code>/home/debian/lib</code></li>
  </ul>
  
  <p><code>ls $LD_LIBRARY_PATH</code> shows all of my library files, as expected</p>
  
  <p>Start up command for GDB:
  <code>set solib-search-path /home/debian/lib</code></p>
  
  <p>running <code>gdb /home/debian/lib/mylib.so.1</code> yields the following:</p>
  
  <pre><code>GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
  Copyright (C) 2014 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later &lt;http://gnu.org/licenses/gpl.html&gt;
  This is free software: you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
  and "show warranty" for details.
  This GDB was configured as "arm-linux-gnueabihf".
  Type "show configuration" for configuration details.
  For bug reporting instructions, please see:
  &lt;http://www.gnu.org/software/gdb/bugs/&gt;.
  Find the GDB manual and other documentation resources online at:
  &lt;http://www.gnu.org/software/gdb/documentation/&gt;.
  For help, type "help".
  Type "apropos word" to search for commands related to "word"...
  Reading symbols from lib/mylib.so.1...done.
  </code></pre>
  
  <p>which implies that gdb is able to read the symbols.</p>
  
  <p>However, running <code>info shared library</code> in the debugger console in qt yields</p>
  
  <pre><code>&gt;~"From        To          Syms Read   Shared Object Library\n"
  &gt;~"                        No          /home/debian/lib/mylib.so.1\n"
  </code></pre>
  
  <p>Running <code>sharedlibrary /home/debian/lib/mylib.so.1</code> doesn't seem to do anything; it just says "done".</p>
  
  <p>Running <code>add-symbol-file /home/debian/lib/mylib.so.1</code> fails with
  <code>The address where /home/debian/lib/mylib.so.1 has been loaded is missing</code></p>
  
  <p>The application output screen says <code>"Could not load shared library symbols"</code> when it starts, and says <code>"Do you need "set solib-search-path" or "set sysroot"?"</code> but <code>show solib-search-path</code> prints out 
  <code>The search path for loading non-absolute shared library symbol files is /home/debian/lib.</code> as expected. </p>
  
  <p>How can I resolve this so that I can debug my libraries?</p>
  
  <p><strong>EDIT:</strong>
  If I debug on the target device, instead of remote debugging from Qt Creator, gdb can load the symbols, step into library code, and set breakpoints just peachily. Anyone have an idea as to why I can't remote debug?</p>