Laden .gdbinit vom aktuellen Verzeichnis schlägt fehl mit "auto-laden abgelehnt wurde, indem Sie Ihre "auto-load-sicher-Weg""

Ich habe Probleme beim laden .gdbinit-Datei befindet sich im aktuellen Verzeichnis. Am Start von gdb, bekomme ich diese:

GNU gdb (GDB) 7.5-ubuntu
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
warning: File "/home/user1/test/.gdbinit" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load". 

Kann ich laden .gdbinit-Datei in das aktuelle Verzeichnis durch das starten von gdb mit:

gdb -iex 'add-auto-load-safe-path .'

beschrieben hier. aber gibt es eine Möglichkeit festlegen $debugdir enthalten das aktuelle Verzeichnis?

Versuchen

$ export debugdir=.
$ gdb

ergibt die gleiche Warnung wie oben.

InformationsquelleAutor fragapanagos | 2013-05-16
Schreibe einen Kommentar