This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: x86 stack pointer
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Russell Shaw <rjshaw at netspace dot net dot au>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 03 Jun 2005 09:53:36 +0300
- Subject: Re: x86 stack pointer
- References: <429FFB37.1040408@netspace.net.au>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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