This command displays the name and content of registers for
the current stack frame. The registers listed by this command are
a subset that are most useful when debugging C/C++ applications.
You can use the
info all-registers command to list
the full set of registers.
When application code calls a function it is common for any existing register values to be saved, so that the registers can be used by the calling function for other purposes. The original register values are then restored when the function returns. When displaying register values the debugger tries to show the value of the actual registers prior to each function call, according to the currently selected stack frame. A consequence of this is that some registers might be shown with undefined values because the debugger is unable to determine the actual value.
Specifies the register name. If no
is specified then all application level registers are displayed.