This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: x86 stack pointer


> Date: Fri, 03 Jun 2005 16:39:51 +1000
> From: Russell Shaw <rjshaw@netspace.net.au>
> 
> How do i print the current value of the stack pointer on an x86 box?

(gdb) p/x $sp

(The "/x" is for printing the stack pointer in hex.)

It's in the manual, btw (see the node "Registers").  If you tried to
find that, but couldn't, or somehow find the text there unclear or
confusing, please tell the details, so that we could improve the
documentation.

TIA


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]