br> 在 CLR 中,Assembly 很大程度上是一个逻辑上的聚合体,真正落实到实现上的更多的是其 Module。一个 Assembly 在载入时,可以只是保护相关 Manifest 和 Metadata,真正的代码和数据完全可以存放在不同地点的多个 Module 中。因此,在 Managed 调试事件中,明确分离了 Assembly 和 Module 的生命周期。 然后就是对 IL 代码中特殊指令和功能的支持用调试事件: 以下为引用: interface ICorDebugManagedCallback : IUnknown { //... HRESULT Break([in] ICorDebugAppDomain *pAppDomain, [in] ICorDebugThread *thread); HRESULT Exception([in] ICorDebugAppDomain *pAppDomain, [in] ICorDebugThread *pThread, [in] BOOL unhandled); HRESULT DebuggerError([in] ICorDebugProcess *pProcess, [in] HRESULT errorHR, [in] DWORD errorCode); HRESULT LogMessage([in] ICorDebugAppDomain *pAppDomain,页码:[1] [2] [3] [4] [5] [6] [7] [8] 第4页、共8页 |