A TUI (Text User Interface)
for gdb
using Python Prompt Toolkit
Clone the repository:
$ git clone https://github.com/anakrish/gdbw.git
Prepend gdbw root folder to PATH
and make sure that gdbw/gdb
appears before /usr/bin/gdb
:
$ export PATH=~/gdbw:$PATH
$ which -a gdbw
~/gdbw/gdb
/usr/bin/gdb
Running gdb
will automatically launch gdbw
.
Keys | Action |
---|---|
Ctrl-x 1 |
Show source code and console |
Ctrl-x 2 |
Show source code, disassembly and console |
Ctrl-x a |
Show only console |
Ctrl-x b |
Toggle show breakpoints |
Ctrl-x c |
Toggle show callstack |
Ctrl-x d |
Toggle show disassembly |
Ctrl-x r |
Toggle show registers |
Ctrl-x s |
Toggle show source |
Ctrl-x t |
Toggle show threads |
Ctrl-x v |
Toggle show variables (arguments and locals) |
Ctrl-up |
Enter copy mode in console |
Ctrl-c |
Exit copy mode or send interrupt to program |
Shift-left |
Focus previous window |
Any window other than the console can be scrolled up or down by hovering the mouse in the window and using a scroll gesture or mouse wheel.
The console can be scrolled by entering copy mode
by pressing Ctrl-up
.
Any widow can be selected by double-clicking.