Example #1
0
 public AD7BoundBreakpoint(AD7Engine engine, JBreakpoint address, AD7PendingBreakpoint pendingBreakpoint, AD7BreakpointResolution breakpointResolution)
 {
     _engine = engine;
     _breakpoint = address;
     _pendingBreakpoint = pendingBreakpoint;
     _breakpointResolution = breakpointResolution;
     _enabled = true;
     _deleted = false;
 }
Example #2
0
        // Get the document context for this pending breakpoint. A document context is a abstract representation of a source file
        // location.
        public AD7DocumentContext GetDocumentContext(JBreakpoint address)
        {
            IDebugDocumentPosition2 docPosition = (IDebugDocumentPosition2)(Marshal.GetObjectForIUnknown(_bpRequestInfo.bpLocation.unionmember2));
            string documentName;
            EngineUtils.CheckOk(docPosition.GetFileName(out documentName));

            // Get the location in the document that the breakpoint is in.
            TEXT_POSITION[] startPosition = new TEXT_POSITION[1];
            TEXT_POSITION[] endPosition = new TEXT_POSITION[1];
            EngineUtils.CheckOk(docPosition.GetRange(startPosition, endPosition));

            AD7MemoryAddress codeContext = new AD7MemoryAddress(_engine, documentName, startPosition[0].dwLine);

            return new AD7DocumentContext(documentName, startPosition[0], startPosition[0], codeContext, FrameKind.J);
        }
Example #3
0
 public AD7BreakpointResolution(AD7Engine engine, JBreakpoint address, AD7DocumentContext documentContext)
 {
     m_engine = engine;
     m_address = address;
     m_documentContext = documentContext;
 }
Example #4
0
 public void RemoveBoundBreakpoint(JBreakpoint breakpoint)
 {
     _breakpointMap.Remove(breakpoint);
 }
Example #5
0
 public AD7BoundBreakpoint GetBreakpoint(JBreakpoint breakpoint)
 {
     return _breakpointMap[breakpoint];
 }
Example #6
0
 public void AddBoundBreakpoint(JBreakpoint breakpoint, AD7BoundBreakpoint boundBreakpoint)
 {
     _breakpointMap[breakpoint] = boundBreakpoint;
 }