User Tools

Site Tools



GDB options

Launch GDB in TUI mode

gdb -tui <MyProgram>


Set a breakpoint at the given location (function name, line number, or address of an instruction)

break <location>

Arguments for the debugged program

set args <arguments>
show args

TUI-specific commands

Use intel syntax to display assembly code

set disassembly-flavor intel

List and give the size of all displayed windows

info win

Display the register window together with the source or assembly window

layout regs

Key bindings

Enter or leave TUI mode

C-x a

Use a TUI layout with at least two windows

C-x 2

Change the active window

C-x o


wiki/gdb.txt ยท Last modified: 2014/02/12 00:27 by bparmentier