WinDbg调试.net2.0和.net4.0程序有所不同,因为.net4.0使用新版本的CLR。例如:
mscoree.dll 变为 mscoree.dll 和 mscoreei.dll,
mscorwks.dll 变为 clr.dll,网址:yii666.com
mscorjit.dll 变为 clrjit.dll。
因此,在.net2.0加载mscorjit.dll时断点:sxe ld:mscorjit(卸载是sxe ud:mscorjit),文章地址https://www.yii666.com/article/756025.html
在.net4.0加载clrjit.dll时断点:sxe ld:clrjit(卸载是sxe ud:clrjit),文章来源地址:https://www.yii666.com/article/756025.html
.net2.0加载sos: .loadby sos mscorwks,
.net4.0加载sos: .loadby sos clr。