Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Want to see value stored in stack

Options
  • 19-10-2009 11:24am
    #1
    Closed Accounts Posts: 248 ✭✭


    Im learning assembly in linux and using the gdb debugger. I know I can see the address of the stack pointer using print/x $esp. But I want to see the value stored at this address.

    Say the stack pointer (esp) value is 0xbf81da10
    T then push the value 1 onto the stack - pushl $1
    Now when I type print/x $esp I get 0xbf81da0c

    But I want to see the value that is currenly in being stored in the stack, not address of the stack pointer. How can I do this?


Comments

  • Closed Accounts Posts: 248 ✭✭bSlick


    nevermind, forgot about the 'x' command.


Advertisement