Using the tui option for gdb

I am currently working with NS-2 (network simulator) and I wanted to use the tui gdb option so that I could view the course code during debugging. (Like Visual Studio)

Currently, the original window is empty when I run "gdb -tui". However, I can see the file when I make a "list" in gdb, but I can not get it to automatically go to the file and point to the place of the break.

Any ideas how to do this?

+3
source share
4 answers

While I'm not sure about GDB TUI, if you are familiar with vi, be sure to check out CGDB . This is the TUI interface for GDB using key bindings like vi.

CGDB, escape (), , , !

+1

Ctrl-X A? gdb, / TUI.

+7

gdb :

$gdb -tui ./executable_name

, gdb: "" gdb.

, - (: main()), "run": .

+4

, .

, - , ( ). addr2line ( binutils), .

+1

Source: https://habr.com/ru/post/1724205/


All Articles