This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb / dbx / pstack question - getting function argument addresses from stack
On Thu, 2008-06-26 at 14:08 -0400, Pavel Chernikov wrote:
> > (gdb) print /x $i0
> > $1 = 0xfeedface
>
> As you've mentioned previously, this only works on Solaris. Am I
> totally out of luck on Linux?
It only works on *sparc*.
You would be just as out of luck on i386-solaris, but
you could do the same trick on sparc-linux.
Intel is a very different architecture, you know:
there is not such a simple way of guessing where
all the function arguments are stored.