title: Search symbols again after setting debug-file-directory
body: <p>I've established a build process that makes binaries and then separates the debug info from them (build-ids are enabled).</p>
  
  <p>The build can also generate the <code>.gdbinit</code> files with the lines like <code>set debug-file-directory &lt;dir&gt;</code>, so the debugger can find them (there are lots of executables and libraries in the project).</p>
  
  <p>But when I run <code>$ gdb myprogram</code>, gdb can't find the symbols. I have to do <code>(gdb) file myprogram</code> to redo the search for the debug-symbols file. It seems that <code>.gdbinit</code> is executed after opening <code>myprogram</code>.</p>
  
  <p>How to make it automatic?</p>