WinDbg加载不同版本CLR

WinDbg调试.net2.0和.net4.0程序有所不同,因为.net4.0使用新版本的CLR。例如:

mscoree.dll 变为 mscoree.dll 和 mscoreei.dll,

mscorwks.dll 变为 clr.dll,

mscorjit.dll 变为 clrjit.dll。

因此,在.net2.0加载mscorjit.dll时断点:sxe ld:mscorjit(卸载是sxe ud:mscorjit),

在.net4.0加载clrjit.dll时断点:sxe ld:clrjit(卸载是sxe ud:clrjit),

.net2.0加载sos: .loadby sos mscorwks,

.net4.0加载sos: .loadby sos clr。

 

转载于:https://www.cnblogs.com/MrHacker/p/4120338.html

你可能感兴趣的:(WinDbg加载不同版本CLR)