The TUI has specific commands to control the text windows. These commands are always available, even when GDB is not in the TUI mode. When GDB is in the standard mode, most of these commands will automatically switch to the TUI mode.
Note that if GDB’s
stdout is not connected to a
terminal, or GDB has been started with the machine interface
interpreter (see The GDB/MI Interface), most of
these commands will fail with an error, because it would not be
possible or desirable to enable curses window management.
List and give the size of all displayed windows.
Display the next layout.
Display the previous layout.
Display the source window only.
Display the assembly window only.
Display the source and assembly window.
Display the register window together with the source or assembly window.
Make the next window active for scrolling.
Make the previous window active for scrolling.
Make the source window active for scrolling.
Make the assembly window active for scrolling.
Make the register window active for scrolling.
Make the command window active for scrolling.
Refresh the screen. This is similar to typing C-L.
tui reg float
Show the floating point registers in the register window.
tui reg general
Show the general registers in the register window.
tui reg next
Show the next register group. The list of register groups as well as
their order is target specific. The predefined register groups are the
tui reg system
Show the system registers in the register window.
Update the source window and the current execution point.
winheight name +count
winheight name -count
Change the height of the window name by count lines. Positive counts increase the height, while negative counts decrease it.
Set the width of tab stops to be nchars characters.