show source - gdb split view with code
You can trigger it dynamically by push ctrl+x and ctrl+a.
I was just debugging a program in gdb and somehow I found a new feature I've never seen or even heard of before, a split view where I can see and browse the code in addition to giving commands:
What is this? What did I do, or, more specifically, how can I get this split-screen mode again? Is there a name for this mode, or somewhere I can read about how to use it?
You and also start it from the gdb shell using the command "-" (dash). Not sure how to dynamically turn it off though.
When GDB is in the standard mode, using
win will automatically switch in the TUI mode.
Other command for TUI mode:
List and give the size of all displayed windows.
focus next | prev | src | asm | regs | split
Set the focus to the named window. This command allows to change the active window so that scrolling keys can be affected to another window.
Read here form more help.