How can one see content of stack with GDB?
I am new to GDB, so I have some questions:
How can I look at content of the stack? Example: to see content of register, I type
info registers
. For the stack, what should it be?How can I see the content of
$0x4(%esp)
? When I typeprint /d $0x4(%esp)
, GDB gives an error.
Platform: Linux and GDB