From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29331 invoked by alias); 3 Jun 2005 07:06:30 -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 29317 invoked by uid 22791); 3 Jun 2005 07:06:24 -0000 Received: from thunder.netspace.net.au (HELO mail.netspace.net.au) (203.10.110.71) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 03 Jun 2005 07:06:24 +0000 Received: from [192.168.1.11] (220-253-61-77.VIC.netspace.net.au [220.253.61.77]) by mail.netspace.net.au (Postfix) with ESMTP id 4BAE54474B for ; Fri, 3 Jun 2005 17:06:20 +1000 (EST) Message-ID: <42A0021B.7090606@netspace.net.au> Date: Fri, 03 Jun 2005 07:06:00 -0000 From: Russell Shaw User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 Debian/1.7.5-1 MIME-Version: 1.0 Cc: gdb@sources.redhat.com Subject: Re: x86 stack pointer References: <429FFB37.1040408@netspace.net.au> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-06/txt/msg00021.txt.bz2 Eli Zaretskii wrote: >>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 > Ok, i found it by searching "stack pointer" in info gdb. I'd only found the frame command before.