|
From: Julian S. <js...@ac...> - 2005-01-20 00:44:55
|
> That's more like how I had envisaged function wrapping working. Use > the existing intercept machinery to redirect the original function > call, somehow passing the original function address as we do so. > > The wrapper would then call the real function, ensuring that this > time the address didn't get redirected during translation. It would > then get control again when the real function returned. Exactly. This is the point I arrived at. The only problem -- and one I cannot immediately see a clean solution for -- is how to know what the real (non-redirected) function address is. > The only problem then is the longjmp/exception case. Do we even need to handle this case, for libpthread? For that matter, can we also ignore recursion? J |