answered 2023-06-18 16:04:01 +0000
You can clear the command screen in gdb by typing the following command:
(gdb) shell clear
Alternatively, you can use the keyboard shortcut Ctrl + L to clear the screen.
Ctrl + L