Пример #1
0
 public InspectionScope(DkmClrInstructionAddress address, InspectionSession session)
 {
     InstructionAddress = address;
     SymModule          = address.ModuleInstance.Module;
     CurrentMethodToken = address.MethodId.Token;
     Session            = session;
 }
Пример #2
0
        public static InspectionSession GetInstance(DkmInspectionSession dkmObject)
        {
            InspectionSession session = dkmObject.GetDataItem <InspectionSession>();

            if (session == null)
            {
                session = new InspectionSession();
                dkmObject.SetDataItem(DkmDataCreationDisposition.CreateNew, session);
            }

            return(session);
        }