Chapter 21. Controlling gdb 183show commands nPrint ten commands centered on command number n.show commands +Print ten commands just after the commands last printed.21.4. Screen sizeCertain commands to gdb may produce large amounts of information output to the screen. To help youread all of it, gdb pauses and asks you for input at the end of each page of output. Type [RET] whenyou want to continue the output, or q to discard the remaining output. Also, the screen width settingdetermines when to wrap lines of output. Depending on what is being printed, gdb tries to break theline at a readable place, rather than simply letting it overflow onto the following line.Normally gdb knows the size of the screen from the terminal driver software. For example, on Unixgdb uses the termcap data base together with the value of the TERM environment variable and the sttyrows and stty cols settings. If this is not correct, you can override it with the set height andset width commands:set height lppshow heightset width cplshow widthThese set commands specify a screen height of lpp lines and a screen width of cpl characters.The associated show commands display the current settings.If you specify a height of zero lines, gdb does not pause during output no matter how long theoutput is. This is useful if output is to a file or to an editor buffer.Likewise, you can specify set width 0 to prevent gdb from wrapping its output.21.5. NumbersYou can always enter numbers in octal, decimal, or hexadecimal in gdb by the usual conventions:octal numbers begin with 0, decimal numbers end with ., and hexadecimal numbers begin with 0x.Numbers that begin with none of these are, by default, entered in base 10; likewise, the default displayfor numbers--when no particular format is specified--is base 10. You can change the default base forboth input and output with the set radix command.set input-radix baseSet the default base for numeric input. Supported choices for base are decimal 8, 10, or 16. basemust itself be specified either unambiguously or using the current default radix; for example, anyofset radix 012set radix 10.set radix 0xasets the base to decimal. On the other hand, set radix 10 leaves the radix unchanged no matterwhat it was.