Beispiel #1
0
        public AD7StackFrame(AD7ProgramNode node, RoutineScope rs)
        {
            Debug.WriteLine("AD7StackFrame: ctor");
            _rs   = rs;
            _node = node;
            //Breakpoint bp = DebuggerManager.Instance.CurrentBreakpoint.CoreBreakpoint;
            Breakpoint    bp  = rs.CurrentPosition;
            TEXT_POSITION pos = new TEXT_POSITION()
            {
                dwLine = (uint)(bp.StartLine - 1), dwColumn = ( uint )(bp.StartColumn)
            };
            TEXT_POSITION endPos = new TEXT_POSITION();

            endPos.dwLine   = ( uint )(bp.EndLine - 1);
            endPos.dwColumn = ( uint )(bp.EndColumn);
            _docContext     = new AD7DocumentContext(_rs.GetFileName(), -1, pos, endPos, rs);
            _node.FileName  = _node.Debugger.Debugger.CurrentScope.FileName;
        }