[dtrace-discuss] How does one access an application's local variables?
Adam Leventhal
ahl at eng.sun.com
Wed Jul 11 11:18:59 PDT 2007
> I know how to access an application's global variables, but can I also
> access the local variables in an application?
It's rather difficult. You have to figure out how the compiler has chosen
to store the local variables and then access the appropriate registers
through the uregs[] array or use uregs[] in concert with the copyin()
subroutine if the compiler has chosen to store the local in memory.
Adam
--
Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl
More information about the dtrace-discuss
mailing list