tonyo
tonyo

Reputation: 433

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.

Upvotes: 4

Views: 454

Answers (3)

wzy
wzy

Reputation: 1

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

Upvotes: 0

tonyo
tonyo

Reputation: 433

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

Upvotes: 3

Mike Mueller
Mike Mueller

Reputation: 2182

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

Upvotes: 1

Related Questions