title: Loading .gdbinit from current directory fails with "auto-loading has been declined by your `auto-load safe-path'"
body: <p>I'm having trouble loading a .gdbinit file located in the current directory. On starting gdb, I get this: </p>
  
  <pre><code>GNU gdb (GDB) 7.5-ubuntu
  Copyright (C) 2012 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 "x86_64-linux-gnu".
  For bug reporting instructions, please see:
  &lt;http://www.gnu.org/software/gdb/bugs/&gt;.
  warning: File "/home/user1/test/.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load". 
  </code></pre>
  
  <p>I can load the .gdbinit file in the current directory by starting gdb with:</p>
  
  <pre><code>gdb -iex 'add-auto-load-safe-path .'
  </code></pre>
  
  <p>as described <a href="http://sourceware.org/gdb/onlinedocs/gdb/Auto_002dloading-safe-path.html" rel="noreferrer" title="here">here</a>. but is there a way set $debugdir to include the current directory?</p>
  
  <p>Trying </p>
  
  <pre><code>$ export debugdir=.
  $ gdb
  </code></pre>
  
  <p>yields the same warning as above.</p>