Difference between x and p in gdb?

I am a bit confused about using x and p in gdb. Which one do I use to look at the contents of the register and which one look at something in memory?

+4
source share
1 answer

x shows contents of memory address

p shows you the value stored in a named variable

info registersand info frameregisters are displayed and what they do.

+5
source

All Articles