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; }
public static InspectionSession GetInstance(DkmInspectionSession dkmObject) { InspectionSession session = dkmObject.GetDataItem <InspectionSession>(); if (session == null) { session = new InspectionSession(); dkmObject.SetDataItem(DkmDataCreationDisposition.CreateNew, session); } return(session); }