17.22.1. dump_regs
The following kernel modules and Baremetal executables dump and disassemble various registers which cannot be observed from userland (usually "system registers", "control registers"):
Some of those programs are using:
Alternatively, you can also get their value from inside GDB step debug with:
info registers all
or the short version:
i r a
or to get just specific registers, e.g. just ARMv8’s SCTLR:
i r SCTLR
but it is sometimes just more convenient to run an executable to get the registers at the point of interest.
See also: