GDB Commands">

GDB Commands

Posted by Beetle B. on Wed 09 October 2019

How do you repeat the last command? Just type Enter. It doesn’t work on all commands.

If you want to repeat an earlier sequence of commands, type the command and press Ctrl-o. This will fetch the next command and put it on the command line.

Soemtimes you need to enter a string that has special characters (e.g. <> in a template in C++). See the info page on how to escape those characters.

tags : gdb