~/.gdbinit is loaded when I start a remote debugging session from Qt Creator.
How can I force gdb to load a project specific .gdbinit file?
I've added this line to ~/.gdbinit
set auto-load local-gdbinit on
and added an additional .gdbinit file to my project directory and to the build output directory, but gdb seems to ignore both.
The manual for local-gdbinit says, that when set to on, gdb will look for a .gdbinit in the current directory. But I can't even figure out what the current directory is once Qt Creator starts gdb, so I'm pretty lost.
In another failed attempt (as found in this answer) I've added this to ~/.gdbinit
set auto-load safe-path /
Qt Creator version is 2.7.1, gdb version is 7.4-2012.04.