Exemplo n.º 1
0
        public MonoPendingBreakpoint(MonoEngine engine, IDebugBreakpointRequest2 pBPRequest)
        {
            var requestInfo = new BP_REQUEST_INFO[1];

            pBPRequest.GetRequestInfo(enum_BPREQI_FIELDS.BPREQI_BPLOCATION, requestInfo);
            _bpRequestInfo = requestInfo[0];
            _pBPRequest    = pBPRequest;
            _engine        = engine;

            IsEnabled = true;

            var docPosition =
                (IDebugDocumentPosition2)Marshal.GetObjectForIUnknown(_bpRequestInfo.bpLocation.unionmember2);

            string documentName;

            docPosition.GetFileName(out documentName);
            var startPosition = new TEXT_POSITION[1];
            var endPosition   = new TEXT_POSITION[1];

            docPosition.GetRange(startPosition, endPosition);

            DocumentName = documentName;
            StartLine    = (int)startPosition[0].dwLine;
            StartColumn  = (int)startPosition[0].dwColumn;

            EndLine   = (int)endPosition[0].dwLine;
            EndColumn = (int)endPosition[0].dwColumn;
        }
Exemplo n.º 2
0
 public MonoDebuggerEvents(MonoEngine monoEngine, IDebugEventCallback2 pCallback)
 {
     _engine   = monoEngine;
     _callback = pCallback;
 }
Exemplo n.º 3
0
 public MonoThread(DebuggedMonoProcess debuggedMonoProcess, MonoEngine engine, ThreadMirror threadMirror)
 {
     this.debuggedMonoProcess = debuggedMonoProcess;
     _engine = engine;
     ThreadMirror = threadMirror;
 }
Exemplo n.º 4
0
 public MonoBoundBreakpoint(MonoEngine engine, MonoPendingBreakpoint pendingBreakpoint)
 {
     _engine = engine;
     _pendingBreakpoint = pendingBreakpoint;
 }
Exemplo n.º 5
0
 public MonoThread(DebuggedMonoProcess debuggedMonoProcess, MonoEngine engine, ThreadMirror threadMirror)
 {
     this.debuggedMonoProcess = debuggedMonoProcess;
     _engine      = engine;
     ThreadMirror = threadMirror;
 }
Exemplo n.º 6
0
 public MonoBoundBreakpoint(MonoEngine engine, MonoPendingBreakpoint pendingBreakpoint)
 {
     _engine            = engine;
     _pendingBreakpoint = pendingBreakpoint;
 }
Exemplo n.º 7
0
 public DebuggedMonoProcess(MonoEngine engine, IPAddress ipAddress)
 {
     _engine = engine;
     _ipAddress = ipAddress;
     Instance = this;
 }
Exemplo n.º 8
0
 public MonoDebuggerEvents(MonoEngine monoEngine, IDebugEventCallback2 pCallback)
 {
     _engine = monoEngine;
     _callback = pCallback;
 }