Datasheet
n Indicates how much memory to display (in u units), default = 1
f Indicates the display format, where:
s means null-terminated string
i means machine instruction
x Display as hexadecimal (default)
d Display as signed decimal
u Display as unsigned decimal
c Print as a char constant
f Print in floating point syntax
t Print integer as binary
u The unit size, which can be:
b Bytes
h Halfwords (two bytes)
w Words (four bytes)
g Giant worlds (eight bytes)
> Note: Whenever you change the unit size ( u ), the updated value becomes
> the system default and will be retained on future requests until it is
> changed again.
For example, to display the same 32-bit stack pointer at address 0 on an ARM
processor as four individual bytes displayed as unsigned decimal values you
would enter:
(gdb) x/4ub 0
0x0: 0 128 0 32
To display the 32-bit value in binary notation you would enter:
(gdb) x/4tb 0
0x0: 00000000 10000000 00000000 00100000
To display 4 'words' as 32-bit values in hex notation:
(gdb) x/4xw 0
0x0: 0x20008000 0x00003049 0x00003099 0x00003099
Stack Manipulation
The following commands can be used to work with the stack such as producing a
dump of the stack frames, or checking for stack overflow.
Display the Stack Trace
You can display a list of function calls up to the point where the MCU halted
with the backtrace or bt command, which will dump individual stack
frame records:
© Adafruit Industries https://learn.adafruit.com/adafruit-nrf52-pro-feather Page 73 of 87










