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?
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?
How about a gdb startup script? Create ~/.gdbinit with the commands to be executed when it starts.
A .gdbinit can also be in the directory you are in when executing the program.
Yes:
gdb -ex "set print thread-events off" ...other-args...