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.
Activate TUI mode. The last active TUI window layout will be used if TUI mode has prevsiouly been used in the current debugging session, otherwise a default layout is used.
Disable TUI mode, returning to the console interpreter.
List and give the size of all displayed windows.
Changes which TUI windows are displayed. In each layout the command window is always displayed, the name parameter controls which additional windows are displayed, and can be any of the following:
Display the next layout.
Display the previous layout.
Display the source and command windows.
Display the assembly and command windows.
Display the source, assembly, and command windows.
src layout display the register, source, and command
windows. When in
split layout display the
register, assembler, and command windows.
Changes which TUI window is currently active for scrolling. The name parameter can be any of the following:
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 group
Changes the register group displayed in the tui register window to group. If the register window is not currently displayed this command will cause the register window to be displayed. The list of register groups, as well as their order is target specific. The following groups are available on most targets:
Repeatedly selecting this group will cause the display to cycle through all of the available register groups.
Repeatedly selecting this group will cause the display to cycle through all of the available register groups in the reverse order to next.
Display the general registers.
Display the floating point registers.
Display the system registers.
Display the vector registers.
Display all registers.
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. The name parameter can be one of
cmd (the command window),
disassembly window), or
regs (the register display window).
Set the width of tab stops to be nchars characters. This setting affects the display of TAB characters in the source and assembly windows.