4

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.

tonyo
  • 433
  • 7
  • 14

3 Answers3

3

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

tonyo
  • 433
  • 7
  • 14
1

I don't think we have a shortcut for it. I usually do a quick up and down (or vice versa) in gdb.

Mike Mueller
  • 2,072
  • 15
  • 16
0

You can use '.. Please please See https://github.com/cgdb/cgdb/issues/53

wzy
  • 1
  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Apr 21 '22 at 17:26