|
From: Maurice v. d. P. <gri...@ge...> - 2004-11-07 14:29:32
|
Hi,
I've been studying valgrind's source and I have a few questions.
1) Is it allowed to simply call VG_(synth_ccall) multiple times from=20
within synth_LOADV for instance? I was planning something like=20
this:
VG_(synth_ccall) ( helper, 1, 1, argv, tagv, tv_reg,
regs_live_before, regs_live_after );
UInt argv2[] =3D { a_reg, tv_reg };
Tag tagv2[] =3D { RealReg, RealReg };
VG_(synth_ccall) ( helper2, 2, 2, argv2, tagv2, INVALID_REALREG,
regs_live_after, regs_live_after );
2) Is there a way to get to a register itself instead of the value it
contains, from a helper function? In helper2 I would like to somehow
modify some information about tv_reg dependent on both tv_reg's own=20
value and the value of a_reg.
3) Alternatively i might want to add code to do this to the first helper
function. Is it possible to get to the register that will receive the
return value? Or should I modify synth_ccall to receive not only the
return value but also the extra information that needs to be remembered
about the return value register?
I hope I'm making sense.
Best regards,
Maurice.
--=20
Maurice van der Pot
Gentoo Linux Developer gri...@ge... http://www.gentoo.org
Creator of BiteMe! gri...@kf... http://www.kfk4ever.com
|