How to get GDB to do a 'list' after every step?

前端 未结 3 943
庸人自扰
庸人自扰 2020-12-09 04:05

I can step along with gdb, but I have to give the \"list\" command every time I want to see where I am in source code.

(gdb) next
351     int right = get_va         


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-09 04:46

    Use gdb TUI mode http://sourceware.org/gdb/onlinedocs/gdb/TUI-Overview.html#TUI-Overview You can enter or leave the TUI mode with C-x A key binding.

提交回复
热议问题