How can one see content of stack with GDB?
Asked 07 September, 2021
Viewed 1K times
  • 51
Votes

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 type print /d $0x4(%esp), GDB gives an error.

Platform: Linux and GDB

4 Answer