Search code examples
debuggingterminalgdbcgdb

Jump to current line being executed in cgdb


Is it possible to jump to current line being executed in the Source Window of cgdb?

It would be great to have a command or a shortcut to do this, especially after browsing files in the File Dialog mode for a long time.


Solution

  • It turned out that you can jump to current line easily: just use gdb frame command without arguments, or simply f.