This is the mail archive of the
mailing list for the GDB project.
Re: Debugging variable arguments functions (stdarg)
On Fri, 16 Jul 2010 20:57:57 +0200, Petr HluzÃn wrote:
> Workaround B:
> Get value of stack pointer (RSP?) of frame MysqlWrapper() and dump raw
> memory around the address. You should see these values somewhere
> 0x00000000004041e2 (return address in MysqlWrapper)
> 0x406bf0 (the third argument to WriteLog)
> Between these two values should be the values of 3rd and 4th argument.
This is not so simple on x86_64, it passes even (first few) stdarg parameters