I want to automatise gdb, and waiting for the user input is undesirable. How to disable the message "Type <return> to continue, or q <return> to quit"
in gdb?
Logging GDB's output to a file This is done by first issuing the command set logging file my-gdb-log , followed by the command set logging on . Later on, you can issue the set logging off command to stop sending GDB output to the log file.
On non-macOS hosts the locations searched are: The file gdb/gdbearlyinit within the directory pointed to by the environment variable XDG_CONFIG_HOME , if it is defined. The file . config/gdb/gdbearlyinit within the directory pointed to by the environment variable HOME , if it is defined.
Disable pagination: set pagination off
Source: https://sourceware.org/gdb/onlinedocs/gdb/Screen-Size.html
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