public AD7BoundBreakpoint(AD7Engine engine, JBreakpoint address, AD7PendingBreakpoint pendingBreakpoint, AD7BreakpointResolution breakpointResolution) { _engine = engine; _breakpoint = address; _pendingBreakpoint = pendingBreakpoint; _breakpointResolution = breakpointResolution; _enabled = true; _deleted = false; }
// 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); }
public AD7BreakpointResolution(AD7Engine engine, JBreakpoint address, AD7DocumentContext documentContext) { m_engine = engine; m_address = address; m_documentContext = documentContext; }
public void RemoveBoundBreakpoint(JBreakpoint breakpoint) { _breakpointMap.Remove(breakpoint); }
public AD7BoundBreakpoint GetBreakpoint(JBreakpoint breakpoint) { return _breakpointMap[breakpoint]; }
public void AddBoundBreakpoint(JBreakpoint breakpoint, AD7BoundBreakpoint boundBreakpoint) { _breakpointMap[breakpoint] = boundBreakpoint; }