* x86 stack pointer
@ 2005-06-03 6:37 Russell Shaw
2005-06-03 6:53 ` Eli Zaretskii
0 siblings, 1 reply; 5+ messages in thread
From: Russell Shaw @ 2005-06-03 6:37 UTC (permalink / raw)
To: gdb
Hi,
How do i print the current value of the stack pointer on an x86 box?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: x86 stack pointer
2005-06-03 6:37 x86 stack pointer Russell Shaw
@ 2005-06-03 6:53 ` Eli Zaretskii
2005-06-03 7:06 ` Russell Shaw
0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2005-06-03 6:53 UTC (permalink / raw)
To: Russell Shaw; +Cc: gdb
> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: x86 stack pointer
2005-06-03 6:53 ` Eli Zaretskii
@ 2005-06-03 7:06 ` Russell Shaw
2005-06-03 7:17 ` Eli Zaretskii
0 siblings, 1 reply; 5+ messages in thread
From: Russell Shaw @ 2005-06-03 7:06 UTC (permalink / raw)
Cc: gdb
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: x86 stack pointer
2005-06-03 7:06 ` Russell Shaw
@ 2005-06-03 7:17 ` Eli Zaretskii
2005-06-03 8:08 ` Russell Shaw
0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2005-06-03 7:17 UTC (permalink / raw)
To: Russell Shaw; +Cc: gdb
> Date: Fri, 03 Jun 2005 17:09:15 +1000
> From: Russell Shaw <rjshaw@netspace.net.au>
> Cc: gdb@sources.redhat.com
>
> Ok, i found it by searching "stack pointer" in info gdb. I'd only found
> the frame command before.
Admittedly, "stack pointer" was not in the index, but I now added such
an index entry, so starting from the next release you should be able
to find it by typing "i stack pointer RET" in the Info reader.
Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: x86 stack pointer
2005-06-03 7:17 ` Eli Zaretskii
@ 2005-06-03 8:08 ` Russell Shaw
0 siblings, 0 replies; 5+ messages in thread
From: Russell Shaw @ 2005-06-03 8:08 UTC (permalink / raw)
Cc: gdb
Eli Zaretskii wrote:
>>Date: Fri, 03 Jun 2005 17:09:15 +1000
>>From: Russell Shaw <rjshaw@netspace.net.au>
>>Cc: gdb@sources.redhat.com
>>
>>Ok, i found it by searching "stack pointer" in info gdb. I'd only found
>>the frame command before.
>
>
> Admittedly, "stack pointer" was not in the index, but I now added such
> an index entry, so starting from the next release you should be able
> to find it by typing "i stack pointer RET" in the Info reader.
>
> Thanks.
Oh, there's an "i" command in info. Didn't know that. Better read the info manual again;)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-06-03 8:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-03 6:37 x86 stack pointer Russell Shaw
2005-06-03 6:53 ` Eli Zaretskii
2005-06-03 7:06 ` Russell Shaw
2005-06-03 7:17 ` Eli Zaretskii
2005-06-03 8:08 ` Russell Shaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox