public InspectionScope(DkmClrInstructionAddress address, InspectionSession session)
 {
     InstructionAddress = address;
     SymModule          = address.ModuleInstance.Module;
     CurrentMethodToken = address.MethodId.Token;
     Session            = session;
 }
 public InspectionScope(DkmClrInstructionAddress address, InspectionSession session)
 {
     InstructionAddress = address;
     SymModule = address.ModuleInstance.Module;
     CurrentMethodToken = address.MethodId.Token;
     Session = session;
 }
        public static InspectionSession GetInstance(DkmInspectionSession dkmObject)
        {
            InspectionSession session = dkmObject.GetDataItem<InspectionSession>();
            if (session == null)
            {
                session = new InspectionSession();
                dkmObject.SetDataItem(DkmDataCreationDisposition.CreateNew, session);
            }

            return session;
        }
示例#4
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);
        }