And should it be called .gdbinit
or gdb.ini
?
I thought that I would try this file.
I am testing with Vectorcast, which uses MinGw. I copied the file with both names (.gdbinit
and gdb.ini
) to both the Vectorcast directory and it's MinGW bin
directory, where gdb.exe
is, as I was unsure which is the current working directory
, but don't see anything which I would expect from that file.
So, where should I put it, and what should I call it?
You should put it into your $HOME
directory or into current directory, see How do I load .gdbinit on gdb startup?.
You can know your home directory from gdb shell with either
(gdb) show environment HOME
or
(gdb) shell echo $HOME
You can know current directory with
(gdb) shell pwd
And should it be called .gdbini or gdb.ini?
No, it should be called .gdbinit
.