f78
Output formats
The simplest use of output formats is to say how to print a value already
computed. This is done by starting the arguments of the print command with a slash
and a format letter. The format letters supported are:
c
For example, to print the program counter in hex (see
To reprint the last value in the value history with a different format, you
can use the
0
Regard the bits of the value as an integer, and print the integer in
hexadecimal.
Print as integer in signed decimal.
Print as integer in unsigned decimal.
Print as integer in octal.
Print as integer in binary. The letter t stands for two (b cannot be used because these format letters are also used with the x command, where b stands for byte; see Examining memory).
Print as an address, both absolute in hexadecimal and as an offset from the
nearest preceding symbol. You can use this format used to discover where (in what
function) an unknown address is located:
$3 = 0x54320 <_initialize_vx+396>
Regard the bits of the value as a floating point number and print using
typical floating point syntax.