[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
20.1 TUI overview 20.2 TUI Key Bindings TUI key bindings 20.3 TUI specific commands 20.4 TUI configuration variables
The GDB Text User Interface, TUI in short,
is a terminal interface which uses the curses
library
to show the source file, the assembly output, the program registers
and GDB commands in separate text windows.
The TUI is available only when GDB is configured
with the --enable-tui
configure option (see section B.3 configure
options).
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The TUI has two display modes that can be switched while GDB runs:
In the TUI mode, GDB can display several text window on the terminal:
The source, assembly and register windows are attached to the thread and the frame position. They are updated when the current thread changes, when the frame changes or when the program counter changes. These three windows are arranged by the TUI according to several layouts. The layout defines which of these three windows are visible. The following layouts are available:
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The TUI installs several key bindings in the readline keymaps (see section 25. Command Line Editing). They allow to leave or enter in the TUI mode or they operate directly on the TUI layout and windows. The following key bindings are installed for both TUI mode and the GDB standard mode.
Think of this key binding as the Emacs C-x 1 binding.
Think of it as the Emacs C-x 2 binding.
The following key bindings are handled only by the TUI mode:
In the TUI mode, the arrow keys are used by the active window for scrolling. This means they are not available for readline. It is necessary to use other readline key bindings such as C-p, C-n, C-b and C-f.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The TUI has specific commands to control the text windows. These commands are always available, that is they do not depend on the current terminal mode in which GDB runs. When GDB is in the standard mode, using these commands will automatically switch in the TUI mode.
layout next
layout prev
layout src
layout asm
layout split
layout regs
focus next | prev | src | asm | regs | split
refresh
update
winheight name +count
winheight name -count
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
The TUI has several configuration variables that control the appearance of windows on the terminal.
set tui border-kind kind
space
ascii
acs
set tui active-border-mode mode
normal
, standout
, reverse
,
half
, half-standout
, bold
and bold-standout
.
set tui border-mode mode
normal
standout
reverse
half
half-standout
bold
bold-standout
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Please send FSF & GNU inquiries & questions to [email protected]. There are also other ways to contact the FSF.
These pages are maintained by the GDB developers.
Copyright Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.
This document was generated by GDB Administrator on March, 29 2002 using texi2html