The usual way to examine data in your program is with the
p), or its synonym
It evaluates and prints the value of an expression of the language your
program is written in (see section Using GDB with Different Languages).
print /f exp
A more low-level way of examining data is with the
It examines data in memory at a specified address and prints it in a
specified format. See section Examining memory.
If you are interested in information about types, or about how the fields
of a struct
are declared, use the
command rather than
Go to the first, previous, next, last section, table of contents.