gdb: how to print the current line or find the current line number?

后端 未结 5 1673
渐次进展
渐次进展 2020-12-23 02:56

list commands prints a set of lines, but I need one single line, where I am and where an error has probably occurred.

5条回答
  •  隐瞒了意图╮
    2020-12-23 03:10

    All the answers above are correct, What I prefer is to use tui mode (ctrl+X A or 'tui enable') which shows your location and the function in a separate window which is very helpful for the users. Hope that helps too.

提交回复
热议问题