I have several options that I set every time I open GDB, for instance:
set print thread-events off
Is there a way to set these options by default, perhaps something like a .gdb_rc file?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The initialization file for
gdbis called.gdbinit. You can put your desired options in this file. They’ll be automatically executed during gdb’s startup.Example content:
You may put the
.gdbinitfile into your $HOME or current directory. The latter overrides the settings in the global$HOME/.gdbinitfile.