From: Russell Shaw <rjshaw@netspace.net.au>
Cc: gdb@sources.redhat.com
Subject: Re: x86 stack pointer
Date: Fri, 03 Jun 2005 07:06:00 -0000 [thread overview]
Message-ID: <42A0021B.7090606@netspace.net.au> (raw)
In-Reply-To: <uk6lcaq33.fsf@gnu.org>
Eli Zaretskii wrote:
>>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
>
Ok, i found it by searching "stack pointer" in info gdb. I'd only found
the frame command before.
next prev parent reply other threads:[~2005-06-03 7:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-03 6:37 Russell Shaw
2005-06-03 6:53 ` Eli Zaretskii
2005-06-03 7:06 ` Russell Shaw [this message]
2005-06-03 7:17 ` Eli Zaretskii
2005-06-03 8:08 ` Russell Shaw
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42A0021B.7090606@netspace.net.au \
--to=rjshaw@netspace.net.au \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox