title: Loading local shared libraries in gdb
body: <p>I would have thought this question was already asked, but I couldn't find it. Bear with me if it was.</p>
  
  <p>I am trying out modifications to an existing program in a debian installation.</p>
  
  <p>The program, call it foo, when compiled creates some of it's own shared libraries. I would like to debug the program and step into one of the  local shared libraries, call it libbar.so.</p>
  
  <p>However since this is an existing program there is already a /usr/lib/libbar.so, which I do not want to overwrite. </p>
  
  <p>So how do I get gdb to use the local libbar.so?</p>