public BreakpointEventRequest CreateBreakpointRequest(Mono.Debugger.Soft.Location location) { var request = _vm.CreateBreakpointRequest(location); _breakpointEventRequests[location] = request; return(request); }
public VirtualMachine() : base(null) { Factory.Register( location => new SdbBreakpoint(vm.CreateBreakpointRequest(location.Unwrap <MDS.Location> ()), location), (thread, stepType) => { var request = vm.CreateStepRequest(thread.Unwrap <MDS.ThreadMirror>()); switch (stepType) { case StepType.Into: request.Depth = MDS.StepDepth.Into; break; case StepType.Over: request.Depth = MDS.StepDepth.Over; break; case StepType.Out: request.Depth = MDS.StepDepth.Out; break; } return(Cache.Lookup <EventRequest>(request)); }, () => new EventRequest(vm.CreateMethodEntryRequest()), () => new EventRequest(vm.CreateMethodExitRequest()), (source, line) => new SdbLocation(source, line) ); }