Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable "Type <return> to continue, or q <return> to quit" in gdb?

Tags:

debugging

gdb

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?

like image 458
Fábio Perez Avatar asked Mar 02 '15 17:03

Fábio Perez


People also ask

How do I save a GDB output?

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.

Where is GDB config 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.


1 Answers

Disable pagination: set pagination off

Source: https://sourceware.org/gdb/onlinedocs/gdb/Screen-Size.html

like image 81
Fábio Perez Avatar answered Sep 26 '22 14:09

Fábio Perez