title: How do I prepend a directory the library path when loading a core file in gdb on Linux
body: <p>I have a core file generated on a remote system that I don't have direct access to.  I also have local copies of the library files from the remote system, and the executable file for the crashing program.</p>
  
  <p>I'd like to analyse this core dump in gdb.</p>
  
  <p>For example:</p>
  
  <pre><code>gdb path/to/executable path/to/corefile
  </code></pre>
  
  <p>My libraries are in the current directory.</p>
  
  <p>In the past I've seen debuggers implement this by supplying the option "-p ." or "-p /=."; so my question is:</p>
  
  <p>How can I specify that libraries be loaded first from paths relative to my current directory when analysing a corefile in gdb?</p>