Go to the previous, next section.

You 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 display for numbers--when no particular
format is specified--is base 10. You can change the default base for
both input and output with the `set radix`

command.

`set radix`

`base`- Set the default base for numeric input and display. Supported choices
for
`base`are decimal 8, 10, or 16.`base`must itself be specified either unambiguously or using the current default radix; for example, any ofset radix 012 set radix 10. set radix 0xa

sets the base to decimal. On the other hand,

``set radix 10'`leaves the radix unchanged no matter what it was. `show radix`

- Display the current default base for numeric input and display.

Go to the previous, next section.