Controlling GDB

set complaint limit
Set number of messages on unusual symbols.
show complaint
Show number of messages on unusual symbols.
set confirm on/off
Enable/disable cautionary queries.
show confirm
Show cautionary queries setting.
set editing on/off
Set readline command-line editing.
show editing
Show readline command-line editing.
set height lpp
Set number of lines before pause in display.
show height
Show number of lines before pause in display.
set language lang
Set language for GDB expressions (auto, c, or modula-2).
show language
Show language for GDB expressions.
set listsize n
Set number of lines shown by list.
show listsize
Show number of lines shown by list.
set prompt str
Set GDB prompt to str.
show prompt
Show GDB prompt string.
set radix base
Set octal, decimal, or hex number representation.
show radix
Show octal, decimal, or hex number representation.
set verbose on/off
Set displaying of message when loading symbols.
show verbose
Show displaying of message when loading symbols.
set width cpl
Set number of characters before line wrap.
show width
Show number of characters before line wrap.
set write on/off
Allow/disallow patching binary or core files.
show width
Show allow/disallow patching of binary or core files.
print address on/off
Print memory address in stacks, values.
print array on/off
Compact or attractive format for arrays.
print demangl on/off
Demangled source or internal form for C++ symbols.
print elements limit
Number of array elements to display.
print object limit
Print C++ derived types for objects.
print pretty on/off
Indented or compact struct display.
print union on/off
Display of union members.
print vtble on/off
Display of C++ virtual function tables.
show commands
Show last 10 commands.
show commands n
Show 10 commands around number n.
show commands +
Show next 10 commands.