The usual way to examine data in your program is with the
p), or its synonym
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 expr
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 or a class are declared, use the
command rather than
Go to the first, previous, next, last section, table of contents.