gdb / dbx / pstack question - getting function argument addresses from stack

Michael Snyder msnyder@specifix.com
Thu Jun 26 18:47:00 GMT 2008


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.





More information about the Gdb mailing list