Every time I start gdb, I immediately do:
set print thread-events off
It would be nice if I could do this from the command-line arguments, so that I could just set up an alias instead of re-typing it every time.
Is there a faster way to do this?
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.
How about a gdb startup script? Create
~/.gdbinitwith the commands to be executed when it starts.A
.gdbinitcan also be in the directory you are in when executing the program.