public AD7BoundBreakpoint(AD7Engine engine, LuaBreakpoint address, AD7PendingBreakpoint pendingBreakpoint, AD7BreakpointResolution breakpointResolution, bool enabled)
 {
     _engine               = engine;
     _breakpoint           = address;
     _pendingBreakpoint    = pendingBreakpoint;
     _breakpointResolution = breakpointResolution;
     _enabled              = enabled;
     _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(LuaBreakpoint 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.Lua));
        }
Beispiel #3
0
 public AD7BreakpointResolution(AD7Engine engine, LuaBreakpoint address, AD7DocumentContext documentContext)
 {
     m_engine          = engine;
     m_address         = address;
     m_documentContext = documentContext;
 }
Beispiel #4
0
 public AD7BoundBreakpoint GetBreakpoint(LuaBreakpoint breakpoint)
 {
     return(_breakpointMap[breakpoint]);
 }
Beispiel #5
0
 public void RemoveBoundBreakpoint(LuaBreakpoint breakpoint)
 {
     _breakpointMap.Remove(breakpoint);
 }
Beispiel #6
0
 public void AddBoundBreakpoint(LuaBreakpoint breakpoint, AD7BoundBreakpoint boundBreakpoint)
 {
     _breakpointMap[breakpoint] = boundBreakpoint;
 }