You copied the Doc URL to your clipboard.

info registers

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.


info registers [register]



Specifies the register name. If no register is specified then all application level registers are displayed.


info registers                # Display info for all application level registers
info registers pc             # Display info for PC register