You can run gdb without printing the front material, which describes gdb's non-warranty, by specifying --silent (or -q/--quiet):
Is there an option in .gdbinit
to do the same as gdb -q
?
I do not mind seeing important warranty stuff, but not each time I start gdb. I know I can use alias, but I am curious about the config file.
https://sourceware.org/gdb/download/onlinedocs/gdb/index.html
I looked into website documentation, read the man page, but cannot see if that is possible.
I was curious about this, so I looked at the source. There is no way to do it.
First, this relies on a local variable in the argument parsing function (captured_main
). Second, the message is printed before ~/.gdbinit
is read.
Aside from an alias (as you mentioned), the only other way to do this would be to modify gdb.
only way to keep your sanity if you are starting gdb a dozen times in a row is:
alias gdb='gdb -q'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With