Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Russell Shaw <rjshaw@netspace.net.au>
Cc: gdb@sources.redhat.com
Subject: Re: x86 stack pointer
Date: Fri, 03 Jun 2005 06:53:00 -0000	[thread overview]
Message-ID: <uk6lcaq33.fsf@gnu.org> (raw)
In-Reply-To: <429FFB37.1040408@netspace.net.au> (message from Russell Shaw on Fri, 03 Jun 2005 16:39:51 +1000)

> 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


  reply	other threads:[~2005-06-03  6:53 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 [this message]
2005-06-03  7:06   ` Russell Shaw
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=uk6lcaq33.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=rjshaw@netspace.net.au \
    /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