3 <title>Debugging with GDB
</title>
4 <meta http-equiv=
"Content-Type" content=
"text/html">
5 <meta name=
"description" content=
"Debugging with GDB">
6 <meta name=
"generator" content=
"makeinfo 4.3">
7 <link href=
"http://www.gnu.org/software/texinfo/" rel=
"generator-home">
12 Node:
<a name=
"TUI%20Keys">TUI Keys
</a>,
13 Next:
<a rel=
"next" accesskey=
"n" href=
"TUI-Commands.html#TUI%20Commands">TUI Commands
</a>,
14 Previous:
<a rel=
"previous" accesskey=
"p" href=
"TUI-Overview.html#TUI%20Overview">TUI Overview
</a>,
15 Up:
<a rel=
"up" accesskey=
"u" href=
"TUI.html#TUI">TUI
</a>
19 <h3 class=
"section">TUI Key Bindings
</h3>
21 <p>The TUI installs several key bindings in the readline keymaps
22 (see
<a href=
"Command-Line-Editing.html#Command%20Line%20Editing">Command Line Editing
</a>).
23 They allow to leave or enter in the TUI mode or they operate
24 directly on the TUI layout and windows. The following key bindings
25 are installed for both TUI mode and the GDB standard mode.
28 <dt><kbd>C-x C-a
</kbd>
29 <dd><dt><kbd>C-x a
</kbd>
30 <dd><dt><kbd>C-x A
</kbd>
31 <dd>Enter or leave the TUI mode. When the TUI mode is left,
32 the curses window management is left and GDB operates using
33 its standard mode writing on the terminal directly. When the TUI
34 mode is entered, the control is given back to the curses windows.
35 The screen is then refreshed.
37 <br><dt><kbd>C-x
1</kbd>
38 <dd>Use a TUI layout with only one window. The layout will
39 either be
<code>source
</code> or
<code>assembly
</code>. When the TUI mode
40 is not active, it will switch to the TUI mode.
42 <p>Think of this key binding as the Emacs
<kbd>C-x
1</kbd> binding.
44 <br><dt><kbd>C-x
2</kbd>
45 <dd>Use a TUI layout with at least two windows. When the current
46 layout shows already two windows, a next layout with two windows is used.
47 When a new layout is chosen, one window will always be common to the
48 previous layout and the new one.
50 <p>Think of it as the Emacs
<kbd>C-x
2</kbd> binding.
54 <p>The following key bindings are handled only by the TUI mode:
58 <dd>Scroll the active window one page up.
61 <dd>Scroll the active window one page down.
64 <dd>Scroll the active window one line up.
67 <dd>Scroll the active window one line down.
70 <dd>Scroll the active window one column left.
73 <dd>Scroll the active window one column right.
76 <dd>Refresh the screen.
80 <p>In the TUI mode, the arrow keys are used by the active window
81 for scrolling. This means they are not available for readline. It is
82 necessary to use other readline key bindings such as
<C-p
>,
<C-n
>,
83 <C-b
> and
<C-f
>.