From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24253 invoked by alias); 3 Jun 2005 06:53:43 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24232 invoked by uid 22791); 3 Jun 2005 06:53:38 -0000 Received: from legolas.inter.net.il (HELO legolas.inter.net.il) (192.114.186.24) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 03 Jun 2005 06:53:38 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-199-206.inter.net.il [80.230.199.206]) by legolas.inter.net.il (MOS 3.5.8-GR) with ESMTP id ENF35155 (AUTH halo1); Fri, 3 Jun 2005 09:53:35 +0300 (IDT) Date: Fri, 03 Jun 2005 06:53:00 -0000 Message-Id: From: Eli Zaretskii To: Russell Shaw CC: gdb@sources.redhat.com In-reply-to: <429FFB37.1040408@netspace.net.au> (message from Russell Shaw on Fri, 03 Jun 2005 16:39:51 +1000) Subject: Re: x86 stack pointer Reply-to: Eli Zaretskii References: <429FFB37.1040408@netspace.net.au> X-SW-Source: 2005-06/txt/msg00020.txt.bz2 > Date: Fri, 03 Jun 2005 16:39:51 +1000 > From: Russell Shaw > > 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