I'm a bit confused about the uses of x and p in gdb. Which one do I use to look at the contents of a register and which one to look at something in memory?
x
shows you the contents of a memory address
p
shows you the value stored in a named variable
info registers
and info frame
shows you registers and what they're doing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With