Hi,

I have a question: how the cmd '::findstack -v' in mdb works?

In x32, it is easy to understand, since all the args are on the stack,
while for amd64, since the args(<6) are not put on the stack, and those
regs used to pass args(rdi, rsi, rdx, rcx, r8, r9) may be reused within
the function, so I am curious when backtracing the stack, how to know
the value of the args passed to the function's father, grandfather,
great grandfather, etc?

Likewise in sparc, since at any time only the current register window
can be accessed, so if we want to backtrace the stack, we can only
access the fp(i6) and args(i0-i5) of the function's father, and how we
can access those of the grandfather, great grandfather, etc?

Thanks,
Brian


Reply via email to