Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How clear gdb command screen?

Tags:

c++

c

gcc

gdb

binutils

People also ask

How do I clear the command screen?

In Command Prompt, type: cls and press Enter. Doing this clears the entire application screen. Close and reopen Command Prompt.

How do I get out of GDB prompt?

To exit GDB, use the quit command (abbreviated q ), or type an end-of-file character (usually C-d ). If you do not supply expression , GDB will terminate normally; otherwise it will terminate using the result of expression as the error code.

How do I run a command in GDB?

Use the run command to start your program under GDB. You must first specify the program name (except on VxWorks) with an argument to GDB (see section Getting In and Out of GDB), or by using the file or exec-file command (see section Commands to specify files).


Hit Control + L. Works for me in Linux and Mac OS X as well with recent versions of GDB.


Depending on the environment you can try this key combination: Ctrl+L. That is: hold down the Control key, and type the L key.

But this may not work in all environments. You can also try the following: in gdb you can execute shell commands using shell: use this to call out to the shell to clear the terminal:

shell clear