I want to get the native(x86) code of a debugee function from the debugger using ICorDebug APIs. After getting an ICorDebugFunction, I can call GetNativeCode on it but it returns the native code only if it has been Jited. So I need to forcefully JIt it. The RuntimeHelpers.PrepareMethod can do that but it needs a methodhandle( not a method token).From the debugger I have the Method Token but not the method handle. So can we get the real MethodInfo object(which can get me the handle) of a debugee function from the debugger? In other words, is it possible to do reflection on debugee from debugger? Thanks again in advance....
Aucun commentaire:
Enregistrer un commentaire