|
From: Nicholas N. <nj...@ca...> - 2004-06-28 12:34:59
|
On Wed, 23 Jun 2004, Chris January wrote: >> A better way for matching call/ret pairs, or a better way for >> the trampoline bit? If the latter, can you give more detail >> about your current approach -- the description you've given >> is too vague to be much use. Can you insert UCode before a >> RET that calls your trampoline code? > > No, I can't insert UCode before a RET because I don't want to instrument > the code that's being called. > [snip] > Unfortunately VG_(emit_code) complains the Ucode isn't sane > (specifically the first POP instruction). POPs have to be paired with PUSHes, and can only be used in conjunction with CALLM, I think. I'm still not clear what it is you want to do. Perhaps you can give a more detailed example, showing some assembly code or UCode, and exactly what effect you are trying to achieve? N |